Repository navigation
Description
Environment
- Codex desktop on Windows, personal account (no Business/Enterprise workspace).
- Exact app and bundled Codex versions have not yet been verified.
Impact
Tested and committed Sites dashboard changes cannot be published.
Reproduction
- Start the bundled Sites
site-workflow.mjsthroughexec_commandwithtty: true. - Wait for
Ready for Site workflow JSON on stdin (input is hidden). - Grant network access through
request_permissions(confirmed granted for the turn). - Send the expected newline-terminated credential JSON through
write_stdin. - The tool rejects before execution:
write_stdin rejected: approval required by policy, but AskForApproval::Granular.sandbox_approval is false
The same failure also occurred when network permission was granted before starting the workflow. Credentials are short-lived and passed only through stdin; no credentials are included here.
Expected behavior
With Ask for approval selected and approval_policy = "on-request", display any required approval prompt, or explain which effective policy source prevents it.
Verified troubleshooting
- User configuration contains valid top-level
approval_policy = "on-request". - Ask for approval is selected in the UI.
- Fully quit Codex through Task Manager and relaunched; subsequent attempts still fail.
%ProgramData%\OpenAI\Codex\requirements.tomlis absent.~/.codex/managed_config.tomlis absent.- No
~/.codex/*.config.tomlprofile files were found. - The current task workspace is marked
trust_level = "trusted"in user configuration. - No project
.codex/config.tomlwas found in the checked task workspace, dashboard checkout, or Documents/Codex parent. - The effective session still reports a granular policy with sandbox escalation disabled. Its source has not been established.
Requested investigation
- Identify the effective policy source and why it differs from the UI/user configuration.
- Provide a supported fix that retains approval prompts; no disabling or bypassing safeguards is requested.
- Specify which redacted configuration-resolution diagnostics would help.
- Confirm whether this is scoped to one task/session or is app-wide.
Prior support attempt
The Help Center AI chat received the technical explanation but stated it could not transfer to a human or create a ticket, and explicitly confirmed that no ticket had been created in that conversation. It suggested in-app feedback or this GitHub tracker.
This report is submitted by the user’s Codex assistant with explicit authorization. No email address, customer information, credentials, or session transcript is included.
Activity
github-actions commentedon Sep 22, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
KatrinHippert commentedon Sep 26, 2026
Additional independent reproduction on Windows Codex desktop (2026-09-26), with the same effective granular policy and a Sites source push. The user had already selected the approval mode and explicitly authorized the push.
request_permissionsgranted network access for the session.exec_commandstarted an interactive PowerShell process (tty: true) that waited at a hidden prompt for a short-lived Git credential. No credential was placed in a command argument or file.write_stdinwas rejected before input was delivered:write_stdinattempt containing only Ctrl+C to cancel the waiting process received the same rejection. The network grant therefore did not resolve the stdin approval gate.The affected Site remained on its prior production version. No Site push or deployment occurred, and no production data changed. This comment contains no credential, Site identifier, customer data, or transcript.
Could the app expose a supported, narrowly scoped approval or secure input route for this case, or identify why
write_stdinrequires a sandbox approval category that the active granular policy disables?