Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(codex): full access answers command and file approvals again #37611

Closedmatthias-scale(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/37611/headopened View on GitHub

Problem

Since #37104, Codex threads in Full access ask the user to approve some commands again. docs/user/permission-modes.md says Full access "allows commands and edits without approval prompts".

#37104 changed the full-access approval policy from never to a granular policy, so MCP elicitations can still reach T3. Codex raises its own safety prompts, for example before rm -rf, under every policy except never. Those prompts now reach the user.

To reproduce: start a Codex thread in Full access and have it run rm -rf "$(mktemp -d)". On main the thread waits for approval. Before #37104 it ran.

Change

In full access, the Codex adapter now answers command, file-change and permission approvals itself, for both the v2 and legacy requests. This matches how #37104 already answers MCP elicitations in full access. It answers accept for that one request, not for the session, so switching the thread to a supervised mode asks again from the next turn.

Scope

Regression fix for #37104. No issue filed: the documented behaviour and the cause are both clear.

Verification

  • Extended stops asking for commands the user allowed for the session. Its full-access turn now raises a command approval and a file-change approval, and the test expects accept on the wire. The existing assertion that exactly four requests reach the user also covers them. On main that test waits on the unanswered approval until it times out. With the fix it passes.
  • The Codex file-change approval paths tests check what a prompt shows, so they now run in auto-accept-edits, the same setup #37104 uses for its MCP case.
  • vp run check:changed: format, lint, knip, typecheck (3 packages), and tests (201 passed).
  • I did not run a live Codex session against a dev server. The protocol path is covered by the replay tests above.

Agent: Claude Opus 5.5 in Claude Code, run from T3 Code.

Replaces #37589, which the open-PR limit closed and GitHub would not reopen.

    1. tanstack-source added labelsbug

    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Approvability

      Verdict: Needs Human Approval

      Macroscope's review found this PR requires human approval — Full-access Codex turns will automatically answer native command, file-change, and permission approvals, including destructive-command safety prompts. Confirm that these prompts should all be bypassed: request-scoped approval preserves later mode changes but cannot undo completed destructive actions.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Thanks for this. #37306 makes the same change and is the one being kept.

      #37306 fixes the same Full access command regression while preserving explicit approval-policy overrides. This version accepts requests based only on Full access, even when the turn explicitly requires approval.

      Your request-scoped acceptance and coverage of file-change, permission, and legacy requests are useful additional work. Those paths could be considered separately while retaining the explicit-policy guard.

      Closing as a duplicate.

    5. juliusmarminge closed this

Sign in to join this conversation.