Repository navigation
Description
Summary
Selecting /permissions → Ask for approval in an active session prints
Permission selection requested: Ask for approval, but subsequent sandbox
escalation requests still fail immediately with sandbox_approval: false.
No approval prompt appears. Selecting Approve for me also leaves the same
effective granular policy in the rejection.
This may be a live permission-update issue or an enforced execution-host policy;
the latter has not been ruled out. It would help if the permission picker showed
when a requested profile cannot become the effective execution policy.
Environment
- Codex CLI:
0.162.0(confirmed by the user withcodex --version). - Agent execution host: Linux
6.1.0-53-amd64. - Shell: zsh.
- Initial session sandbox:
workspace-write. - No approval/sandbox override found in the accessible user
config.toml. - No
/etc/codex/requirements.tomlfound on the agent execution host. - Other managed policy sources and client/server configuration have not been inspected.
Steps to reproduce
- In an existing session where shell escalation is rejected by a granular policy,
run/permissions. - Select Ask for approval.
- Observe
Permission selection requested: Ask for approval. - Ask the agent to fetch Rust dependencies using
cargo fetchwith
sandbox_permissions: "require_escalated"and a user-facing justification. - Observe the immediate rejection below, without an approval prompt.
- Select Approve for me and retry: the same effective granular policy is reported.
Expected behavior
If the selected profile is allowed, it should apply to subsequent tool calls in
the active session. Ask for approval should surface a request for an eligible
sandbox escalation. If a managed or host policy blocks that profile, the client
should clearly say it was not applied and identify the effective restriction.
Actual behavior
The tool reports the original granular policy and refuses to request approval:
approval policy is Granular(GranularApprovalConfig { sandbox_approval: false, rules: false, skill_approval: false, request_permissions: true, mcp_elicitations: true }); reject command — you cannot ask for escalated permissions if the approval policy is Granular(GranularApprovalConfig { sandbox_approval: false, rules: false, skill_approval: false, request_permissions: true, mcp_elicitations: true })
The rejected tool call was:
{
"cmd": "cargo fetch",
"sandbox_permissions": "require_escalated",
"justification": "May I download GPUI Kit and the remaining Rust dependencies to build the prototype?",
"prefix_rule": ["cargo", "fetch"]
}Ordinary shell calls remain restricted: crates.io DNS resolution fails, and
connecting to the Docker daemon socket returns operation not permitted.
Additional context
Official documentation says /permissions changes the active permissions profile
and that approval_policy.granular.sandbox_approval = true allows sandbox
escalation prompts:
- https://learn.chatgpt.com/docs/sandboxing
- https://learn.chatgpt.com/docs/config-file/config-reference
Restarting/resuming with explicit on-request flags has been suggested but has
not yet been tested. No fresh-session reproduction or session diagnostics are
available yet.
Activity
github-actions commentedon Oct 9, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
etraut-openai commentedon Oct 9, 2026
(response from codex)
Thanks for the report. We need logs to determine why the selected permissions didn’t take effect.
The next time this occurs, please run
/feedbackimmediately after the failed escalation and mention this issue (#52458). Please also note whether the retry happened during the same running turn or after starting a new one.shokobeeee commentedon Oct 16, 2026
I am seeing similar symptoms: selecting “Ask for approval” shows “Permission selection requested”, but escalation requests are rejected with
sandbox_approval:falsewithout an approval prompt. The cause is not yet confirmed.Codex CLI version: 0.163.0. App-server version: 0.163.0.
/feedbackconfirmed “Feedback uploaded”. Uploaded thread ID:01a14476-eaaa-75c3-bedb-26664581c48f.manwhatcanisay11 commentedon Oct 16, 2026
Additional Windows desktop evidence related to #52458.
Classification: execution-host approval capability blocker, not a newly observed USB/HID failure.
Observed in this session
approval_policy=granular, withsandbox_approval=false,rules=false,skill_approval=false,request_permissions=true, andmcp_elicitations=true.request_permissionsAPI exposes filesystem/network grants, not an approval for the existing sandbox-escalated device-read command.codex-primary-runtime/dependencies/native/powershell/pwsh.exeexecutable. The local Windows project and original desktop session transcript are readable. This is not the Linux execution host described in the original issue.Separate earlier event
An earlier sandbox-escalated request to run the existing read-only CMSIS-DAP script was rejected by Auto-review at CreateProcess, before Python started. Its rationale was that a required device-access-restoration prerequisite had not been established. That earlier review rejection is distinct from the later effective granular policy, and from an even earlier actual Windows HID WinError 5. We are not claiming a new HID-open failure.
The proposed operation would only inspect probe identity, STM32 identity, TIM1 output state and firmware identity; no flash, reset, halt, PWM enable, or motor start. All hardware actions are currently stopped. No policy, driver, ACL, firmware, or experiment budget was changed.
Expected
If Ask for approval is permitted, eligible requests should be routed to an actual human prompt. If a higher-priority policy prohibits this, the UI should explicitly show that the selection did not become effective and identify the restriction.
Questions for maintainers
granular.sandbox_approval=falsehere: desktop selection, task/session override, app-server/executor configuration, managed policy, or another layer?No full session transcript, personal filesystem paths, hostname, hardware data, or project source is included. These are observations, not a confirmed root cause or a claim that this report exactly reproduces every aspect of #52458.
yannleretaille commentedon Nov 5, 2026
Just experienced the same issue,
execute_toolkept failing. Codex claimed the command was rejected as the sessions policy does not allow the approval prompt. Switching/permissionback and forth fixed it.