Skip to content

Windows Desktop changes an existing Ask for approval task from on-request to granular mid-session #34182

Open

Description

@claell

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

Codex Desktop 26.715.4045.0, bundled command runner 0.145.0-alpha.18.

What subscription do you have?

Education

What platform is your computer?

Windows 11 x64

What issue are you seeing?

An existing general-chat/projectless task changed from working approval_policy=on-request behavior to an explicit granular policy between turns, while the UI continued to show Ask for approval and no permission-mode change was made:

GranularApprovalConfig {
    sandbox_approval: false,
    rules: false,
    skill_approval: false,
    request_permissions: true,
    mcp_elicitations: true
}

After the transition, commands using sandbox_permissions="require_escalated" were rejected before an approval prompt could be created.

This has the same lower-level policy failure as #32563, but a different lifecycle. That report deterministically reproduces the policy in a newly created projectless task. Here, the same existing task first used OnRequest successfully and then Desktop changed its outgoing permission request between two later turns.

The Desktop log records the transition:

11:09:48.561Z requestApprovalPolicy=null
             resolvedApprovalPolicy=on-request
             useAppServerPermissionDefault=true

11:32:30.296Z requestApprovalPolicy={granular:{sandbox_approval:false,...}}
             requestPermissionProfile=:workspace
             useAppServerPermissionDefault=false

The session rollout independently records thread_settings_applied with on-request at 11:09:48.765Z and the granular policy at 11:32:30.721Z, for the same task and working directory.

The renderer therefore supplied the granular override explicitly; the command runner did not spontaneously convert OnRequest.

Two suspected triggers occurred later and can be excluded:

  • The rollout's compacted event occurred at 11:33:54Z, approximately 84 seconds after the granular profile was active.
  • Denial of an unrelated in-app browser request also occurred after the transition.

The task could be toggled between the two behaviors. Approve for me restored on-request with approvals_reviewer=auto_review; switching back to Ask for approval immediately restored sandbox_approval:false and the pre-prompt rejection.

After two Desktop restarts, the same task again used ordinary on-request approval and an elevated command successfully reached a user prompt. Its persisted Desktop record was then healthy: approvalPolicy="on-request", approvalsReviewer="user", and no active granular profile.

The failure later recurred in this same existing task. A normal GitHub CLI network command was blocked by the sandbox, and its require_escalated retry was again rejected before prompting with the granular profile above. This demonstrates that restart can temporarily restore the task while a later turn can reintroduce the bad policy.

What steps can reproduce the bug?

The exact event that changes the existing task's renderer state is not yet isolated, but the observed sequence is:

  1. Open an existing general-chat/projectless task with Ask for approval selected.
  2. Confirm that its effective policy is on-request and that an escalated command can produce an approval prompt.
  3. Continue the same task across later turns without changing the permission mode.
  4. Observe that Desktop eventually starts a turn with an explicit granular requestApprovalPolicy and useAppServerPermissionDefault=false.
  5. Retry an otherwise identical command with sandbox_permissions="require_escalated".
  6. Observe that it is rejected before prompting because sandbox_approval=false.
  7. Restart Desktop and observe that the same task may return to on-request, then later regress again.

What is the expected behavior?

An existing task should not silently change its effective permission model between turns or app restarts.

Ask for approval should either preserve the established on-request command-approval flow or expose a complete and consistent granular-permission contract. In particular, Desktop should not leave an existing task and its agent with an escalation interface that is guaranteed to be rejected before the user can be asked.

Additional information

Related reports:

The relevant redacted Desktop log and rollout excerpts can be provided if needed.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    session
    on Jul 19, 2026
  2. github-actions commented on Jul 19, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. bocurg commented on Sep 12, 2026

    @bocurg

    Confirmed this is still reproducible on a much newer Windows Desktop build.

    Environment

    • ChatGPT/Codex Desktop: 26.908.40834
    • Platform: Windows
    • Permission mode in UI: Ask for approval
    • config.toml contains:
      approval_policy = "on-request"
    • approvals_reviewer: user
    • Sandbox: workspace-write

    What happened

    This started suddenly today. Approval prompts had previously worked normally, but the existing Desktop task stopped surfacing user approval requests.

    The rollout shows that the effective runtime policy was silently changed to:

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

    This matches the policy described in this issue even though the configured policy is on-request and the UI is still set to Ask for approval.

    Stronger evidence from the rollout

    The agent needed to write one file outside the current writable workspace and explicitly invoked request_permissions three separate times.

    Each request was for a narrowly scoped filesystem write permission. The tool call itself completed, but the result was always:

    {
      "permissions": {
        "network": null,
        "file_system": null
      },
      "scope": "turn"
    }

    No approval dialog was shown to the user for any of these requests.

    Afterward, the actual write attempt failed with:

    CreateProcessAsUserW failed: 5 (Access denied)
    

    So in this reproduction:

    1. The model correctly recognized that the target was outside the writable workspace.
    2. request_permissions was enabled by the granular policy.
    3. The model explicitly requested the needed filesystem permission.
    4. Desktop did not surface an actionable approval UI.
    5. The permission result came back empty/null.
    6. The subsequent write failed with access denied.

    This means the failure is not only sandbox_permissions="require_escalated" being blocked by sandbox_approval=false; the newer request_permissions path can also fail to reach the user while the task is in this bad granular state.

    Expected behavior

    With Ask for approval selected and approval_policy = "on-request", a narrowly scoped request_permissions request for a write outside the workspace should produce an actionable approval prompt and return the user's decision.

    Desktop should not silently replace the effective task policy with the above granular profile, and it should not return a null permission decision when no prompt was ever shown.

    Additional note

    A full rollout file reproducing this is available. I am not attaching it publicly because it contains local paths/project context, but I can provide sanitized excerpts if maintainers need them.

  4. bocurg commented on Sep 12, 2026

    @bocurg

    Correction / further narrowing from the same Windows machine and the same ChatGPT Desktop installation:

    • ChatGPT mode inside ChatGPT Desktop reproduces the failure: when ChatGPT invokes Codex capabilities and a permission escalation is needed, the request is generated but no actionable approval UI is surfaced to the user.
    • Codex mode inside the same ChatGPT Desktop app can grant permissions normally.
    • Same machine, same account, same local Codex configuration.

    So this is not a comparison between ChatGPT Desktop and a standalone Codex app. Both tests are inside the same ChatGPT Desktop installation.

    This strongly suggests the regression is specific to the ChatGPT conversation → Codex permission bridge / approval routing path, rather than Codex core, the Windows sandbox implementation, the Desktop app globally, or config.toml.

    In other words, the native Codex surface inside ChatGPT Desktop correctly routes approval requests to the user, while the ChatGPT surface invoking Codex does not.

    This may help isolate the responsible code path to the adapter that maps Codex request_permissions / approval events into the regular ChatGPT conversation UI.

  5. IvMc-3 commented on Nov 9, 2026

    @IvMc-3

    I am seeing closely matching permission-approval behavior in the Windows desktop app and have additional timestamped evidence from 9 November 2026. I am not claiming that the underlying cause has been confirmed.

    Feedback ID: 01a1a6d4-6056-75d0-809c-a9c9ec747cde
    The in-app feedback dialog now confirms "Feedback submitted."

    Environment

    • Surface: ChatGPT Work in the Windows desktop app, using local file tools.
    • Platform: Windows x64.
    • App-server version reported in the desktop log: 0.167.0-alpha.3.2. This is the app-server version, not a verified About-dialog desktop version.
    • UI settings previously confirmed: Ask for approval; Work > Local approval policy > On request. Full access remains off.
    • Effective task policy nevertheless records:
    {
      "granular": {
        "sandbox_approval": false,
        "rules": false,
        "skill_approval": false,
        "request_permissions": true,
        "mcp_elicitations": true
      }
    }

    Observed sequence

    1. I authorized a harmless two-file test in an existing teaching folder outside this chat's writable workspace.
    2. Read-only checks confirmed that the folder existed and both uniquely named test paths were absent.
    3. The assistant invoked request_permissions for write access only to those two exact text-file paths. No whole-drive, network or computer-control access was requested.
    4. I saw no approval prompt and did not decline or close one for this attempt.
    5. The tool returned:
    {"permissions":{"network":null,"file_system":null},"scope":"turn"}
    1. The assistant stopped without creating, copying or deleting anything. Both test paths remained absent.

    Timestamped desktop evidence

    All timestamps below are UTC on 2026-11-09; local time was UTC+8. Personal paths and unrelated fields are omitted.

    02:46:47.945 received approval kind=permissionRequest requestId=2
                   rendererWindowFocused=false rendererWindowVisible=true
    02:46:47.995 show notification kind=permission requestId=2
    02:46:48.046 Sending server response id=2
                   method=item/permissions/requestApproval
                   response={"permissions":{},"scope":"turn"}
    

    The desktop returned an empty grant about 101 milliseconds after receiving the request. The runtime log independently records the empty response. No rejection reason was exposed. Notification logging does not establish that a usable approval dialog was displayed. Window focus is an observation, not a proven cause.

    An earlier permission request on 7 November did show a prompt, which I declined/closed. That earlier request remained pending for approximately 82 seconds. The new no-prompt attempt should not be treated as another user refusal.

    Separate cleanup symptom

    An authorized deletion of six task-created temporary files inside the writable workspace was rejected before execution with:

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

    Small harmless create/read/copy/rename/delete tests in the writable workspace succeeded. The cleanup rejection and missing file-permission prompt may be related, but I do not have evidence proving a shared cause.

    Expected behavior and impact

    A supported, narrowly scoped file-permission request should present an actionable approval prompt or explain an explicit policy restriction. It should not appear to complete with no grant and no visible user decision.

    This prevents reliable final-file delivery and task-owned cleanup for teaching materials. My Windows account can save directly into the intended folder using Notepad and PowerPoint, and Effective Access reports Full Control. No Windows ACL changes, Full access or computer-control workaround is requested.

    Please investigate the desktop permission-request response path and advise a supported narrowly scoped solution. Full local logs contain private paths and project context, so I am providing this sanitized excerpt and the submitted Feedback ID.

    Related issue: #34182

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

    appbugsandboxsessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions