Skip to content

Direct user authorization treated as untrusted; /approve finds no desktop denials after CLI resume #56113

Open

Description

@arbenl

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.0 during 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-write with auto_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.mjs
  • scripts/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

  1. The implementation agent requested approval for the bounded change.

  2. 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.

  3. 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.

  4. We tried moving to the CLI to use the documented /approve flow. 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
  5. /approve was initially entered at the zsh prompt, producing:

    zsh: no such file or directory: /approve
    

    We corrected this by entering it inside the Codex TUI instead.

  6. The CLI update ran npm install -g @openai/codex, completed successfully, and requested a restart. The installed version was subsequently verified as codex-cli 0.163.0.

  7. 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.

  8. Inside that resumed CLI conversation, /approve returned:

    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.

  9. 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, /approve did 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

  1. Should recent auto-review denials survive a desktop-to-CLI resume of the same conversation?
  2. Is /approve limited to denials recorded in the current process, client, or backend session?
  3. Why might both a direct structured confirmation and a direct typed user authorization be described as untrusted transcript content?
  4. What is the supported way to review the original denied action when /approve reports 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

  1. added
    bug
    app
    sandbox
    session
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugsandboxsession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions