You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(review-round-3b): propagate worktreeListDetailed failures via Result
CodeRabbit identified that worktreeListDetailed silently returned []
on `git worktree list` failure, making the try/catch in
checkBranchCollisions dead code. The pre-check would then pass as
"collision-free" despite never having queried git — violating FR-009
case (b), which requires marking the repo status="failed" and
excluding it from subsequent mutation.
Changes:
- git.ts: worktreeListDetailed now returns Result<WorktreeEntry[],
string>. Empty array on parse success, Result.err(gitError) on git
failure.
- workspace-create.ts checkBranchCollisions: replace try/catch with
`if (!result.ok)` branch; cache map now stores WorktreeEntry[]
directly.
- workspace-create.ts isWorktreeHealthy: treat git failure as
unhealthy so reconcile re-runs `git worktree add` (which will
surface the underlying git error through normal error paths).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments