Skip to content

Git pane: style rebase-conflict as a conflict card #777

Closed

Description

@currentbits

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.

Filed from a Solenta suggested-work chip.

Activity

  1. added
    plan:todo
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Aug 29, 2026
  2. added
    plan:doing
    plan:done
    and removed
    plan:done
    plan:doing
    on Oct 3, 2026
  3. currentbits commented on Oct 3, 2026

    @currentbits
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions