Repository navigation
fix(repair): harden rebase conflict retries - #332
Conversation
Co-authored-by: João Carreiro <[email protected]>
|
Codex review: needs real behavior proof before merge. Reviewed June 19, 2026, 3:34 AM ET / 07:34 UTC. Summary Reproducibility: yes. from source inspection: current main can treat unresolved conflicted rebase paths as working-tree changes and leave the edit retry loop before Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Remove the changelog hunk, keep release-note context in the PR body/commit history, and land the narrow conflict-loop hardening after redacted real repair-worker proof shows conflicted rebase retry or Do we have a high-confidence way to reproduce the issue? Yes from source inspection: current main can treat unresolved conflicted rebase paths as working-tree changes and leave the edit retry loop before Is this the best way to solve the issue? Yes in direction, but not merge-ready as submitted: keeping unresolved conflicts inside the bounded edit loop is the narrow repair, while the changelog hunk should be removed and real worker proof should be added. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 25a378a5b7d9. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d59bdb1225
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const remainingConflicts = | ||
| rebaseResult?.status === "conflicts" ? unmergedPaths(targetDir) : []; |
There was a problem hiding this comment.
Retry conflicts from Codex-owned rebases
When automerge/self-heal repairs defer the initial rebase to Codex, executeRepairBranch calls this loop with rebaseResult = null, so a successful Codex pass that starts a rebase and leaves unmerged files gets remainingConflicts = [] here. The loop then skips the new retry path, treats the conflicted index as produced changes, and only fails later in completeRebaseIfResolved, turning the job into needs_human after one pass instead of using the bounded edit retries. Check the active checkout for unmergedPaths(targetDir) even when the deterministic pre-edit rebase did not produce rebaseResult.status === "conflicts".
Useful? React with 👍 / 👎.
Co-authored-by: João Carreiro <[email protected]>
Summary
Replaces #308 because the contributor fork rejected maintainer pushes. Preserves contributor credit.
Verification
pnpm run check