Skip to content

Codex App cannot request approval: sandbox_approval is false #54368

Open

Description

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

26.1007.71326

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Windows 11, x64

What issue are you seeing?

I am trying to save a new version of a store created in Sites without publishing it or enabling payments. Codex needs to synchronize the code with the internal Sites repository, but the operation is blocked with this error: AskForApproval::Granular.sandbox_approval is false.

In the Codex App UI, "Ask for approval" is already selected. My local config.toml does not contain an approval policy, and no local managed configuration file setting this restriction was found.

Because of this permission mismatch, Codex cannot request my approval to synchronize the Sites repository and save the new version. I need help enabling the approval request so I can save the new version only, without deploying, running database migrations, or activating payments.

What steps can reproduce the bug?

  1. Open the Codex App on Windows.
  2. Set the permission control in the UI to "Ask for approval".
  3. Ask Codex to synchronize the existing Sites repository in order to save a new version without deploying it.
  4. Codex attempts to request approval, but the operation is blocked.
  5. The error shown is: AskForApproval::Granular.sandbox_approval is false.
  6. The local config.toml contains no approval policy, and no local managed configuration file setting this restriction was found.
  7. Restarting the app does not resolve the permission mismatch.

Feedback ID: 01a13553-ebd9-7802-a235-2245e4d27a95

What is the expected behavior?

The expected behavior is that, when "Ask for approval" is selected in the Codex App, Codex should be able to request my approval for the required operation. After I approve it, Codex should synchronize the existing Sites repository and save the new version without publishing or deploying the site, running database migrations, or activating payments.

Additional information

The Codex App feedback report was submitted before creating this issue.

Feedback ID: 01a13553-ebd9-7802-a235-2245e4d27a95

The Sites repository already exists and the last saved version is version 4. The new changes are preserved locally but cannot be synchronized because the effective session policy reports sandbox_approval=false, even though "Ask for approval" is selected in the UI.

No deployment, database migration, or real payment activation is requested. I only need to synchronize the existing repository and save a new version in Sites.

Activity

  1. added
    app
    on Oct 15, 2026
  2. added
    bug
    windows-os
    sandbox
    on Oct 15, 2026
  3. flipcyde101 commented on Nov 1, 2026

    @flipcyde101

    Additional Windows desktop occurrence with a different workflow: an authorized LM Studio loopback server start. This may be related to this issue; the shared error alone does not establish a common root cause.

    Environment

    • Observed November 1, 2026, on a personal Windows x64 development PC.
    • Bundled CLI: codex-cli 0.166.0-alpha.5.1.
    • Exact desktop app build and Windows build were not captured.
    • LM Studio 0.4.28+2, valid vendor signature, installed on a non-system drive.
    • Two already-downloaded, hash-verified local Qwen GGUF models. No model download or paid API involved in the failing operation.

    Observed sequence

    1. Explicitly authorize Codex to start LM Studio bound only to 127.0.0.1:1234 and perform bounded synthetic tests.
    2. Codex submits a PowerShell compound request: start the server, verify the listener, then GET the local model-discovery endpoint.
    3. Execution is rejected before PowerShell starts with blocked by policy.
    4. Select Ask for approval in the desktop permission menu. A screenshot confirmed the selection, but the session reported a granular policy with sandbox_approval=false.
    5. Grant narrowly requested project write and network permissions through the supported permission tool. Read-only preflight succeeds: no loaded models, server not running.
    6. The approved start request is rejected with:
    approval required by policy, but AskForApproval::Granular.sandbox_approval is false
    
    1. Later, current session and user config report sandbox_mode="danger-full-access", approval_policy="never", with network enabled. One explicitly authorized retry still fails before process creation with only blocked by policy. No alternative launch route was attempted afterward.

    Request shape (sanitized, not a fresh minimal reproduction)

    & '<EXISTING_LMS_CLI_PATH>\lms.exe' server start --port 1234 --bind 127.0.0.1
    if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
    Get-NetTCPConnection -LocalPort 1234 -State Listen |
        Select-Object LocalAddress,LocalPort,OwningProcess | ConvertTo-Json
    Invoke-RestMethod -Uri 'http://127.0.0.1:1234/api/v1/models' |
        ConvertTo-Json -Depth 7

    The original request used semicolons between statements. This is its sanitized structural equivalent. The individual components were not isolated after rejection, so the triggering component is unknown. These are observed steps, not proof of deterministic reproduction on a clean installation. Do not disable protections or enable unrestricted access merely to reproduce this report.

    Read-only audit

    • User config currently contains approval_policy="never", approvals_reviewer="user", sandbox_mode="danger-full-access".
    • No CODEX_HOME override.
    • No project/ancestor .codex/config.toml override found in the relevant project trees.
    • No config.toml, requirements.toml or managed_config.toml at the documented %ProgramData%\OpenAI\Codex paths.
    • Local rule inventory contained 218 allow decisions, no explicit prompt or forbidden decisions. Absence of a local deny is not proof that no other policy applies.
    • A read-only codex execpolicy check diagnostic was itself rejected before execution, so no matched-rule explanation was obtained.
    • Cloud/runtime policy source and decision trace are not exposed by the inspected interfaces.

    Expected / actual

    Expected: show the supported approval prompt where approval is available, or identify the effective policy source and reason that makes the operation non-approvable.

    Actual at the time of those rejections: no prompt under the historical Ask for approval selection; generic rejection under the later full-access/never configuration. Neither model inference test had run at that point. See the later update below.

    No Windows GPO, Defender, firewall or Application Control cause has been established. No Windows security protections were disabled or modified by this task. Codex permission-profile changes are described above. We do not know why this compound command required approval, and do not claim that a particular setting change fixes it.

    Questions for maintainers / other affected users

    1. What supported diagnostic identifies the effective policy origin and matched rule or heuristic without executing the rejected command or uploading raw session/configuration logs?
    2. Is the desktop UI mapping to granular sandbox_approval=false expected in this build?
    3. Is there a known supported correction for this version, preserving Windows protections and narrow localhost-only authorization?

    Related source and report:

    This report excludes personal paths, usernames, project names, account identifiers, screenshots, credentials and conversation logs. Public posting still identifies the posting GitHub account. No verified fix is available from this investigation.

    Later update, November 1, 2026

    The owner manually started LM Studio at 127.0.0.1:1234 and ejected the preloaded model. Read-only discovery then succeeded. The existing adapter completed one synthetic request per each of the two approved local Qwen models, sequentially, with context2048 and output cap128; both returned2outputtokens and each unload was acknowledged. Final discovery found zero loaded instances. No additional downloads, paid APIs or Windows security changes were made.

    This unblocks the bounded model smoke tests only. It does NOT resolve the original Codex server-start rejection or explain the earlier Ask for approval/granular mismatch. No agent-driven server start was retried after the latest rejection. Please keep the diagnostic request open for the policy source and supported correction. This is not a verified policy fix or complete workbench integration.

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

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions