Repository navigation
Description
Summary
On Windows Codex Desktop, enabling Full access and configuring sandbox_mode = "danger-full-access" and approval_policy = "never" does not change the effective runtime policy. New Desktop sessions are still workspace-write with granular approvals that automatically reject sandbox_approval. This prevents a subprocess CLI from reading the user's Windows credential/keychain registry storage. The same CLI works in ordinary Windows PowerShell and when invoked by an AI agent in a separately launched Codex CLI with -c features.prefer_mxc=false -s danger-full-access -a never.
Environment
- Windows 10, Codex Desktop (observed runtime app version:
26.1029.61003; exact Desktop About version not separately confirmed) - Desktop launches an
app-serverwith-c features.prefer_mxc=true - Local project directory on an E: drive
- No project-level
.codex/config.tomlfound - Global user
config.toml:sandbox_mode = "danger-full-access",approval_policy = "never" - Desktop Full access setting enabled
Steps to reproduce
- Log into a CLI that uses the Windows OS keychain for its user credentials (in this case
lark-cli/ Feishu). - Run
lark-cli auth status --verifyin a regular PowerShell: success,verified: true. - Run the same command through an agent in Codex Desktop: fails with registry access denied.
- Confirm effective Desktop session permissions:
workspace-write; network restricted;granularapprovals wheresandbox_approval,rules,skill_approvalare automatically rejected. - Restart Desktop and create a new session: still restricted. The global config and the Desktop Full access toggle do not match effective permissions.
- Invoke a separate installed Codex CLI in full-access mode with MXC preference off. Ask its agent to execute the exact CLI authentication command: succeeds.
- The saved Desktop state also shows
permission-selection-by-host-id:localset toagentMode: guardian-approvals; recent per-thread entries haveactivePermissionProfile.id: :workspace,approvalPolicy: on-request,sandboxPolicy.type: workspaceWrite,networkAccess: false. Removing only the persisted local permission selection and restarting did not fix the runtime restriction.
Actual error
{
"ok": false,
"error": {
"type": "internal",
"subtype": "storage",
"message": "keychain Get failed: registry open for read failed: Access is denied."
}
}Expected
Desktop's Full access setting and configured sandbox/approval modes should be reflected in the effective agent runtime, allowing trusted, consented local credential reads. If a higher-priority policy forces workspace sandboxing, Desktop should surface its source and not appear to grant Full access.
Diagnostic notes
- This does not prove MXC is the root cause; the successful standalone CLI changed both sandbox mode and MXC preference.
- The problem did not exist immediately after first installing the Feishu CLI: the user reports Codex Desktop previously called it successfully.
- No credentials, tokens, user account name, local Windows username, or exact project path are included here.
- Related: Windows: “Ask for approval” selected, but runtime disables sandbox approval requests #50738 and Codex desktop: permission state (activePermissionProfile/approvalPolicy/writableRoots) silently degrades to :workspace + sandbox_approval: false over successive read-only turns in the same task #40698.
Activity
github-actions commentedon Nov 5, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
jeffxia2014 commentedon Nov 5, 2026
Additional finding: Official Marketplace plugins work normally
Official plugins installed from the Codex Marketplace are working normally in the same Codex Desktop installation.
The reported failure specifically affects a locally installed CLI (
lark-cli) invoked by the Desktop agent through its PowerShell execution tool. That CLI can read the Windows credential store successfully when executed in an ordinary PowerShell terminal or by an agent in a separately launched Codex CLI session using full-access settings, but fails in Codex Desktop withkeychain Get failed: registry open for read failed: Access is denied.This distinction suggests a potential difference in effective permissions or execution architecture between Marketplace plugins and local shell subprocesses. It does not establish that Marketplace plugins share the same execution path or require access to the Windows credential store, nor does it prove which sandbox mechanism causes the denial.
Please consider investigating the local shell execution policy and Windows credential access separately from plugin connectivity.
jeffxia2014 commentedon Nov 19, 2026
Update: issue resolved after resetting local Codex data and reinstalling
I deleted the entire
.codexfolder, then uninstalled and reinstalled Codex. After these steps, the issue reported here was resolved on my machine.Because I performed both steps together, I cannot tell whether deleting the folder, reinstalling, or a combination of the two resolved the issue. This is a user-reported outcome, not a confirmed root cause or a verified fix for other installations.
Note for others: deleting the entire
.codexfolder can remove local configuration, session data, and other settings. Consider backing it up before attempting a reset.