Skip to content

Codex desktop on Windows: Sites publishing blocked by granular.sandbox_approval=false despite on-request policy #47182

Open

Description

@Monsterpowermccoy

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

  1. Start the bundled Sites site-workflow.mjs through exec_command with tty: true.
  2. Wait for Ready for Site workflow JSON on stdin (input is hidden).
  3. Grant network access through request_permissions (confirmed granted for the turn).
  4. Send the expected newline-terminated credential JSON through write_stdin.
  5. 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.toml is absent.
  • ~/.codex/managed_config.toml is absent.
  • No ~/.codex/*.config.toml profile files were found.
  • The current task workspace is marked trust_level = "trusted" in user configuration.
  • No project .codex/config.toml was 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

  1. Identify the effective policy source and why it differs from the UI/user configuration.
  2. Provide a supported fix that retains approval prompts; no disabling or bypassing safeguards is requested.
  3. Specify which redacted configuration-resolution diagnostics would help.
  4. 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

  1. added
    bug
    app
    windows-os
    sandbox
    config
    tool-calls
    on Sep 22, 2026
  2. github-actions commented on Sep 22, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. KatrinHippert commented on Sep 26, 2026

    @KatrinHippert

    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.

    1. request_permissions granted network access for the session.
    2. exec_command started 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.
    3. The attempt to supply it via write_stdin was rejected before input was delivered:
    write_stdin rejected: approval required by policy, but AskForApproval::Granular.sandbox_approval is false
    
    1. A later write_stdin attempt 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_stdin requires a sandbox approval category that the active granular policy disables?

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-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions