Skip to content

[Windows][Sites] Deployment blocked by sandbox_approval policy despite “Ask for approval” being selected #50841

Open

Description

@poket353-ops

What version of the Codex App are you using (From “About Codex” dialog)?

26.930.21537

What subscription do you have?

ChatGPT Pro

What platform is your computer?

Windows; PowerShell / Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

I cannot publish a website through the Sites plugin in the Windows desktop app.

The official site-workflow.mjs helper starts successfully and waits for workflow JSON on stdin. However, the subsequent write_stdin call is rejected with this exact error:

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

The approval option in the UI is set to “Ask for approval,” and I have explicitly authorized deployment multiple times. Nevertheless, no actionable approval prompt appears.

Site project creation, project retrieval, and temporary credential issuance succeed. The workflow fails when passing the credential and workflow JSON to the running helper, before source upload or publication.

For newly created test projects, the reported state remains version 0 with current_live_url: null.

This has blocked attempts to update an existing website, publish a new version as a separate website, and publish an independent minimal static HTML test site.

What steps can reproduce the bug?

The following sequence reproduces the issue in my current environment:

  1. Open the Windows desktop app with the Sites plugin installed.

  2. Select “Ask for approval” in the approval settings.

  3. Ask the agent to create and publish a minimal static HTML website, and explicitly authorize publication.

  4. Let the agent create or retrieve the Site project and request the temporary Sites credential. These operations succeed.

  5. Start the official helper through exec_command with a PTY:

    node /scripts/site-workflow.mjs --project-id

  6. The helper starts and prints:

    Ready for Site workflow JSON on stdin (input is hidden).

  7. Following the plugin workflow, the agent calls write_stdin for the running session, supplying JSON containing:

    • credential: the temporary Sites credential
    • commands: []
    • archivePath: the local archive path

    The JSON is followed by a newline. The credential is passed through stdin, not included in command-line arguments.

  8. The write_stdin call is rejected:

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

  9. No approval prompt appears, and the workflow cannot proceed to source upload or publication.

Retrying after explicitly granting network access through request_permissions produces the same error.

The same failure was observed with Sites plugin versions 0.1.75 and 1.0.0-b.

Session ID: not available for this report.
Token limit usage and context window usage: not recorded.

What is the expected behavior?

The official Sites deployment workflow should proceed when the necessary permissions are available, or present an actionable approval prompt when additional authorization is required.

If deployment is unsupported under the current configuration, the app should clearly identify the restriction and provide a supported way to resolve it.

Currently, the UI is set to “Ask for approval,” but the operation is rejected because sandbox_approval is false, without giving me an approval prompt or a usable next step.

I am not requesting a bypass of security controls. I am requesting a working authorization path for the supported Sites deployment workflow.

Additional information

Effective approval configuration reported to the agent:

{
"granular": {
"sandbox_approval": false,
"rules": false,
"skill_approval": false,
"request_permissions": true,
"mcp_elicitations": true
}
}

Sandbox mode: workspace-write.

Checks already performed:

  • Network access was explicitly granted through request_permissions during a retry, but the error persisted.
  • The issue also occurs with an independent minimal static HTML site that does not require authentication, a database, photo uploads, or user data.
  • The larger application passed its local build and 12 automated tests.
  • A separate Node stdin diagnostic succeeded: write_stdin sent “diagnostic\n”, the process printed “Input received”, and it exited with code 0. This indicates that write_stdin is not universally broken.
  • The observed failure occurs specifically during the Sites workflow credential handoff. The exact condition triggering the approval requirement is unknown.
  • An earlier version of my website was successfully deployed through a different helper path. This does not establish a regression in the same workflow.

Please investigate why this operation requires an approval category that is disabled in the effective policy, and how that policy relates to the “Ask for approval” option shown in the UI.

Credentials, project identifiers, and personal filesystem paths have been omitted.

Activity

  1. added
    appIssues related to the Codex desktop app
    on Oct 4, 2026
  2. added
    bugSomething isn't working
    windows-osIssues related to Codex on Windows systems
    sandboxIssues related to permissions or sandboxing
    skillsIssues related to skills
    tool-callsIssues related to tool calling
    on Oct 4, 2026
  3. SantaSKiddi3 commented on Oct 17, 2026

    @SantaSKiddi3

    This issue is affecting two independent websites I maintain.

    The Sites publishing workflow used to work successfully for FS25 Index, and I have already published multiple versions. The current failure occurs before source upload or publication, during the helper's authorization/credential handoff.

    The relevant symptoms are:

    • The UI is set to “Ask for approval”, but no actionable approval prompt appears.
    • The write_stdin operation is rejected by the effective sandbox approval policy.
    • The official Sites helper expects workflow JSON containing a temporary credential through stdin, but the credential handoff can also be rejected by automatic review.
    • The issue affects independent projects, so it does not appear to be specific to either website's code.

    Environment:

    • OS: Windows 10 Pro x64, build 19045
    • Sites helper: 1.0.0
    • Node.js: 24.19.0

    This is blocking both ongoing maintenance and publication of a new website.

    Could the maintainers clarify:

    1. Whether this is a known regression or a policy/configuration mismatch.
    2. Which supported authentication and approval flow should be used for Sites publishing.
    3. Whether there is a planned fix or a supported workaround that does not weaken credential protections.

    I am not requesting a security bypass. I need the officially supported publishing workflow to work reliably again.

    Feedback id: 01a09d79-5536-7382-95a0-8c2879c2c940

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

    appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingskillsIssues related to skillstool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions