agentws: refuse rm on an ambiguous branch name #22

Merged
benvin merged 1 commits from benvin/agentws-rm-ambiguous into main 2026-10-02 23:03:57 +10:00
Member

agentws rm <branch> took the first managed worktree whose branch matched, across all repos. Two repos on the same branch name meant it could remove the wrong repo's worktree.

  • refuse a branch name matching several worktrees, listing the candidate paths
  • add rm --repo <name> to narrow a branch match to one repo
  • keep unique branch matches and path matches working as before
  • document --repo in the README
`agentws rm <branch>` took the first managed worktree whose branch matched, across all repos. Two repos on the same branch name meant it could remove the wrong repo's worktree. - refuse a branch name matching several worktrees, listing the candidate paths - add `rm --repo <name>` to narrow a branch match to one repo - keep unique branch matches and path matches working as before - document `--repo` in the README
unkin-agent added 1 commit 2026-10-02 22:51:05 +10:00
agentws: refuse rm on a branch name shared by several repos
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
6c88d17736
Author
Member

No findings.

No findings.
benvin merged commit 215e4a96d3 into main 2026-10-02 23:03:57 +10:00
benvin deleted branch benvin/agentws-rm-ambiguous 2026-10-02 23:03:57 +10:00
Sign in to join this conversation.