You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(server): declined Codex file changes show as declined - #44883
When Codex's Auto-review denies a file edit, or you decline it, the work log shows the edit as an ordinary stopped "Changed " row. A declined command in the same setup already shows as declined since #44636.
Steps (needs a Codex sign-in, web or desktop):
Open a Codex thread in Supervised (approval) mode, or in Auto mode with Auto-review on.
Ask: "Create hello.txt containing hi". For the Auto-review route, ask for an edit to a sensitive file such as .env.
Decline the file change approval, or let Auto-review deny the edit.
Look at the work log. The edit row reads like a stopped edit. A declined command shows as declined, with the failure styling.
Cause
#44636 made the Codex command builder in CodexAdapterV2.ts set toolNonExecutionKind: "declined" when the item status is declined, and web and mobile read that field to show the declined state. Codex's fileChange item has the same declined status, but the file change builder in the same file never sets the field. The item is stored as cancelled with no kind, so the clients show it as a plain stopped row.
Change
The file change turn item gets toolNonExecutionKind: "declined" when the item status is declined, written the same way as #44636 does for commands. One line in CodexAdapterV2.ts. #44636 is the model for the change and for the test.
Scope
Small fix of an obvious bug, steps reproduce it, so it needs no issue.
Verification
New test in CodexAdapterV2.test.ts, "marks a file change Auto-review denied as declined": a copy of #44636's replay test with a fileChange item and an applyPatch review. It expects the item to be cancelled with toolNonExecutionKind set to declined.
With the fix, CodexAdapterV2.test.ts: 241 passed (241).
vp run check:changed: format, lint, knip (2), graphql, typecheck (3 packages) and test (2 files) all pass.
Not verified: I did not decline a file edit by hand in the running app, because that needs a Codex sign-in; the replay test feeds the same declined file change item and review event that Codex sends.
Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.
Reviewing files that changed from the base of the PR and between 52adb98 and 768e1e8.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The Codex adapter now marks declined file-change items with toolNonExecutionKind: "declined". A replay test verifies that the projected item is cancelled and marked as declined.
The adapter sets toolNonExecutionKind: "declined" when Codex reports a declined file-change item. The replay test checks that the projected item is cancelled and marked as declined.
Declined or denied Codex file edits will now show declined styling like commands do, instead of looking like ordinary stopped rows. The change is small and tested, and no merge-blocking risk remains.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "fix(server): declined Codex file changes show as declined" matches the main change. The PR sets toolNonExecutionKind to "declined" for file-change items whose status is declined, and adds a…
Description check
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section gives reproduction steps and expected behavior. The Change section names the one-lin…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "fix(server): declined Codex file changes show as declined" matches the main change. The PR sets toolNonExecutionKind to "declined" for file-change items whose status is declined, and adds a regression test. The title is specific and follows conventional commit form.
Full details: Description check
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section gives reproduction steps and expected behavior. The Change section names the one-line fix in CodexAdapterV2.ts. The Scope section explains why no issue is needed and cites #44636 as the model. The Verification section gives the new test, failing and passing results, and checks run, and it states what was not verified. The model and harness are also listed, as the template asks.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Run the web app with fresh state, add an empty git project, select Codex GPT-6.1-Sol (Low) and Supervised permissions, request hello.txt using apply_patch, decline the approval, then expand the work log.
Environment: Chromium, 1280×800 CSS viewport, light theme; real Codex CLI 0.172.0. Captures crop machine details and redact scratch paths.
Both runs left hello.txt absent and Changes at +0 -0. The head projection carries toolNonExecutionKind=declined; the base projection does not. The group header still says “Used 1 tool and changed 1 file” on both commits.
Not shown:
Auto-review rejection was not exercised; verification covered the user-declined Supervised path.
Desktop and mobile were not run; visual verification covered the web client.
The group header still counts the declined edit as one changed file on the head. The demonstrated fix is the declined presentation and projection marker.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:XS0-9 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When Codex's Auto-review denies a file edit, or you decline it, the work log shows the edit as an ordinary stopped "Changed " row. A declined command in the same setup already shows as declined since #44636.
Steps (needs a Codex sign-in, web or desktop):
.env.Cause
#44636 made the Codex command builder in
CodexAdapterV2.tssettoolNonExecutionKind: "declined"when the item status isdeclined, and web and mobile read that field to show the declined state. Codex'sfileChangeitem has the samedeclinedstatus, but the file change builder in the same file never sets the field. The item is stored ascancelledwith no kind, so the clients show it as a plain stopped row.Change
The file change turn item gets
toolNonExecutionKind: "declined"when the item status isdeclined, written the same way as #44636 does for commands. One line inCodexAdapterV2.ts. #44636 is the model for the change and for the test.Scope
Small fix of an obvious bug, steps reproduce it, so it needs no issue.
Verification
New test in
CodexAdapterV2.test.ts, "marks a file change Auto-review denied as declined": a copy of #44636's replay test with afileChangeitem and anapplyPatchreview. It expects the item to becancelledwithtoolNonExecutionKindset todeclined.Test commit alone, fails on main 96d1bf0:
With the fix,
CodexAdapterV2.test.ts: 241 passed (241).vp run check:changed: format, lint, knip (2), graphql, typecheck (3 packages) and test (2 files) all pass.Not verified: I did not decline a file edit by hand in the running app, because that needs a Codex sign-in; the replay test feeds the same
declinedfile change item and review event that Codex sends.Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.