Skip to content

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

Closed as duplicate

Description

@dkstjrgus

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) Model approval_policy approvals_reviewer Sandbox
2026-11-16 09:30 gpt-6.1-terra "never" user danger-full-access
2026-11-19 15:42 gpt-6.2-sol {"granular":{"sandbox_approval":false,"rules":false,"skill_approval":false,"request_permissions":false,"mcp_elicitations":true}} user danger-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

Activity

  1. juliusmarminge commented on Nov 19, 2026

    @juliusmarminge
    Member

    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.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions