Skip to content

“On request” approval setting still results in sandbox_approval=false, blocking Sites publication #52517

Open

Description

@STAPPSCreations

What version of the Codex App are you using (From “About Codex” dialog)?

26.1007.21159

What subscription do you have?

Plus

What platform is your computer?

macOS, Apple Silicon (arm64), Mac Mini

What issue are you seeing?

The desktop app blocks the official Sites publication workflow at write_stdin with:

write_stdin rejected: approval required by policy, but AskForApproval::Granular.sandbox_approval is false

In Settings → Configuration → Work → Local approval policy, I explicitly selected “On request” (“Op verzoek” in Dutch).

After fully quitting and restarting the app and opening a new chat, the assistant still reports an active granular approval policy with sandbox_approval=false. No approval prompt appears.

Expected: the required approval prompt should appear, or the app should explain which policy overrides the selected setting.

Actual: the operation is automatically rejected, preventing publication of an existing private Site.

In-app feedback ID:
01a11fe7-d7c9-73f0-a2da-129f2cda5563

Earlier feedback ID:
01a10db3-3470-7a62-a2e6-c17917f71211

No attempt was made to bypass the restriction.

What steps can reproduce the bug?

  1. In the desktop app, open Settings → Configuration → Work.
  2. Set Local approval policy to “On request”.
  3. Fully quit and restart the app.
  4. Open a new chat and request publication of an existing private Site.
  5. The official Sites workflow starts and waits for JSON input on stdin.
  6. The write_stdin call is rejected with:
    approval required by policy, but AskForApproval::Granular.sandbox_approval is false
  7. No approval prompt appears.

What is the expected behavior?

With “On request” selected, the required approval prompt should appear so I can approve or decline the operation. If another policy overrides this setting, the app should clearly identify it and explain how to resolve the conflict.

Additional information

The problem persists after restarting the app and opening a new chat.

In-app feedback ID: 01a11fe7-d7c9-73f0-a2da-129f2cda5563
Earlier feedback ID: 01a10db3-3470-7a62-a2e6-c17917f71211

Activity

  1. added
    app
    on Oct 9, 2026
  2. added
    bug
    sandbox
    config
    tool-calls
    on Oct 9, 2026
  3. eliashonor commented on Oct 14, 2026

    @eliashonor

    Additional macOS reproduction, observed 14 October 2026 (Australia/Sydney). Posted with the user's explicit authorization; credentials, private repository paths/IDs, account details, and Site content are omitted.

    Environment

    • Desktop app: 26.623.41415, build 4505 (read from the installed Codex.app bundle).
    • Bundled CLI: codex-cli 0.142.3.
    • macOS: 27.0, build 26A428.
    • Official Sites plugin: 1.0.2-remix-b.1; local workspace execution.
    • User reported that the chat was already set to Ask for approval. The agent could not independently inspect Codex's own UI, because Computer Use blocks that app.

    Exact blocking error

    write_stdin rejected: approval required by policy, but AskForApproval::Granular.sandbox_approval is false
    

    The helper starts successfully through exec_command with tty:true and waits at:

    Ready for Site workflow JSON on stdin (input is hidden).
    

    Sending the required credential object through write_stdin is then rejected before stdin delivery. The tool error is above, rather than an actionable approval prompt.

    Intended task and reproduction

    1. Ask Codex to update an existing shared/private Site and publish it, preserving its sharing settings.
    2. Use Sites get_site and create_source_repository_write_credential. Both succeed.
    3. Grant network permission through request_permissions.
    4. Launch the bundled site-workflow.mjs --project-id in a writable local checkout, with tty:true.
    5. Send one newline-terminated JSON object containing the returned credential through write_stdin, as required by the Sites skill (no credential on the command line or in files).
    6. Repeated attempts under the earlier session policy return the exact rejection above.

    Troubleshooting performed and observed results

    • Initially the Git endpoint failed with Could not resolve host: git.chatgpt-team.site.
    • Network permission was requested and granted repeatedly. Earlier responses included:
      {"permissions":{"network":{"enabled":true},"file_system":null},"scope":"turn","strict_auto_review":true}.
    • After a grant, an unauthenticated git ls-remote reached the same host and returned could not read Username for 'https://git.chatgpt-team.site': Device not configured. This demonstrated endpoint reachability, not successful authenticated source access.
    • Refreshed short-lived source credentials and restarted the helper in fresh terminal sessions. The write_stdin policy rejection persisted.
    • Checked ~/.codex/config.toml for approval_policy, sandbox_approval, approvals_reviewer, sandbox_mode, default_permissions, and allowed_approval entries: no matches. The checked user/system requirements.toml paths did not exist. This was a limited check, not proof that no higher-priority managed policy exists.
    • User confirmed Ask for approval was already selected.
    • After the user was asked to fully quit/reopen the app and returned to retry, the same rejection persisted in the existing chat. No new-chat test was performed.
    • One helper started before the new turn's network grant accepted stdin but still returned the DNS error; a newly launched helper after the grant again hit the policy rejection. Process-level permission timing may be relevant, but the cause is unverified.
    • Attempted to inspect Codex through Computer Use with the user's authorization; it returned Computer Use is not allowed to use the app 'com.openai.codex' for safety reasons. No attempt was made to bypass this boundary.
    • No Site edits or publication occurred during the blocked attempts.

    Latest result: switching permission mode restores source access

    The user then changed the chat to Approve for me. The new execution instructions reported approvals_reviewer=auto_review. A fresh network grant returned scope=turn without the earlier strict_auto_review field. A fresh Sites credential, a newly started official helper, and write_stdin then succeeded. The helper exited 0 and returned the existing Site's checkout_path and commit_sha. Source access is now working; this test did not itself publish a new Site version.

    Please investigate why Ask for approval led to an enforced granular sandbox_approval=false with no actionable prompt, and whether switching modes correctly refreshes the session policy. The root cause is not established. The app should either honor the selected supported mode or identify the overriding policy and a supported remedy.

    Related same-error reports: #51414, #53134, #50069.

  4. STAPPSCreations commented on Nov 6, 2026

    @STAPPSCreations
    Author

    Update from the original reporter (November 6, 2026, macOS / Apple Silicon): I was able to publish the existing private Site from Codex Desktop using the official Sites workflow. In this session, after granting scoped network access, the workflow helper accepted the request through hidden stdin. Source sync, version creation, and private deployment then succeeded. I also verified that the deployed Site could exchange data and a test request with the Mac Mini.

    The same write_stdin rejected: approval required by policy, but AskForApproval::Granular.sandbox_approval is false error still occurred later in the session when sending Ctrl-C to a separate temporary relay process. The successful deployment confirms that publishing worked in this session. The approval behavior is still reproducible, so I’m leaving the issue open.

  5. russianlife82-maker commented on Nov 8, 2026

    @russianlife82-maker

    [Removed at the author's request.]

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

    appbugconfigsandboxtool-calls

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions