Skip to content

Windows: Sites blocked because sandbox_approval is false #55404

Open

Description

@manzanoco

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

26.1013.40934

What subscription do you have?

plus

What platform is your computer?

Windows

What issue are you seeing?

Al actualizar un sitio existente mediante el plugin Sites en la aplicación Codex para Windows, el proceso se inicia, pero write_stdin es rechazado al intentar enviar la credencial por la entrada estándar:

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

He autorizado la actualización y concedido acceso de red. El error persiste después de reiniciar la aplicación y probar en otro chat.

Resultado esperado: poder aprobar la operación y recuperar el código mediante el flujo oficial de Sites.

Resultado actual: la operación se bloquea sin mostrar una solicitud de aprobación que pueda aceptar. No se ha modificado ni publicado el sitio.

ID del reporte enviado desde la aplicación:
01a14a25-d926-7920-9de4-e71300a2c38f

What steps can reproduce the bug?

Feedback ID: 01a14a25-d926-7920-9de4-e71300a2c38f

What is the expected behavior?

Poder recuperar el código del sitio mediante el flujo oficial de Sites y continuar con la actualización autorizada. Si la operación requiere una aprobación adicional, la aplicación debería mostrar una solicitud que pueda aceptar, o explicar qué configuración o política la bloquea y cómo resolverlo.

Additional information

No response

Activity

  1. added
    app
    on Oct 19, 2026
  2. added
    bug
    windows-os
    sandbox
    tool-calls
    skills
    on Oct 19, 2026
  3. changed the title [-]Windows: Sites bloqueado por sandbox_approval is false[/-] [+]Windows: Sites blocked because sandbox_approval is false[/+] on Oct 19, 2026
  4. github-actions commented on Oct 19, 2026

    @github-actions
    Contributor

    English translation:

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

    26.1013.40934

    What subscription do you have?

    plus

    What platform is your computer?

    Windows

    What issue are you seeing?

    When updating an existing site using the Sites plugin in the Codex application for Windows, the process starts, but write_stdin is rejected when attempting to send the credential through standard input:

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

    I have authorized the update and granted network access. The error persists after restarting the application and trying in another chat.

    Expected result: being able to approve the operation and retrieve the code through the official Sites flow.

    Actual result: the operation is blocked without displaying an approval request that I can accept. The site has not been modified or published.

    ID of the report submitted from the application:
    01a14a25-d926-7920-9de4-e71300a2c38f

    What steps can reproduce the bug?

    Feedback ID: 01a14a25-d926-7920-9de4-e71300a2c38f

    What is the expected behavior?

    Being able to retrieve the site's code through the official Sites flow and continue with the authorized update. If the operation requires additional approval, the application should display a request that I can accept, or explain which setting or policy is blocking it and how to resolve it.

    Additional information

    No response

  5. RYGAlcoLingo commented on Oct 23, 2026

    @RYGAlcoLingo

    Additional Windows reproduction observed on 24 October 2026, with evidence of the desktop-supplied policy.

    Environment

    • Codex desktop updater reported installedVersion 26.1016.62342, build 21477, prod channel, status restart_required. This is an observation, not evidence that an update fixes the bug.
    • Native Windows / PowerShell; exact Windows build not collected.
    • Official Sites plugin/helper 1.1.2, scripts/site-workflow.mjs.
    • User selected Ask for approval. The owner confirms fully quitting/reopening did not resolve it.
    • Available picker choices are Ask for approval, Approve for me, and Full access. Custom (config.toml) is absent.

    Reproduction

    1. Set the following at the top level of user config.toml:
      approval_policy = "on-request"
      approvals_reviewer = "user"
    2. Fully quit/reopen and retain Ask for approval.
    3. In an approved empty checkout folder, start the official helper through exec_command with tty: true:
      node <sites-plugin>/scripts/site-workflow.mjs --project-id <private-site-id>
      
    4. Wait for Ready for Site workflow JSON on stdin (input is hidden).
    5. Supply the required newline-terminated JSON using write_stdin. The call is rejected before credential transmission, without a manual approval prompt:
      write_stdin rejected: approval required by policy, but AskForApproval::Granular.sandbox_approval is false
      

    An attempt to send Ctrl+C to cancel the waiting helper was also rejected by the same gate. Its later process state has not been rechecked.

    Read-only policy evidence

    The desktop persisted selection contains:

    {
      "agent-mode-by-host-id": {"local": "granular"},
      "permission-selection-by-host-id:local": {
        "kind": "agent-mode",
        "agentMode": "granular"
      }
    }

    Selected fields from an actual desktop turn-start log at 2026-10-23T23:15:08.739Z:

    requestApprovalPolicy={"granular":{"sandbox_approval":false,"rules":false,"skill_approval":false,"request_permissions":true,"mcp_elicitations":true}}
    requestApprovalsReviewer=user
    requestPermissionProfile=:workspace
    resolvedApprovalPolicy={"granular":{"sandbox_approval":false,"rules":false,"skill_approval":false,"request_permissions":true,"mcp_elicitations":true}}
    resolvedApprovalsReviewer=user
    useAppServerPermissionDefault=false
    

    The desktop explicitly requests the restrictive policy and the resolved policy matches it, despite the user config above. Why the desktop chooses it, and whether managed requirements participate, remain unconfirmed.

    Distinct observation and impact

    One earlier attempt accepted stdin but Git failed with getaddrinfo() thread failed to start. Network permission was subsequently granted; the retry then hit the stdin policy rejection. These are separate observations, not a proven single cause.

    No verified Git HEAD was obtained; no source integration or deployment occurred. No Full access, alternate executor, or credential-transport workaround was used. This is a policy-gate rejection, not an automatic-review denial or PowerShell execution-policy error.

    Please provide a supported way to approve the official Sites stdin handoff and cancellation while retaining bounded workspace permissions, and clarify why the selected desktop mode overrides interactive user configuration.

    Only allowlisted policy fields are included here. Credentials, account details, private project/repository identifiers and URLs, local paths, conversation IDs, application source/data, raw logs, and transcripts are omitted.

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

    appbugsandboxskillstool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions