Skip to content

Conversation

@dataforxyz
Copy link
Contributor

@dataforxyz dataforxyz commented Jan 28, 2026

Stack: This PR is stacked on #462. Review only the last commit.

Summary

  • Stop silently swallowing errors in resolveMergeConflicts across all 5 agent implementations (claude, gemini, codex, cursor, qwen) — errors now propagate to callers which already have proper error display logic (Error resolving ${filePath}: ${error})
  • Log errors in generateCommitMessage before returning null, matching the pattern used by other methods like expandTask

No changes to merge.ts or rebase.ts — the fix is entirely in the shared agent layer.

Closes #464

Test plan

  • pnpm build — compiles successfully
  • pnpm test — all 338 tests pass

🤖 Generated with Claude Code

dataforxyz and others added 3 commits January 27, 2026 22:39
Allow users to specify an AI agent with optional model for the merge
command (e.g., rover merge 1 -a claude:sonnet). All agent constructors
now accept an optional model parameter passed through to their CLI.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add a new `rover rebase` command that rebases a task's branch onto the
current branch. Includes AI-powered conflict resolution, automatic
commit of uncommitted worktree changes, and -a/--agent flag support.
Also adds rebaseBranch, abortRebase, and continueRebase methods to Git.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Stop silently swallowing errors in resolveMergeConflicts across all agent
implementations (claude, gemini, codex, cursor, qwen) so callers can
surface the actual failure reason. Also log errors in generateCommitMessage.

The resolve functions in merge.ts and rebase.ts now return
{ success, failureReason } instead of boolean, so the actual error
is surfaced in both spinner output and --json mode.

Closes endorhq#464

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Collaborator

@ereslibre ereslibre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; thanks!, this will need a rebase on top of #462 after that one is merged.

@ereslibre ereslibre self-assigned this Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merge/rebase conflict resolution silently swallows AI agent errors

2 participants