Skip to content

Sub-agent auto-review denial cannot receive trusted user approval #45167

Open

Description

@ADAWE087

What version of Codex CLI is running?

codex --version

What subscription do you have?

chatgpt pro

Which model were you using?

gpt sol ultra

What platform is your computer?

macos

What terminal emulator and version are you using (if applicable)?

No response

Codex doctor report

Auto-review blocks an explicitly user-approved local code patch because it says:

"No trusted user approval is present."

The rejected action occurred in sub-agent:
/root/testability_security

Thread ID:
01a09736-a4e4-7dd3-bf59-2ac954a2e2af

The user was shown the exact rejected diff and the security risk, and then explicitly approved one retry of that exact local patch.

However:

1. /approve in Main says:
   "No recent auto-review denials in this thread."

2. The denial exists in the sub-agent thread.

3. When viewing that sub-agent, direct input is disabled:
   "This sub-agent is controlled by its parent. Direct input is disabled."

4. Therefore there appears to be no way for the user to register the
   action-specific approval that auto-review itself requests.

5. Re-attempting through the parent still returns:
   "No trusted user approval is present."

The user does NOT want to bypass or disable safety review.
The problem is that the documented approval path appears inaccessible when
the rejection belongs to a controlled sub-agent.

Expected behavior:
There should be a supported way for the parent/user to approve one specific
previously reviewed sub-agent action after the risk has been disclosed.

Actual behavior:
Main cannot see the denial, while the sub-agent cannot accept user input.

Feedback diagnostics and session logs have already been uploaded from Codex.

No production action was taken as a workaround.

What issue are you seeing?

I’m seeing an approval-flow issue involving auto-review denials created by a controlled sub-agent.

A security-sensitive local code patch was rejected by auto-review with:

"This action was rejected due to unacceptable risk.

Reason: No trusted user approval is present; this is the same previously rejected production finalization/CAS authorization patch and violates the explicit read-only, stop, and no-circumvention instructions.

The agent must not attempt to achieve the same outcome via workaround, indirect execution, or policy circumvention. Proceed only with a materially safer alternative, or if the user explicitly approves the action after being informed of the risk. Otherwise, stop and request user input."

The user was then shown the exact rejected diff and the stated risk, and explicitly approved one retry of that exact local patch.

However, the retry was rejected again with the same "No trusted user approval is present" message.

I then tried the documented approval flow.

In the Main thread, /approve reports:

"No recent auto-review denials in this thread. Denials are recorded after auto-review rejects an action."

The denial exists in a controlled sub-agent thread. When switching to that sub-agent, Codex reports:

"This sub-agent is controlled by its parent. Direct input is disabled."

This creates a dead end:

  • Main cannot see the denial.
  • The sub-agent contains the denial but cannot accept direct user input.
  • Auto-review requires explicit trusted user approval.
  • The user has no apparent way to register that approval for the denied sub-agent action.

The user does not want to bypass or disable safety review. The goal is to use the intended action-specific approval mechanism after reviewing the exact patch and its risk.

Expected behavior:
There should be a supported way for the parent/user to approve one specific, previously reviewed sub-agent action after the risk has been disclosed.

Actual behavior:
The parent thread cannot see the denial, while the sub-agent cannot accept /approve or other direct user input. Retrying from the parent still results in "No trusted user approval is present."

Feedback diagnostics and session logs have already been uploaded from Codex.

No production action, workaround, policy bypass, or alternative implementation was used.

What steps can reproduce the bug?

Uploaded thread: 01a09736-a4e4-7dd3-bf59-2ac954a2e2af

What is the expected behavior?

The expected behavior is that, after auto-review rejects a specific sub-agent action and asks for explicit user approval, the user should be able to register that approval through the parent/Main thread or another supported approval surface.

The approval should apply only to that exact previously reviewed action and should not disable or bypass safety review.

In this case, the expected flow would be:

  1. Auto-review rejects the sub-agent patch and records the denial.
  2. The parent/Main thread can see that denial.
  3. The user reviews the exact patch and risk information.
  4. The user explicitly approves one retry of that exact action.
  5. Auto-review receives that trusted approval and re-evaluates the action.
  6. If policy still requires rejection, it can reject again with a new reason.

The user should not need direct input access to the controlled sub-agent in order to approve the action, because direct input to that sub-agent is disabled.

The key expected behavior is therefore:
a sub-agent denial should be reachable and approvable from the parent/user context in a safe, action-specific way.

Additional information

A few details that may help reproduce the issue:

  • The denial occurred in a controlled sub-agent:
    /root/testability_security

  • Thread ID:
    01a09736-a4e4-7dd3-bf59-2ac954a2e2af

  • The parent/Main thread could not see the denial through /approve.

  • The sub-agent thread could display the denial, but direct input was disabled:
    "This sub-agent is controlled by its parent. Direct input is disabled."

  • The user had already been shown the exact rejected patch and the stated security risk, and explicitly approved one retry of that specific local patch.

  • The retry was still rejected with:
    "No trusted user approval is present."

  • No workaround was attempted. No safety controls were disabled.

  • No production deployment, signing, external anchor publication, or CAS/persistence action was performed as a workaround.

  • The work was frozen and checkpointed after the approval-flow failure.

Feedback diagnostics and logs were already uploaded from the Codex session before opening this issue.

This appears to be specifically about approval propagation/visibility between the parent thread and a controlled sub-agent, rather than about the underlying code patch itself.

Activity

  1. added
    bug
    on Sep 13, 2026
  2. added
    CLI
    subagent
    sandbox
    on Sep 13, 2026
  3. github-actions commented on Sep 13, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. ADAWE087 commented on Sep 13, 2026

    @ADAWE087
    Author

    This appears closely related to #45115, but my reproduction is on macOS. In my case, /approve in Main explicitly reports “No recent auto-review denials in this thread”, while the denial is visible in the controlled sub-agent and direct input there is disabled. This may indicate the same parent/sub-agent approval propagation issue across platforms. I’ll leave this issue open for maintainers to determine whether it should be merged/closed as a duplicate.

  5. ADAWE087 commented on Sep 13, 2026

    @ADAWE087
    Author

    • codex-cli 0.147.0

  6. ADAWE087 commented on Sep 13, 2026

    @ADAWE087
    Author

    I can reproduce the same parent/subagent approval dead-end on macOS with Codex CLI 0.147.0. In Main, /approve reports “No recent auto-review denials in this thread”, while the denial is visible in the controlled sub-agent and direct input there is disabled. This is currently blocking a production recovery workflow; no workaround, safety bypass, or alternate executor has been used.
    Related macOS report: #45167.

  7. vikentiyboss-max commented on Oct 5, 2026

    @vikentiyboss-max

    Separate Windows Desktop / dot reproduction of a similar controlled-child approval handoff problem (October 5, 2026): an existing child task remained blocked under its initial read-only scope after I explicitly approved the specific next action in the parent conversation. The action was a bounded update to two documentation files, with backups and no running-service changes. Relaying my exact approval from the parent did not unblock the child, which continued to request a direct owner instruction.

    I then tried sending that instruction through the UI to the existing child, but it failed with invalid turn/start params: AbsolutePathBuf deserialized without a base path. The message remained unsent with Retry. The child task itself had been created successfully today; task creation was not the failure. An earlier message in a different older session worked, so the failure is not universal.

    I cannot establish whether approval state propagation and the direct-message failure share a cause. This is also a different platform/surface from the original report. I am not asking to disable safety review. What is the supported way for an owner's explicit, action-scoped approval to reach an existing child through dot, and how can the owner recover when the requested direct approval cannot be submitted?

  8. vikentiyboss-max commented on Oct 5, 2026

    @vikentiyboss-max

    Additional Windows Desktop / dot evidence from October 5, 2026 (approximately 12:08–13:03 UTC), in the same delegated local task and recorded working directory, across different turns: an earlier turn created three CRM TODO items and read-back verified them. A later turn’s two items for the same manager and purpose were rejected before execution. The task reported that my relayed approval was treated as untrusted and the initial read-only scope remained in force. One retry with my verbatim approval was also denied; neither later item was created, and no safeguard was bypassed.

    A separate Python launcher issue was resolved before the successful earlier operation by using the installed interpreter and existing CRM script. The later denial was an authorization failure, not that API error. I do not know the exact sandbox settings, low-level API calls, or root cause, and I am not claiming identical commands or a proven shared bug. The owner had approved manager follow-up calls and AI-labelled tasks. What is the supported way to relay owner-approved scope updates consistently to an existing child while preserving safeguards? The previously reported AbsolutePathBuf UI failure also makes direct re-approval difficult.

  9. gaussla0 commented on Oct 7, 2026

    @gaussla0

    We encountered a similar approval-flow blockage with a task delegated by a ChatGPT dot on macOS. The task initially requested inspection only. After the user explicitly authorized a specific deployment to an existing private Google Drive folder, Auto-review continued to reject it, treating the forwarded approval as untrusted and retaining the earlier inspection-only scope.

    The user could not locate an accessible approval control for the delegated task. We have not verified whether /approve is supported for that task, so we are not claiming the same reproduction as the original report. The task was subsequently archived at the user's request. The blocked deployment was not performed through another execution route.

    Is there a supported way for the user to register action-specific approval for a dot-delegated task, or configure its approval reviewer through a visible UI? Please clarify whether this is the same approval-propagation issue.

  10. tentragamo-hue commented on Oct 21, 2026

    @tentragamo-hue

    Additional Windows evidence — 16 and 21 October 2026

    I am requesting a supported action-specific approval and recovery procedure for a history-dependent Codex workflow on Windows.

    Observed sequence:

    1. Earlier task instructions restricted changes to a local persistent export contract. The owner subsequently authorised a limited continuation, with the original denial history disclosed.
    2. On 16 October 2026, a subagent's code-write request was rejected before execution. The stated reason treated the later authorisation as untrusted tool-relayed content while retaining earlier trusted restrictions.
    3. The subagent was listed in the local CLI, but selecting it returned "Agent thread ... is no longer available." The parent remained selected, and the child's approval picker was not reached. CLI 0.160.1 was used for that historical selection attempt; this is not a claim about the current Desktop build.
    4. On 21 October 2026, according to the accessible parent task's execution report, a further local write was rejected before execution. In this later attempt, our instruction explicitly required clarification of a supported technical approval route before implementation. The rejection cited that unmet condition. This event differs from the earlier tool-relayed-authorisation rejection and does not by itself establish a reviewer defect.

    Environment and evidence limits:

    • Windows; the exact Desktop build for the 21 October attempt is not yet independently verified.
    • CLI 0.160.1 is evidenced only for the historical 16 October selection attempt.
    • The precise time and tool-call identifier of the 21 October denial have not been independently established here.
    • This report uses existing records; it is not a fresh minimal reproduction.

    The current Desktop documentation lists /approve, subject to environment and access:
    https://learn.chatgpt.com/docs/reference/slash-commands
    https://learn.chatgpt.com/docs/sandboxing/auto-review

    We have not established its availability or eligibility for these exact denials in the installed Desktop version.

    Expected outcome:
    A supported, discoverable way to inspect the relevant denied action and register personal action-specific approval where permitted, or a clear explanation of the controlling restriction and a supported continuation procedure. The original history and normal security review should remain intact.

    The full application integration still requires development and verification after this blocker is resolved. It is currently delaying our website launch. An existing private support case contains historical identifiers and evidence, but we have not received a confirmed actionable recovery procedure.

    Related reports, without claiming a proven identical root cause:
    #45167
    #45115

    Please identify the supported UI/procedure and required version, or the responsible component if a product fix is necessary. If further diagnostics are essential, please specify the minimum existing Windows logs and a read-only collection method that does not require replaying the denied write.

  11. tentragamo-hue commented on Nov 3, 2026

    @tentragamo-hue

    A brief update: I have been able to resume development, but the approval issue reported here remains unresolved.

    CLI 0.164.0 restored access to my existing subagent. However, /approve is still blocked by:

    “This sub-agent is controlled by its parent. Direct input is disabled.”

    Development resumed after I clarified outdated conditions in my own instructions and explicitly authorized a smaller, separate scope. The same agent’s new request passed normal review, with the previous denials preserved and security checks active.

    This restored progress; it did not resolve access to the original denial’s approval process.

    Is there a supported way to personally review a specific denial in a parent-controlled subagent?

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

    CLIbugsandboxsubagent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions