Codex Full Access command rejection exposes only blocked by policy; rejecting layer and recovery unclear #30374
Before submitting#
- Searched existing issues. Related #25674 fails at turn/start; #25640 concerns Auto-mode deletion. This case occurs inside a running Full Access turn.
Area#
apps/server / Codex integration diagnostics (ownership unconfirmed)
Observed sequence#
- Existing Windows desktop Codex thread reports runtimeMode
full-access. - Local Codex config has
sandbox_mode = "danger-full-access",approval_policy = "never",approvals_reviewer = "user". - A composite PowerShell exec_command to prepare/start an isolated Docker CI runner was rejected before process creation. A subsequent explicitly user-approved corrected plan received the same error at 2026-11-03T20:48:03.7624295Z.
- Other read-only exec_command calls continued to work in this thread. Reconciliation found no scripts, authentication staging file, or new runner created by the rejected command.
This is an observed incident, not a minimized deterministic reproduction. The command involved local script creation, Docker runner setup, and staging an existing GitHub credential for private CI use. No credential values or raw credential-bearing command are included here. We have not replayed the denied action through another tool or weakened policy to reproduce it.
Actual behavior#
The only available tool error is:
exec_command failed: CreateProcess { message: "Rejected(\"...powershell.exe -Command '...' rejected: blocked by policy\")" }
No rejecting-policy identifier, rationale, or approval request ID was supplied in that result. We could not establish whether this is provider exec policy, managed policy, or another enforcement layer. No supported exact-action recovery path has been established. This report does NOT establish that T3 caused the denial or dropped an upstream event.
Expected behavior#
Expose the rejecting layer, reason and any supported recovery when the provider supplies them. If the provider supplies only this generic string, make that limitation explicit and provide a safe diagnostic path. Full Access must not imply that managed/provider policy can be bypassed. A user approval in chat should not be advertised as an override.
Evidence and limits#
- T3 server:
0.1.7-nightly.20261103.4119, Windows x64, desktop, Codex harness. - Current reported model: gpt-6.1-sol. Exact provider binary responsible for the earlier denial has not been correlated; multiple Codex installations exist.
- Read-only source inspection at
b5b6c8cf4c00873c15e26fea4973138a755e84ae:codexRuntimeModeTurnDefaults("full-access")maps tonever, revieweruser,dangerFullAccess. This checkout is not proof of the installed bundle's exact source revision. - No requirements.toml was found at the standard ProgramData OpenAI/Codex location or two other local candidate locations. This does not rule out cloud-managed requirements.
- Searched retained server.trace.ndjson rotations for the literal error: no match. This does not prove absence from all provider logs or events.
- Earlier incident notes incorrectly called this automatic approval review; that attribution is retracted. It remains unknown which layer rejected it.
Impact / workaround#
Blocks the requested full-CI qualification. No supported workaround established. Source and existing test evidence are preserved; denied bootstrap remains stopped.
Requested triage#
Identify whether Codex exposes structured policy-denial diagnostics or exact-action override APIs for this case, and whether T3 preserves/exposes them. Route upstream if the limitation originates in Codex. Do not add blanket allow rules or bypass managed policy.
Ran this on main
a10490937d(Linux, Codex CLI 0.163.0, T3 web dev server, fresh database).Which layer rejects it: Codex's own exec policy, not T3 and not a managed
requirements.toml. In openai/codexcodex-rs/core/src/exec_policy.rs, a command that Codex's dangerous-command heuristic flags needs an approval. On Windows the heuristic covers, among others, PowerShellRemove-Item -Force,Start-Process <url>,cmd /c del /fandrd /s /q. Withapproval_policy = neverthere is no one to ask, so Codex returnsForbiddeninstead ofPrompt. When no.rulesentry matched, the reason Codex attaches is the fixed textrejected: blocked by policy; only Unixrm -fgets a more specific message. T3's Full access sendsapprovalPolicy: neverwithdangerFullAccess, the same pair as Codex's own Full Access preset.What I ran, all with one command the heuristic flags (a forced
rm -rfof a scratch directory behind nestedenvwrappers):codex exec -c approval_policy=never -s danger-full-accessdirectly: the exact error from the report,exec_command failed: CreateProcess { message: "Rejected(\"/bin/bash -lc '…'rejected: blocked by policy\")" }. Codex emitted nocommand_executionitem for it.- A T3 thread in Full access: the same text, which appears only as the agent's reply. T3's raw provider log for that turn shows
turn/startwithapprovalPolicy: never, then onlyagentMessageitems. Codex sent no command item, approval request or error notification. That means there is no policy identifier, rationale or request ID for T3 to keep, and nothing was dropped. It also explains why yourserver.trace.ndjsonsearch found nothing. - A T3 thread in Auto-accept edits: Codex asked instead, and T3 showed a normal command approval card with Decline and Approve.
Recovery: for that step, switch the thread to Supervised or Auto-accept edits and approve the exact command in the approval card. Approving the plan in chat never reaches Codex's check, so the error repeats under Full access, which matches your 20:48 retry. The other route, an
allowprefix_rulein~/.codex/rules/*.rules, is broader, and you asked not to add one. A request for a more specific reason on the Windows heuristic belongs upstream at openai/codex.Closing this, because T3 receives and shows everything Codex sends here. If T3 shows no approval card for such a command in Supervised or Auto-accept edits, reopen with the mode and the time.
juliusmarminge closed this
Turn it off and on again. A classic. Thanks!
This also happened on Windows 10 Pro with T3 Code 0.1.11 and Codex CLI 0.166.0.
In Full access, Codex rejected a PowerShell deployment command before it started. The tool call used the default permissions and returned:
approval required by policy, but AskForApproval::Granular.sandbox_approval is falseSwitching the same thread to Auto-accept edits let T3 show an approval card. The deployment completed after the user approved it there.
This confirms the workaround on the newer granular approval policy. The error identifies the disabled approval category. A note in the permission menu explaining that some Codex commands still require approval, and pointing to Auto-accept edits when they do, would have made the recovery clear.
Prepared with Codex (GPT-6.2 Sol) in T3 Code.
Follow-up: user-reported permission selection and exposed thread state disagree; requesting supported diagnostics, not a policy bypass.
Environment: Windows desktop, T3 server 0.1.11, Codex harness. The affected conversation was imported from an existing Codex conversation. Both T3 Code and the standalone OpenAI Codex desktop app are running, so a surface/environment mismatch has NOT been ruled out.
The user repeatedly reports selecting Auto-accept edits and has started new turns. No screenshot or UI persistence event has been captured, so this is not proof that the control saved the intended thread. In those new turns, read-only t3_thread_configure calls against the current thread consistently return runtimeMode: full-access, interactionMode: default. An independent read of the related coordination thread also returned full-access. The source thread has not been changed by the agent.
A historical deployment-preparation action returned only blocked by policy before process creation. We have not replayed that denied action, created a proxy authorization, modified permission storage, or weakened rules. Ordinary read-only commands work. No new approval card or fresh policy denial is claimed from the current sequence.
Which supported UI/log diagnostic can correlate (1) the selected permission mode, (2) the saved mode for the exact imported thread/environment, and (3) the effective Codex turn approval settings? Can imported threads or choosing the setting in a different app/environment explain this? Please advise a safe way to apply the mode through the normal permission control. We are not requesting blanket allow rules, direct database changes, or an override of managed/provider policy.
This is a sanitized report authorized by the user. Private thread IDs, project/repository identifiers, host addresses, logs, credentials and deployment contents are deliberately omitted. Prepared with Codex in T3 Code.
Owner-authorized follow-up to https://github.com/pingdotgg/t3code/issues/30374#issuecomment-7072888188. I see this issue is closed; please advise whether the imported-thread permission-state question belongs in a new issue.
New diagnostic results on November 22:
- The live environment API confirms T3 server 0.1.11, Windows x64.
- A fresh read-only t3_thread_configure call, with no threadId (the actual caller thread), still returns runtimeMode: full-access and interactionMode: default. This rules out an explicitly supplied wrong thread ID for that particular read.
- The user again reports that Auto-accept edits is selected. The visible selection/save event is still not independently captured, so a surface or persistence mismatch remains a hypothesis, not a confirmed product defect.
- Current server, desktop and renderer-history logs were checked read-only for that imported conversation plus permission-mode terms. No matching records were found in those current files. This does not establish that older logs or another event schema lack the event. No log contents or identifiers are attached.
- The documented t3_thread_configure interface says permission modes stay unchanged; its mutation interface offers provider/model settings, not a permission-mode repair. We have not changed settings storage or attempted to elevate our own permissions.
Could a maintainer provide the supported UI location and a read-only diagnostic/export that correlates the current imported conversation's saved mode with its effective Codex approval settings? If this is a known 0.1.11 imported-thread issue, which supported release or recovery procedure addresses it? We will not reopen/replay a denied deployment request, self-issue release clearance, or weaken approval controls.
The user has asked me to coordinate the report directly. Please provide technical next steps rather than another generic Full Access explanation. We can supply a sanitized supported diagnostic if needed. No credentials, private repository/thread IDs, hosts, source code or deployment package details are included. Prepared with Codex in T3 Code.
Sign in to join this conversation.
Read-only triage follow-up: native session evidence and timestamp correction#
Authorized follow-up on this existing issue; no duplicate, repair, service restart, policy change, or replay of the denied bootstrap.
New verified evidence
0.166.0, originatorT3 Code, sourcevscode. This identifies the session-reported version, not the responsible executable path/hash; multiple installations remain uncorrelated.turn_contextat2026-11-03T20:43:49.023Zrecordsapproval_policy: never,approvals_reviewer: user,sandbox_policy: {type: danger-full-access}, modelgpt-6.1-sol. Athread_settings_appliedevent also recordsneverand revieweruser. These are recorded session settings, not proof that no additional enforcement layer applied.recorded_utc, not the rejection timestamp.custom_tool_call_outputcontains two text blocks: a script failure withWall time 0.0 seconds, and the genericexec_command failed: CreateProcess ... rejected: blocked by policyerror. It contains no non-text structured block or request-ID marker. The stored error truncates the echoed command; raw command text is deliberately omitted here.automatic_reviewfield is an agent-authored interpretation and remains retracted; it is not provider evidence.Environment / investigation limits Installed desktop-bundled
t3 triage --helpdescribes investigation; the bundled CLI reports0.1.7-nightly.20261103.4119. Read the reference checkout's AGENTS.md and triagePrompt.ts, and checked the current upstream triage playbook. Reference checkoutb5b6c8cf4c00873c15e26fea4973138a755e84aeis still not proof of installed source identity. No live database/config writes or secret/auth-store inspection were performed.Diagnosis / smallest next step Rejecting layer and rationale remain unknown. Recorded Full Access settings do not establish an override entitlement. This evidence does not establish automatic review, managed-policy causation, or a T3 event-loss defect. No supported exact-action recovery is established.
Maintainers can now inspect the correct 20:46:11 UTC window and advise which supported, sanitized app-server/provider diagnostic captures the rejecting policy/reason and whether a structured event exists. Correlating the historical executable and obtaining that evidence should precede any recovery attempt; no blanket allow rule or denied-action replay is requested.
Produced by gpt-6.1-sol in the Codex harness through T3 Code.