Skip to content
Source
Sign inSign up
pingdotgg/t3code

Codex Full Access command rejection exposes only blocked by policy; rejecting layer and recovery unclear #30374

ClosedMTG-Thomas(GitHub profile, opens in a new tab) opened this issue 6 comments

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

  1. Existing Windows desktop Codex thread reports runtimeMode full-access.
  2. Local Codex config has sandbox_mode = "danger-full-access", approval_policy = "never", approvals_reviewer = "user".
  3. 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.
  4. 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 to never, reviewer user, 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.

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

    • Correlated the affected T3 turn (ordinal 23, started 2026-11-03T20:43:38.598Z) to its native Codex turn using the exact native turn ID present in T3 activity and the session JSONL. This is stronger than inferring effective turn settings from the UI or local config alone.
    • Native session metadata reports Codex CLI 0.166.0, originator T3 Code, source vscode. This identifies the session-reported version, not the responsible executable path/hash; multiple installations remain uncorrelated.
    • Native turn_context at 2026-11-03T20:43:49.023Z records approval_policy: never, approvals_reviewer: user, sandbox_policy: {type: danger-full-access}, model gpt-6.1-sol. A thread_settings_applied event also records never and reviewer user. These are recorded session settings, not proof that no additional enforcement layer applied.
    • Timestamp correction: the denied composite call's native tool output is timestamped 2026-11-03T20:46:11.582Z (call recorded at 20:46:11.492Z). The previously reported 20:48:03.7624295Z is the private reconciliation receipt's recorded_utc, not the rejection timestamp.
    • That native custom_tool_call_output contains two text blocks: a script failure with Wall time 0.0 seconds, and the generic exec_command failed: CreateProcess ... rejected: blocked by policy error. 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.
    • Retained per-thread provider-event log rotations end at 2026-11-03T12:26:12.428Z, before the affected turn. Consequently, absence of a denial/approval event in those files is not evidence that T3 never received one. The inspected native session window likewise supplies no separate approval-request event, but is not a complete app-server transport capture.
    • The private receipt reports no newly created driver/analysis script, private environment file, started process, or started tests. Its automatic_review field is an agent-authored interpretation and remains retracted; it is not provider evidence.

    Environment / investigation limits Installed desktop-bundled t3 triage --help describes investigation; the bundled CLI reports 0.1.7-nightly.20261103.4119. Read the reference checkout's AGENTS.md and triagePrompt.ts, and checked the current upstream triage playbook. Reference checkout b5b6c8cf4c00873c15e26fea4973138a755e84ae is 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.

  2. 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/codex codex-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, PowerShell Remove-Item -Force, Start-Process <url>, cmd /c del /f and rd /s /q. With approval_policy = never there is no one to ask, so Codex returns Forbidden instead of Prompt. When no .rules entry matched, the reason Codex attaches is the fixed text rejected: blocked by policy; only Unix rm -f gets a more specific message. T3's Full access sends approvalPolicy: never with dangerFullAccess, the same pair as Codex's own Full Access preset.

    What I ran, all with one command the heuristic flags (a forced rm -rf of a scratch directory behind nested env wrappers):

    1. codex exec -c approval_policy=never -s danger-full-access directly: the exact error from the report, exec_command failed: CreateProcess { message: "Rejected(\"/bin/bash -lc '…' rejected: blocked by policy\")" }. Codex emitted no command_execution item for it.
    2. 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/start with approvalPolicy: never, then only agentMessage items. 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 your server.trace.ndjson search found nothing.
    3. 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 allow prefix_rule in ~/.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.

  3. juliusmarminge closed this

  4. Turn it off and on again. A classic. Thanks!

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

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

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

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