First off β herdr is a really great project and I've been enjoying using it a lot. Thanks for building and sharing it! π Small bug below.
Is this a reproducible bug?
Current behavior
Creating a New worktree with a branch name that already exists hangs forever at "Preparing worktree (new branch 'X')". The dialog never closes and no worktree opens. Under the hood git worktree add -b <branch> <path> exits 255 with fatal: a branch named '<branch>' already exists, but herdr only renders git's first stderr line ("Preparing worktree...") and never surfaces the fatal line. Server log truncates identically: WARN herdr::app::worktrees: git worktree add failed error=Preparing worktree (new branch 'X').
Expected behavior
Surface git's full stderr and fail the dialog gracefully (or offer to check out the existing branch instead of creating it with -b). It should not hang.
Reproduction
- In a repo, create a branch:
git branch foo
- In herdr, open New worktree, enter branch name
foo, create and open.
- Dialog hangs at "Preparing worktree (new branch 'foo')" indefinitely.
Impact
New worktree creation silently dead-ends with no error shown. Re-attempting the same name keeps hanging; only fix is dropping the leftover branch from a CLI outside herdr. Easy to hit since a prior failed/removed worktree leaves its branch behind.
Environment
- Herdr version: 0.7.0
- Update channel (stable or preview): stable (homebrew)
- Operating system: macOS (Darwin 25.5.0)
- Terminal: Ghostty
- Shell, if relevant: zsh
- Relevant config, if any: [worktrees] directory = ".worktrees"
Is this a reproducible bug?
Current behavior
Creating a New worktree with a branch name that already exists hangs forever at "Preparing worktree (new branch 'X')". The dialog never closes and no worktree opens. Under the hood
git worktree add -b <branch> <path>exits 255 withfatal: a branch named '<branch>' already exists, but herdr only renders git's first stderr line ("Preparing worktree...") and never surfaces thefatalline. Server log truncates identically:WARN herdr::app::worktrees: git worktree add failed error=Preparing worktree (new branch 'X').Expected behavior
Surface git's full stderr and fail the dialog gracefully (or offer to check out the existing branch instead of creating it with
-b). It should not hang.Reproduction
git branch foofoo, create and open.Impact
New worktree creation silently dead-ends with no error shown. Re-attempting the same name keeps hanging; only fix is dropping the leftover branch from a CLI outside herdr. Easy to hit since a prior failed/removed worktree leaves its branch behind.
Environment