Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.1007.71326 (last verified installed version; updater reported up to date)
What subscription do you have?
Not confirmed; signed in with a ChatGPT account
What platform is your computer?
Windows; exact OS build not collected
What issue are you seeing?
The desktop UI shows Approval policy: On request and Sandbox: Workspace write, but a Sites source workflow is rejected when the agent supplies the short-lived repository credential through the documented hidden stdin channel. Local file reads work.
Exact error:
write_stdin rejected: approval required by policy, but AskForApproval::Granular.sandbox_approval is false
The process starts successfully and prints "Ready for Site workflow JSON on stdin (input is hidden)." The rejection occurs on write_stdin, before source synchronisation. This blocks normal website updates. No credential values are included in this report.
What steps can reproduce the bug?
- Open the existing trusted local website project in Codex desktop on Windows.
- Select On request approvals and Workspace write in settings.
- Ask the agent to update the existing Sites website.
- The agent obtains a fresh source credential and launches the Sites plugin site-workflow.mjs with exec_command (tty: true).
- Once the helper reports ready for hidden JSON stdin, the agent calls write_stdin with the credential object.
- The tool rejects the call with the error above; no approval prompt is presented.
Network and repository metadata write permissions were explicitly granted through request_permissions before the attempt; the same rejection persisted. This is an observed reproduction in this project, not yet a general minimal reproduction.
What is the expected behavior?
The effective policy should match the selected settings, or clearly explain any managed restriction. If the action requires approval under On request, present a supported approval prompt rather than failing because sandbox approvals are disabled without an identified source.
Additional information
Feedback submitted from the affected chat: 01a13eed-1b05-70b0-b6d9-96c335f60ba9. An OpenAI support case has also been escalated.
Checks already performed:
- Project trust entry is trusted; user config has sandbox_mode = "workspace-write".
- No approval_policy/granular override found in the checked user config or project/parent config locations. No profile *.config.toml, managed_config.toml or Windows system requirements.toml was found in the checked standard locations. This does not rule out a cloud/session override.
- Restarting and trying a new chat did not resolve the issue.
- Earlier MXC volume errors (Windows error 1326) blocked file access; file reads now work, while this approval rejection remains. The relationship between these errors is unknown.
- Attempts to run codex /debug-config and codex /status from the agent terminal launched the interactive CLI and reported TERM=dumb and access-denied warnings, so they did not reveal the existing desktop chat policy.
Please identify the source of the effective granular policy and how to restore the normal approval flow without disabling safety protections.
Activity
github-actions commentedon Oct 15, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
redflagisup-gif commentedon Oct 15, 2026
Following up: this issue is still preventing us from completing and publishing changes to our website through Codex. Local project files are readable, but the Sites source workflow remains blocked by the reported write_stdin / sandbox_approval=false error.
We have already tried restarting, a new chat, checking the local configuration and granting the requested network/repository permissions. Feedback ID: 01a13eed-1b05-70b0-b6d9-96c335f60ba9.
Could a maintainer please advise on a supported fix or workaround that preserves approval and security protections? We have seen the automated potential-duplicate links; please let us know which issue we should follow for the resolution. Thank you.
ahmedhesham1760-del commentedon Oct 16, 2026
Additional reproduction from a separate Windows Sites project, with the user's authorization to report this problem.
Environment:
codex doctor --jsonreports installed desktop package version26.1013.3656.0.codex-cli 0.163.0-alpha.10.2.Microsoft Windows NT 10.0.26300.0.The user reports selecting Ask for approval. The saved user configuration was independently verified to contain:
The official Sites
site-workflow.mjshelper starts underexec_command(tty: true)and reaches its hidden JSON stdin prompt. Sending the required input viawrite_stdinis rejected before the helper receives it:The targeted network and project Git-directory permissions were granted for the turn. The same rejection persisted. Earlier harmless JSON stdin probes also received this error. No source synchronization, version save, or deployment occurred.
The active session policy disables
sandbox_approval,rules, andskill_approval, while permittingrequest_permissionsandmcp_elicitations. No approval override was found in the inspected project/parent config files; the inspected standard local managed-config and Windows system-requirements files were absent. These checks do not rule out other app/session or cloud-managed overrides.The local doctor report says the invocation configuration loads successfully but explicitly reports active thread overrides: not inspected. We therefore have not identified the source of the running chat's granular policy, and have not attempted to bypass it.
Could a maintainer advise how to identify the source of this effective policy and restore the supported manual approval prompt? This comment deliberately omits emails, project identifiers, local personal paths, credentials, source code, and raw logs.