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
{{ message }}
Repository navigation
Git pane: style rebase-conflict as a conflict card #777
Issue #776 / threads.setBaseBranch now throws WORKTREE_REBASE_CONFLICT with indented conflicted paths (electron/worktrees.js retargetWorktreeBase). The run toast strips that marker via errorMessage in src/useCoder.ts, but WorktreeControl pickBase still dumps the raw Error message into setCardError. classifyGitError in src/components/WorktreeControl.tsx only knows WORKTREE_DIRTY, MERGE_CONFLICT, and CI_WORKFLOW — not WORKTREE_REBASE_CONFLICT — and pickBase does not call it.
Add WORKTREE_REBASE_CONFLICT to classifyGitError as kind "conflict" (or a sibling that lists files without offering merge-resolve/retry, because the rebase is already aborted). Route pickBase through that classifier so the Git pane shows the named files in the conflict card, not a generic error with the raw marker prefix. Keep dirty refuse and abort+rollback unchanged. Still refuse after the first PR.
Tests: pickBase / classifyGitError on a WORKTREE_REBASE_CONFLICT message that includes README.md surfaces the path in the conflict card, not cardError; MERGE_CONFLICT and WORKTREE_DIRTY classification stay the same.
Look at classifyGitError and pickBase in src/components/WorktreeControl.tsx and the existing conflict card tests.
Verified on main (2026-10-03 board cleanup). WORKTREE_REBASE_CONFLICT is classified as rebase-conflict and pickBase routes it to the conflict card in rebase mode: src/components/WorktreeControl.tsx:86-87, 276-285. Covered by test/worktreeConflict.test.tsx:356-412.
Activity
currentbits commentedon Oct 3, 2026
Verified on main (2026-10-03 board cleanup).
WORKTREE_REBASE_CONFLICTis classified asrebase-conflictandpickBaseroutes it to the conflict card in rebase mode: src/components/WorktreeControl.tsx:86-87, 276-285. Covered by test/worktreeConflict.test.tsx:356-412.