You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
“On request” approval setting still results in sandbox_approval=false, blocking Sites publication #52517
appIssues related to the Codex desktop appbugSomething isn't workingconfigIssues involving config.toml, config keys, config merging, or config updatessandboxIssues related to permissions or sandboxingtool-callsIssues related to tool calling
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 the desktop app, open Settings → Configuration → Work.
Set Local approval policy to “On request”.
Fully quit and restart the app.
Open a new chat and request publication of an existing private Site.
The official Sites workflow starts and waits for JSON input on stdin.
The write_stdin call is rejected with:
approval required by policy, but AskForApproval::Granular.sandbox_approval is false
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.
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
Ask Codex to update an existing shared/private Site and publish it, preserving its sharing settings.
Use Sites get_site and create_source_repository_write_credential. Both succeed.
Grant network permission through request_permissions.
Launch the bundled site-workflow.mjs --project-id in a writable local checkout, with tty:true.
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).
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}.
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.
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.
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.
appIssues related to the Codex desktop appbugSomething isn't workingconfigIssues involving config.toml, config keys, config merging, or config updatessandboxIssues related to permissions or sandboxingtool-callsIssues related to tool calling
Activity
github-actions commentedon Oct 9, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
eliashonor commentedon Oct 14, 2026
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
Exact blocking error
The helper starts successfully through exec_command with tty:true and waits at:
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
Troubleshooting performed and observed results
{"permissions":{"network":{"enabled":true},"file_system":null},"scope":"turn","strict_auto_review":true}.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.
STAPPSCreations commentedon Nov 6, 2026
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 falseerror 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.russianlife82-maker commentedon Nov 8, 2026
[Removed at the author's request.]