Skip to content
Source
Sign inSign up
pingdotgg/t3code

Full access Codex children ask the user to approve shell commands since #37104 #39181

Closeddkstjrgus(GitHub profile, opens in a new tab) opened this issue 1 comment

What happens

A Codex child started with delegate_task in full-access runtime mode stops and waits for the user to approve a shell command. Before 2026-11-15 the same kind of child ran these commands without asking.

The parent agent can't answer it: t3_pending_request doesn't list approvals and can't approve them. The child stays blocked until the user approves it by hand, so unattended delegated work stalls.

Cause

#37104 (96290af4e0, "fix(codex): keep browser access prompts available in full access") changed the full-access turn defaults in apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts:

     case "full-access":
       return {
-        approvalPolicy: "never",
+        approvalPolicy: {
+          granular: {
+            mcp_elicitations: true,
+            request_permissions: false,
+            rules: false,
+            sandbox_approval: false,
+            skill_approval: false,
+          },
+        },
         approvalsReviewer: "user",
         sandboxPolicy: { type: "dangerFullAccess" },

The goal was to let browser and app access prompts through. The side effect is that full access is no longer approval-free for shell commands. The PR's tests only cover MCP elicitations.

Evidence

These are the turn_context records from the Codex rollout files of T3-launched children. The cwd, the runtime mode (full-access) and the local Codex config are the same in both rows. The config has no approval_policy and was last changed before both dates.

Session (UTC)Modelapproval_policyapprovals_reviewerSandbox
2026-11-16 09:30gpt-6.1-terra"never"userdanger-full-access
2026-11-19 15:42gpt-6.2-sol{"granular":{"sandbox_approval":false,"rules":false,"skill_approval":false,"request_permissions":false,"mcp_elicitations":true}}userdanger-full-access

The prompt in the second session was a command approval (runtime-request:…:native-request:exec-…). The command was a PowerShell script that:

  1. created a folder under C:\Users\Public\Documents,
  2. wrote a .ps1 there and ran it through a helper script that starts a desktop app,
  3. copied one file back into the workspace,
  4. deleted its own folder with Remove-Item -Recurse -Force.

I can't tell from the code which granular category made Codex ask. My guess is Codex's dangerous-command check on the recursive force-delete. Under "never" that check had no way to ask the user.

Expected

Full access means no command approvals, as before #37104, while browser and app access prompts still get through.

One way to do this would be a granular policy that also auto-approves commands. Another would be to keep "never" for exec and handle MCP elicitations separately. I don't know enough about Codex's granular semantics to say which one fits.

Versions

  • T3 Code Nightly 0.1.11-nightly.20261118.4877 (Windows 11)
  • Codex CLI 0.170.0
  • Child: delegate_task, providerInstanceId: codex, runtime mode inherited full-access
  1. tanstack-source added labelsbug

  2. This is the same problem as #37298, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

  3. juliusmarminge closed this

Sign in to join this conversation.