Skip to content

[Bug]: Full Access Codex delegate blocks on a command approval #39460

Closed

Description

@duykhanh01

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to investigate the problem.

Area

apps/server

Steps to reproduce

Observed once in an existing session. I have not confirmed a standalone reproduction.

  1. Start a T3 thread in Full Access and delegate a review via delegate_task to a Codex provider.
  2. Confirm the delegated thread shows Full Access. The Codex turn context recorded danger-full-access and the granular policy below.
  3. The reviewer made a normal shell tool call. The call combined a Python heredoc that wrote a temporary report, a read of the report, cleanup of two temporary files, and git status. It did not request escalated sandbox permissions.

Expected behavior

A normal shell call in this Full Access child should complete unattended. If an additional policy intentionally requires approval, show the reason and surface the blocked state to the delegating thread, so it is clear the child is waiting for input.

Actual behavior

Codex app-server sent item/commandExecution/requestApproval for the command with commandActions: [{ "type": "unknown" }] and availableDecisions: ["accept", "cancel"], with no reason field. The call was blocked for about 2h26m. As soon as T3 sent accept, Codex resolved the request and the command completed with exit code 0. The reviewer only saw an in-progress tool cell followed by successful completion, and did not see an approval request in its tool output.

This was a delegated task, not a /btw or /side thread. The child already had Full Access, and the installed release contains #31114. I could verify that the request originated in Codex app-server. I could not identify the command or policy rule that triggered it, or determine whether T3's effective approval configuration explains why it was presented to the user.

Impact

An unattended delegated review was blocked until the approval was resolved. Frequency is unknown.

Version or commit

T3 Code server v0.1.10

Environment

Linux x86_64, Codex CLI/app-server 0.170.0, delegated Codex provider, Full Access.

Logs or stack traces

Sanitized turn context:

{
  "sandbox_policy": { "type": "danger-full-access" },
  "permission_profile": { "type": "disabled" },
  "approval_policy": {
    "granular": {
      "sandbox_approval": false,
      "rules": false,
      "skill_approval": false,
      "request_permissions": false,
      "mcp_elicitations": true
    }
  }
}

Sanitized protocol sequence:

+0s       Codex -> T3  item/commandExecution/requestApproval
                     commandActions: unknown; availableDecisions: accept, cancel
+2h26m    T3 -> Codex  decision: accept
          Codex -> T3  serverRequest/resolved
          Codex -> T3  item/completed (commandExecution, exitCode: 0)

Workaround

Resolving the approval in T3 unblocked the existing command. No unattended workaround verified.

Activity

  1. juliusmarminge commented on Nov 23, 2026

    @juliusmarminge
    Member

    Fixed by #40773, now on main: A delegated Codex child using default Full access now automatically accepts the reported non-network command approval, allowing its temporary-report cleanup command to finish without a person clicking Approve.

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