Skip to content

Windows app: write_stdin blocked by granular sandbox_approval=false despite approval UI setting #50604

Open

Description

@lmmafra1987-beep

Summary

In the Windows desktop app, publishing a validated Sites update is blocked by the effective approval policy even when the UI is set to “Solicitar aprovação” (request approval). This is a personal account.

Observed behavior

The publication helper starts and waits for input. Sending the required input through write_stdin fails with:

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

A separate network permission request reported permission granted, but write_stdin was still rejected before execution.

Checks already performed

  • Selected the request-approval option in the UI.
  • Restarted the app several times; the problem persisted.
  • Read-only inspection of ~/.codex/config.toml found no explicit approval_policy or sandbox_approval setting.
  • The project is marked trusted.
  • There is no project-level .codex/config.toml.
  • Source changes are committed and validated; publication has not completed.

Expected behavior

The app should either offer the required approval prompt or clearly identify which effective policy prevents it and provide a supported resolution that preserves approval safeguards.

Environment

  • Windows desktop app
  • Personal account, not Business/Enterprise
  • Exact app version not yet collected

OpenAI Help Center AI support suggested reporting this issue here. No credentials, session transcripts, or private project data are attached.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Oct 3, 2026
  2. kowalcca-1885 commented on Oct 8, 2026

    @kowalcca-1885

    I’m also experiencing this on Windows in the Codex desktop app while publishing an existing Sites project.
    “Ask for approval” is selected, and network permission was granted, but I receive:
    write_stdin rejected: approval required by policy, but AskForApproval::Granular.sandbox_approval is false
    One credential handoff succeeded, but Git then failed with getaddrinfo() thread failed to start. After renewing network permission and restarting the helper, the policy rejection returned.
    I disabled my VPN, closed all applications, and fully restarted the computer before retrying. Both errors persisted.
    Submitted feedback ID: 01a11a23-1ec6-7eb0-b7ed-7a03dfa25974
    Publication remains blocked.

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

    appbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions