Repository navigation
Description
Reported by: Ramiro Montes De Oca
What issue are you seeing?
The host UI displays Full Access, but the Windows command executor continues to enforce a restricted filesystem sandbox, read-only Git metadata, restricted networking, and an approval policy that automatically rejects elevation requests.
This prevents explicitly authorized Git maintenance. The assistant can inspect files and use browser/computer controls, but cannot complete operations requiring writes to .git. It repeatedly directs the user to enable Full Access even though the user has already selected it.
The confirmed issue is a mismatch between the displayed permission mode and the effective execution policy. The cause has not been isolated to the host integration, session initialization, policy propagation, Windows sandbox implementation, or an overriding managed policy.
Environment and settings
| Setting | Observed value |
|---|---|
| Platform | Windows, NT version 10.0.26200.0 |
| Execution context | Desktop/work session using Codex-related command execution |
| UI permission mode | Full Access displayed in the host UI, as described in earlier screenshot context |
| Installed local CLI | codex-cli 0.153.4; the active execution backend may use a different build |
| Git | 2.53.0.windows.2 |
| Effective filesystem sandbox | workspace-write |
| Writable scope | Selected nested working directory and designated temporary/tool directories; the parent target repository is outside the writable roots |
| Git metadata | .git paths explicitly restricted to read access |
| Effective network policy | Restricted |
| Approval policy | Granular; sandbox elevation disabled |
| Local Windows configuration | [windows] with sandbox = "elevated" |
The local Windows sandbox implementation setting is included as configuration evidence. Its name alone does not establish unrestricted execution. The host application version and active backend build were not captured.
The execution service reports these approval flags:
sandbox_approval: false
rules: false
skill_approval: false
request_permissions: false
mcp_elicitations: true
Observed errors and evidence
A normal fetch from the repository directory fails:
error: cannot open '.git/FETCH_HEAD': Permission denied
Other Git operations in the restricted context return:
fatal: cannot change to '<repository-path>': Permission denied
fatal: this operation must be run in a work tree
Repository inspection commands, including git log and reference lookup, can still succeed. These errors do not establish repository corruption.
Requesting the command tool's supported require_escalated mode is rejected before execution, without an approval prompt:
approval policy is Granular(GranularApprovalConfig {
sandbox_approval: false,
rules: false,
skill_approval: false,
request_permissions: false,
mcp_elicitations: true
}); reject command — you cannot ask for escalated permissions
ACL inspection found:
- The local user owns the repository and
FETCH_HEAD. - Existing access entries grant Modify access.
- The
.gitdirectory andFETCH_HEADalso contain explicit Deny entries for two additional principals, including write restrictions. Principal names and security identifiers are redacted. FETCH_HEADis not marked read-only.
After the user reported running a fetch outside the agent, the expected fetched reference and corresponding FETCH_HEAD content were readable. Subsequent agent operations remained restricted. This is supporting evidence rather than a complete unrestricted-shell control test.
What steps can reproduce the bug?
These steps describe the affected setup. A clean-install or new-repository reproduction has not been performed. All paths are placeholders.
- Open an existing Git repository on Windows through the desktop agent host.
- Select Full Access in the UI and authorize routine repository maintenance.
- Use a task working directory nested under the target repository, for example
C:\work\example-repo\tools\component, while the target repository isC:\work\example-repo. - Ask the agent to inspect the parent repository and fetch from its configured remote using its normal command-execution tool.
- Compare the displayed permission mode with the executor's effective sandbox, writable roots, Git metadata restrictions, network policy, and approval flags.
- Observe the permission failures and the automatic rejection of an elevation request.
What is the expected behavior?
The displayed permission mode should accurately describe the executor handling the current task. Selecting Full Access should apply its documented scope to the intended session.
If a managed policy, protected Git metadata, workspace boundary, or another permission layer limits that scope, the UI should identify the restriction and its source. It should explain whether a mode change affects the current session or requires a new session.
When escalation is unavailable, the user and assistant should receive an actionable explanation of the effective policy. The assistant should recognize that the displayed setting is already enabled and report the discrepancy instead of repeatedly requesting the same change.
Additional information
- Similar failures have been reported across multiple sessions over approximately one week; the first affected version is unknown.
- Browser/computer control is available independently of command-execution permissions.
- The authorized repository update remained unapplied after the agent's attempts.
- Please investigate the propagation and precedence of UI permissions, effective task policy, writable roots, Windows ACL restrictions, and approval configuration.
- An effective-permissions view showing which component or policy controls each restriction would make this diagnosable.
Private project names, unrelated application names, real local paths, repository URLs, account and machine identifiers, security identifiers, credentials, raw screenshots, and session identifiers have been omitted. Reporter attribution is retained intentionally.
Activity
github-actions commentedon Oct 28, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
permission_profile: "managed"that is not defined locally, silently falling back to workspace-write #56663Powered by Codex Action
krakenunbound commentedon Nov 23, 2026
Additional Windows Desktop case and diagnostic evidence (2026-11-22)
I am experiencing the same Full Access UI vs. effective execution restrictions symptom on Windows 11 Pro x64, build 26200, Desktop package
26.1117.4957.0, app-bundled Codex0.171.0-alpha.13(code-mode host/app-server0.171.0).User-visible sequence: I explicitly selected Full access before creating a fresh local Code session. Earlier sessions, despite Bypass/Full Access being selected, reported inability to use localhost or inspect processes, and rejected out-of-sandbox command escalation with
sandbox_approval: falsewhen attempting to compile a Windows installer. A fresh ComfyUI launch task also failed/stalled and switched to Computer Use prompts for the Windows SDK and Chrome. These Computer Use app approvals are a separate layer and alone do not prove a Full Access dispatch bug.CLI/desktop separation: A separately launched global Codex CLI with
--dangerously-bypass-approvals-and-sandboxcould launch ComfyUI and reach local HTTP; that flag does not apply to the Desktop app-server. Desktop logs contain successfulpermissionProfile/listandwindowsSandbox/readinesstransport responses, but not their payload or the affected thread's effective profile. The local CLI doctor default of OnRequest/restricted is likewise not evidence of the active Desktop thread's override.Additional local finding: The configured Windows sandbox backend was
elevated. Its provisioning initially lacked.sandbox-bin; the supported setup was run and subsequently a sandboxed CLI child reached localhost (HTTP 200). A later doctor check reported a separate elevated-provisioning failure due to an ACL read denial on an unrelated user directory. The directory's ACLs and configuration were left unchanged. Neither the CLI success nor this sandbox defect establishes what policy Desktop actually delivered to the affected Full Access thread.Status: This is an accurately matching user-visible reproduction, but I cannot prove from available Desktop logs that my specific fresh thread received
workspace-write,managed, or another effective policy instead ofdanger-full-access. Please log or surface the per-thread permission profile, sandbox policy, and approval policy (or any managed-policy override) at dispatch, so users can distinguish UI state from effective enforcement.Requested regression check: Create a new Windows Desktop Code thread with Full access selected; verify its effective
sandbox_mode = danger-full-accessandapproval_policy = never, then exercise local process launch, writes outside the project directory, and localhost access. If restrictions are deliberately enforced by another policy, surface that clearly instead of silently showing Full access.Related separate confirmed issue: #49484 (the bundled runtime rejects Desktop's persisted Computer Use approvals).