Repository navigation
Description
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
compactedevent occurred at11: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:
- Open an existing general-chat/projectless task with Ask for approval selected.
- Confirm that its effective policy is
on-requestand that an escalated command can produce an approval prompt. - Continue the same task across later turns without changing the permission mode.
- Observe that Desktop eventually starts a turn with an explicit granular
requestApprovalPolicyanduseAppServerPermissionDefault=false. - Retry an otherwise identical command with
sandbox_permissions="require_escalated". - Observe that it is rejected before prompting because
sandbox_approval=false. - 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:
- Codex Desktop Ask for approval silently disables shell escalation in projectless tasks #32563 covers the same policy failure for newly created projectless tasks.
- Codex Desktop model switch downgrades project task to read-only, prompting for every workspace write #33322 covers a separate task-profile persistence symptom in which a task becomes
read-only; its permission-mode toggle repairs the sandbox instead of deterministically reselectingsandbox_approval:false. - Granular approval policy prompts model to use sandbox_permissions that runtime rejects unless OnRequest #23359 covers the lower-level granular policy and tool-schema mismatch.
The relevant redacted Desktop log and rollout excerpts can be provided if needed.
Activity
github-actions commentedon Jul 19, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
bocurg commentedon Sep 12, 2026
Confirmed this is still reproducible on a much newer Windows Desktop build.
Environment
26.908.40834config.tomlcontains:approvals_reviewer:userworkspace-writeWhat 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:
This matches the policy described in this issue even though the configured policy is
on-requestand 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_permissionsthree 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:
So in this reproduction:
request_permissionswas enabled by the granular policy.This means the failure is not only
sandbox_permissions="require_escalated"being blocked bysandbox_approval=false; the newerrequest_permissionspath 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 scopedrequest_permissionsrequest 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.
bocurg commentedon Sep 12, 2026
Correction / further narrowing from the same Windows machine and the same ChatGPT Desktop installation:
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.IvMc-3 commentedon Nov 9, 2026
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
{ "granular": { "sandbox_approval": false, "rules": false, "skill_approval": false, "request_permissions": true, "mcp_elicitations": true } }Observed sequence
{"permissions":{"network":null,"file_system":null},"scope":"turn"}Timestamped desktop evidence
All timestamps below are UTC on 2026-11-09; local time was UTC+8. Personal paths and unrelated fields are omitted.
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:
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