Skip to content

One-click 'let the agent resolve the merge conflict' #163

Closed

Description

@currentbits

What Sculptor does

Detects merge conflicts and hands them back to the agent that produced the branch (overview).

Solenta today

mergeWorktree (electron/worktrees.js:236-345) already does the hard part: it replays the conflict inside the worktree, then throws MERGE_CONFLICT:. The UI (src/components/AgentsPanel.tsx:402-433) shows a dismissible text block telling the user to resolve files manually. The conflicted worktree is sitting right there; nothing offers "send the conflict to the thread's agent."

Why it matters

Conflict resolution is exactly the kind of mechanical chore agents are good at, and Solenta has already staged the conflict in the right place. The feature is a prompt template plus a button.

Fix direction

On MERGE_CONFLICT, offer "Let the agent resolve" on the conflict card: start a turn in that thread with the conflicted file list and conflict markers as context, then re-attempt the merge.

Activity

  1. added
    enhancement
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Aug 16, 2026
  2. currentbits commented on Aug 22, 2026

    @currentbits
    OwnerAuthor

    Implementing on this issue (no extra planboard tickets; steps live here).

    1. Prompt helper: conflicted file list + capped marker snippets, tell the agent to resolve in the worktree and stop (no merge to main).
    2. git.conflictContext IPC: read unmerged files from the conflicted worktree.
    3. Conflict card button Let the agent resolve: start a turn with that prompt.
    4. When that turn goes idle, retry mergeWorktree. If it still conflicts, the card comes back.
  3. added
    plan:done
    and removed
    plan:doing
    on Aug 22, 2026
  4. currentbits commented on Aug 22, 2026

    @currentbits
    OwnerAuthor

    Implemented on this branch.

    • Conflict card gets Let the agent resolve (primary). Starts a turn with the conflicted file list plus capped marker snippets from the worktree.
    • When that turn goes idle, merge is retried. If it still conflicts, the card comes back. Dismiss cancels the retry.
    • New git.conflictContext IPC reads the already-replayed unmerged files.
  5. removed
    plan:doing
    on Sep 8, 2026
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

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions