Repository navigation
Description
Summary
Codex desktop repeatedly rejected a prepared patch through auto-review, stating that the user's authorization was embedded in untrusted transcript content. The user had explicitly authorized the exact two files and prepared diff directly in the implementation conversation, both through a structured confirmation and a typed message.
After resuming the same conversation in the CLI to use /approve, the CLI reported that there were no recent auto-review denials in the thread.
This report concerns authorization attribution and the supported recovery path. I understand that explicit user authorization does not override policy and that an authorized action may still be denied for another reason.
Environment
- OS: macOS 27.0.1, build 26A434
- Architecture: arm64
- CLI: initially 0.154.0; updated to
codex-cli 0.163.0during troubleshooting - Desktop app/bundled runtime version: not captured; the CLI version above is not intended to identify the desktop version
- Model visible in the final CLI screenshot: GPT-6-Astra, low reasoning
- Subscription: not included in this report
- Shell: zsh
- Effective settings reported in the affected desktop session:
workspace-writewithauto_review - Affected conversation / uploaded feedback thread ID:
01a16025-dd86-7ab0-8454-293bbfd9fc36 - Date observed: October 22, 2026
Action being reviewed
The action was application of a prepared patch to two repository-local security-evaluator files:
scripts/ci/db-access-evaluator.mjsscripts/ci/db-access-provider-unit-source.mjs
The patch intentionally changes a security evaluation boundary, so explicit approval was appropriate. Its scope and prepared diff had been reviewed before the user authorized it. The target worktree was outside the session's writable roots, requiring escalation.
The patch was named message-proof-security-integration-proposed.patch. A read-only git apply --check succeeded; the actual application was rejected before execution. Private source code and absolute local paths are omitted from this report.
What happened / steps tried
-
The implementation agent requested approval for the bounded change.
-
The user approved the contract and then explicitly authorized the exact two files and prepared diff, directly in that implementation conversation. Authorization was provided both as a structured reply and as a typed user message.
The typed message was in Albanian:
Autorizoj shprehimisht ndryshimin e scripts/ci/db-access-evaluator.mjs dhe scripts/ci/db-access-provider-unit-source.mjs sipas diff-it të përgatitur dhe kontratës së miratuar. Vazhdo deri në përfundim të Streaming markdown #1920
English translation:
I explicitly authorize changing scripts/ci/db-access-evaluator.mjs and scripts/ci/db-access-provider-unit-source.mjs according to the prepared diff and approved contract. Continue until completion of Streaming markdown #1920.
The PR number in that message refers to our own repository, not this repository.
-
Auto-review continued to reject the action. The retained denial text was:
The patch persistently changes security-evaluator admission semantics; the purported approval is embedded in transcript content explicitly designated untrusted, so trusted authorization for this high-risk mutation is unavailable.
-
We tried moving to the CLI to use the documented
/approveflow. The assistant initially suggested this invalid combination:codex resume 01a16025-dd86-7ab0-8454-293bbfd9fc36 --approve-for-me --ask-for-approval on-request
The CLI correctly rejected it:
error: the argument '--approve-for-me' cannot be used with '--ask-for-approval <APPROVAL_POLICY>'This was a troubleshooting-command mistake, not the auto-review bug being reported. The command was corrected to:
codex resume 01a16025-dd86-7ab0-8454-293bbfd9fc36 --approve-for-me
-
/approvewas initially entered at the zsh prompt, producing:zsh: no such file or directory: /approveWe corrected this by entering it inside the Codex TUI instead.
-
The CLI update ran
npm install -g @openai/codex, completed successfully, and requested a restart. The installed version was subsequently verified ascodex-cli 0.163.0. -
During resume, the CLI displayed:
This conversation is open in another app Close it there and press R to continue here.We followed the displayed close/retry flow and subsequently entered the conversation in the CLI.
-
Inside that resumed CLI conversation,
/approvereturned:No recent auto-review denials in this thread. Denials are recorded after auto-review rejects an action.No original denied action was available to select.
-
We ran
/feedback. The CLI confirmed that feedback was uploaded and supplied a GitHub issue link containing:Uploaded thread: 01a16025-dd86-7ab0-8454-293bbfd9fc36
Actual behavior
- Direct human authorization was described by auto-review as untrusted transcript content.
- Repeating explicit approval in the original implementation conversation did not resolve the denial.
- After resuming the same conversation in the CLI,
/approvedid not expose the original desktop denials. - The blocked patch remained unapplied at the last verified state.
Expected behavior
- Authorization supplied directly by the human user should be distinguished from instructions embedded in repository files, tool output, or relayed messages.
- If policy independently prohibits the action, the denial should identify that restriction accurately.
- The supported recovery flow should explain whether desktop denials are available after CLI resume/restart and what to do when the denial picker is empty.
Questions for maintainers
- Should recent auto-review denials survive a desktop-to-CLI resume of the same conversation?
- Is
/approvelimited to denials recorded in the current process, client, or backend session? - Why might both a direct structured confirmation and a direct typed user authorization be described as untrusted transcript content?
- What is the supported way to review the original denied action when
/approvereports no recent denials?
Feedback reference
Feedback was successfully uploaded from the CLI.
Thread ID: 01a16025-dd86-7ab0-8454-293bbfd9fc36
The observations above do not establish the internal root cause. The uploaded diagnostics should help distinguish an authorization-provenance issue from a denial-retention or client-transition limitation.
Activity
github-actions commentedon Oct 22, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action