Skip to content

feat: default to plain rebase when no conflicts detected#95

Merged
johannesjo merged 1 commit into
johannesjo:mainfrom
brooksc:smart-merge
May 5, 2026
Merged

feat: default to plain rebase when no conflicts detected#95
johannesjo merged 1 commit into
johannesjo:mainfrom
brooksc:smart-merge

Conversation

@brooksc

@brooksc brooksc commented May 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • When main has new commits but no merge conflicts, the "Rebase onto main" button is now styled as the primary (accent/bold) action
  • "Rebase with AI" is only promoted to primary when conflicts are actually detected
  • Previously, "Rebase with AI" was always styled as primary regardless of conflict state, leading users to overlook the simpler plain rebase option

Test plan

  • Open merge dialog on a branch where main has new commits but no conflicts — verify "Rebase onto main" is the highlighted button
  • Open merge dialog on a branch with actual conflicts — verify "Rebase with AI" is the highlighted button

🤖 Generated with Claude Code

When main has new commits but no conflicts, highlight "Rebase onto main"
as the primary button. Only promote "Rebase with AI" to primary when
conflicts are actually detected.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@johannesjo

Copy link
Copy Markdown
Owner

Thank you very much for this! <3

@johannesjo johannesjo merged commit d9f596b into johannesjo:main May 5, 2026
2 checks passed
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.

2 participants