Skip to content

Desktop: delegated Codex review rejected for missing authorization despite explicit user consent #43675

Open

Description

@dominikS007

Summary

In Codex Desktop on macOS, a delegated maintenance review was rejected before process creation despite explicit user consent in the originating task to send private source, diffs, tests, and QA evidence to OpenAI/Codex. The consent was relayed to the organizer and review child. Please clarify the supported action-specific authorization path across delegated tasks.

Observed behavior

On September 7, 2026, the review child's exec_command failed with CreateProcess Rejected. The retained rejection said:

The review uploads private repository source, tests, and QA evidence to OpenAI/Codex, but the transcript provides no trusted user authorization for this specific sensitive payload and destination.

No reviewer process started and no review result exists. The denied action was not rerouted through another provider or agent. Subsequent maintenance has preserved unfinished changes and passing tests without treating them as independent review clearance.

Expected behavior

Either match explicit user authorization to the specific delegated payload and destination, or expose a supported way for the user to authorize that exact action in the correct task. We are not requesting disabled safety checks or blanket permission for unrelated data transmission.

Observation sequence

  1. User authorizes private maintenance source, diffs, tests, and QA evidence for OpenAI/Codex review in the originating task.
  2. Authorization and bounded review scope are relayed to an organizer and review child.
  3. The child attempts the review.
  4. Execution is rejected before process creation for missing trusted authorization.

These are retained observations, not a newly re-executed reproduction. The precise consent-propagation mechanism and root cause are not established. The affected app/build version was not captured in this sanitized report.

Separate task-status observation

Supported read/wait calls for the organizer repeatedly reported an older interrupted turn while retained execution records contained later completed turns without errors. This is a separate observation; a shared cause with review rejection is not established. Please advise if it should be tracked separately.

Related reports

Privacy and impact

Required review and integration remain blocked. The user explicitly approved this public, sanitized report. It contains no repository source or diffs, credentials, task/turn/call identifiers, local paths, or full sessions. Additional private diagnostic details would require an appropriate supported private channel and consent.

Activity

  1. added
    bug
    app
    subagent
    sandbox
    on Sep 8, 2026
  2. github-actions commented on Sep 8, 2026

    @github-actions
    Contributor
  3. dominikS007 commented on Sep 8, 2026

    @dominikS007
    Author

    Additional local diagnosis on Codex CLI 0.153.4 and Desktop 26.901.51231: codex doctor reports missing rollout-index rows and duplicate thread inventory entries, while targeted codex migrate-rollouts inspection says the affected tasks are already paginated and offers no migration repair. In the original task, /approve opens successfully but reports no recent auto-review denials, so the documented exact-action override cannot recover this historical rejection. The installed CLI reports 0.153.4 as current. No rejected review was retried, no approval marker was synthesized, and no safety configuration was changed. This may help separate thread-history/index repair from authorization-provenance handling.

  4. dominikS007 commented on Sep 8, 2026

    @dominikS007
    Author

    I traced both behaviors to the current open-source implementation at 3caf9f9586baedb4158a7b91545ead3dd320c348.

    The /approve picker is not durable today:

    That combination explains the reproduction exactly: after resuming the same task in a new TUI process, /approve reports no recent denials because there is no durable event from which to rebuild the queue. This conflicts with the docs wording that Codex records up to 10 denials per task.

    The delegated-authorization case is separate. App-created tasks receive organizer continuations as inter-task tool output, not genuine root-user input. The Guardian transcript keeps agent messages as assistant evidence, while root-user authorization inheritance exists only for MultiAgent V2 workers with a registered root thread. A separate visible Codex task therefore cannot inherit the user's authorization merely because an organizer relayed it.

    Suggested fixes:

    1. Store denied assessment records durably per thread and rebuild the 10-item picker on resume. The server should own the record or validate any client-provided event before applying the one-retry approval.
    2. Add an explicit, host-attested authorization channel for organizer-created app tasks. Do not promote arbitrary delegation text to trusted user content.

    As a bounded local mitigation, the documented [auto_review].policy mechanism can mark one exact repository and review workflow as trusted while preserving the complete default policy. That avoids weakening general egress checks, but it does not fix either product defect above.

  5. dominikS007 commented on Sep 8, 2026

    @dominikS007
    Author

    Follow-up with an isolated implementation experiment against source baseline
    3caf9f9586baedb4158a7b91545ead3dd320c348. This is not an installed-app fix or a
    claim that this issue is resolved. I saw the contribution guide's policy against
    external code contributions, so I am supplying reproduction and design evidence
    here rather than opening a PR.

    The denial-recovery experiment uses a bounded server-owned store, populated only
    by live denied assessments. The TUI reloads it through a snapshot RPC on opening
    the chooser. Persistent tasks retain their ten-record window across restart;
    ephemeral tasks keep theirs only in memory. Client-supplied, inherited, or
    replayed history cannot create approval candidates.

    The existing direct-input authority check remains. Approval must match the
    stored thread and full event and can be consumed once. A confirmed failure to
    enqueue the approval restores the exact retained record. There is no rollback
    after uncertain delivery, no automatic retry, and no change to reviewer policy.

    Acceptance cases exercised include storage reopen, concurrent consumption,
    changed action and cross-thread requests, duplicate delivery, retained-window
    bounds, ephemeral storage, chooser restoration, and actual-worker direct-input
    rejection. The live producer/restart integration test now uses a real server
    denial path with local mocked MCP and Guardian Responses, not seeded storage.
    It passed, including reading the exact event before shutdown and after restart,
    rejecting unknown/altered events, accepting the original once, and rejecting reuse.

    The broader library run passed 7,251 tests across core, TUI, and app-server
    (two skipped; one passed on the existing retry). Earlier startup failures passed
    with four workers, and four terminal-color failures were traced to NO_COLOR=1.
    Removing that variable only from the test process made those four pass without
    changing assertions or snapshots. The original failures remain in the local
    evidence. This is scoped validation, not a full-workspace or production
    verification.

    The independent-task delegation problem is still separate. The public TUI's
    create_thread uses thread/start; its continuation is TurnStartParams.tool_output.
    The escaped source_thread_id is descriptive text, not a verified parent
    relationship. AgentControl::root_user_authorization requires registered
    MultiAgent V2 membership. A fix needs a server-owned association to the actual
    pending source call and original user evidence, with revision/incompleteness
    tracking. Trusting copied delegation markup or relabeling the organizer's text
    as user input would not be a safe fix.

    Remaining boundaries: no retroactive reconstruction of denials already lost;
    no exactly-once guarantee across a crash between consumption and delivery; new
    chooser loading requires the new server method. The private desktop host's
    implementation still needs maintainer verification.

  6. ikekou commented on Sep 21, 2026

    @ikekou

    Additional observed case: explicit publication approval did not carry into a user-requested separate Codex Desktop task.

    Observed on September 21, 2026 (Asia/Tokyo), using Codex Desktop on macOS with approvals_reviewer=auto_review and a workspace-write sandbox. This was a separate visible app task created at the user's explicit request, not an internal multi-agent worker.

    Sequence

    1. In the originating task, Codex asked whether it could hand an essay to a separate task, publish it to the user's WordPress site and Substack publication, and proceed with email/app distribution. The user explicitly approved creating the separate task and proceeding through publication and email distribution.

    2. The new task's handoff recorded the specific destinations, essay, requested workflow, and the user's approval. It also recorded that this approval had been obtained after an earlier automatic-review rejection.

    3. The receiving task prepared the article and generated a header image. The browser tool then rejected uploading that image to the signed-in WordPress account:

      This action was rejected due to unacceptable risk.
      Reason: Uploading the local image mutates the signed-in WordPress account and externally stores an asset; the trusted transcript contains no user authorization for this consequential upload.

    4. The task stopped and asked the user again whether it could publish the prepared article and image to the same WordPress and Substack destinations, send email/app notifications, and complete the archive commit/push.

    5. The user replied ok directly in the receiving task. The image upload and the rest of the workflow then succeeded. The article, image, destinations, and requested scope were unchanged. No bypass of the rejected operation or change to safety settings was used.

    Expected behavior

    Specific user approval should remain usable within its approved scope when the user explicitly asks Codex to create a separate task to perform that work. The user should not need to repeat the same authorization solely because the work moved to another task.

    This is not a request to trust arbitrary handoff prose or disable safety checks. Please preserve a verifiable association between the original user authorization, its bounded action/data/destination scope, and the user-requested destination task. If that association cannot be established, the product should identify the authorization-transfer limitation rather than describing the situation simply as absent user authorization.

    Impact and diagnostic distinction

    The workflow was interrupted and required redundant user intervention despite explicit approval before delegation. This undermines the reliability of task delegation and encourages confirmation fatigue.

    The useful comparison is that approval relayed from the originating task was rejected, while a direct ok in the receiving task allowed the same workflow to proceed. This is a retained observation, not a controlled reproduction or proof of the internal cause. I cannot establish whether the original authorization was omitted from the reviewer context or included but classified as untrusted.

    No essay text, subscriber information, credentials, private repository identifiers, local paths, or full conversation logs are included in this report.

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

    appbugsandboxsubagent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions