Skip to content

fix(#16440): no path commit beside a pick in a rebase stop - #16652

Merged
EffortlessSteven merged 1 commit into
mainfrom
claude/project-thread-9g17ji
Nov 30, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
claude/project-thread-9g17ji

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

https://claude.ai/code/session_01YVdGzTog4paRbkjGfRRp4y

Governing issue or accepted claim: #16440

Acceptance delta (one sentence): check, pilot, the editor and agent status no longer print a git commit -- <paths> step that Git refuses when CHERRY_PICK_HEAD exists beside a rebase stop.

Summary

At a rebase stop, git commit -- <paths> works. Git 2.43 refuses it when CHERRY_PICK_HEAD sits beside the rebase state. If it equals REBASE_HEAD, Git says "during a rebase"; otherwise it says "during a cherry-pick". The marker classifier treated every rebase state as no operation. So after a conflicted git cherry-pick at an edit stop, every surface printed a commit Git refuses.

path_commit_operation now also asks for REBASE_HEAD and follows Git's own order:

  • A MERGE_HEAD is a merge.
  • A CHERRY_PICK_HEAD is a rebase pick when rebase-merge state exists and the heads are equal, and a cherry-pick otherwise.
  • An unreadable head fails closed.
  • Plain edit and conflict stops keep the commit step.

Proof

  • Unit test operation_markers_decide_the_path_commit_operation covers:
    • a merge under a rebase;
    • rebase-apply with equal heads, which is a cherry-pick;
    • a missing REBASE_HEAD;
    • a read error, which fails closed;
    • the old 5-row answer being refused.
  • The integration test a_merge_cherry_pick_or_revert_in_progress_prints_no_path_commit uses a real cherry-pick during a rebase edit stop, plus a rebase pick. It asserts that:
    • check and the pilot terminal print no commit;
    • pilot JSON reports path_commit_unsafe;
    • Git itself refuses the path commit.
  • Local runs:
    • cargo clippy -p ripr --lib --tests -- -D warnings is clean.
    • check_repair_agree (68 tests) and lsp_lifecycle (81 tests) pass.
    • cargo xtask precommit exited 0 on the pre-rebase head.
    • Lib unit tests were not run locally (this container runs out of memory). They are left to hosted CI.

Source review: REVIEW_READY 5da60a9


Generated by Claude Code

A rebase stop allows `git commit -- <paths>`, but Git refuses it when
`CHERRY_PICK_HEAD` exists beside the rebase state ("during a rebase" when
it equals `REBASE_HEAD`, "during a cherry-pick" otherwise). The marker
classifier treated every rebase state as no operation, so check, pilot,
the editor and agent status printed a commit Git refuses, for example
after a conflicted `git cherry-pick` at an edit stop.

`operation_from_markers` now also reads `REBASE_HEAD` and compares the
two heads under a rebase state: equal is a rebase pick, different is a
cherry-pick, and an unreadable head fails closed. Plain edit and
conflict stops keep the commit step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVdGzTog4paRbkjGfRRp4y
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 137 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 365a5cd2-e588-4c24-ab71-fca37c15458f
Commits

Reviewing files that changed from the base of the PR and between 561d1b9 and 5da60a9.

Files selected for processing: 6

  • changelog.d/16440-rebase-pick-path-commit.md
  • crates/ripr/src/app/navigation.rs
  • crates/ripr/src/edit_cage/mod.rs
  • crates/ripr/tests/check_repair_agree.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0318-pilot-dirty-target-next-steps.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

SOURCE_REVIEW_READY

Exact head reviewed: 5da60a9.

An independent subagent reviewed the full diff. It checked:

  • Git 2.43 behavior in scratch repositories: rebase-merge edit and conflict stops, a cherry-pick at an edit stop (including in a linked worktree), rebase --apply and git am -3 conflicts, equal heads under both rebase-apply and rebase-merge, rebase -r merge conflicts, and a revert at an edit stop.
  • That all consumers go through path_commit_operation / path_commit_hazards: check, pilot, the LSP actions and agent status.
  • Whether the tests discriminate. They fail on the old classifier, and the fixture asserts its preconditions and Git's real refusal.
  • Docs, schema and changelog parity.

It found no blocking issues. The minor notes were:

  • Comment wording at edit_cage/mod.rs:886.
  • A rebase -r merge case covered only by a unit test.
  • A pre-existing gap for the reftable ref backend, now filed as #16653.

Local runs on this head:

  • clippy for the lib and tests is clean.
  • check_repair_agree passes 70 tests.

Lib unit tests are left to hosted CI.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 29, 2026 22:32
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 29, 2026

Copy link
Copy Markdown
Member Author

Hosted evidence for the lib-unit item left open in the exact-head review: Rust Small Result job 141532461360 passed. I verified the SHA-256 of the aggregate JUnit artifact 15334033104 and both shard archives. The checkout 782ca38f67683ca9fb979d3fb9b7cb4139734040 is the PR preview of reviewed 5da60a909233fbfd71794aaa619088c7a43d2cf6 on 561d1b99. The raw JUnit contains both edit_cage::tests::operation_markers_decide_the_path_commit_operation (shard 1) and a_merge_cherry_pick_or_revert_in_progress_prints_no_path_commit (shard 2), passing. Shard verifier: 34,653/34,653, zero duplicates, missing cases, failures or errors. This closes the hosted execution gap for that composition; it is not a native queue merge receipt, and #16653 remains separate.

Merged via the queue into main with commit f8f9762 Nov 30, 2026
20 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-9g17ji branch November 30, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants