Skip to content

Windows Desktop Full access ignored: workspace-write / granular policy blocks OS keychain registry reads (standalone Codex CLI works) #59605

Closed

Description

@jeffxia2014

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-server with -c features.prefer_mxc=true
  • Local project directory on an E: drive
  • No project-level .codex/config.toml found
  • Global user config.toml: sandbox_mode = "danger-full-access", approval_policy = "never"
  • Desktop Full access setting enabled

Steps to reproduce

  1. Log into a CLI that uses the Windows OS keychain for its user credentials (in this case lark-cli / Feishu).
  2. Run lark-cli auth status --verify in a regular PowerShell: success, verified: true.
  3. Run the same command through an agent in Codex Desktop: fails with registry access denied.
  4. Confirm effective Desktop session permissions: workspace-write; network restricted; granular approvals where sandbox_approval, rules, skill_approval are automatically rejected.
  5. Restart Desktop and create a new session: still restricted. The global config and the Desktop Full access toggle do not match effective permissions.
  6. 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.
  7. The saved Desktop state also shows permission-selection-by-host-id:local set to agentMode: guardian-approvals; recent per-thread entries have activePermissionProfile.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

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    config
    on Nov 5, 2026
  2. jeffxia2014 commented on Nov 5, 2026

    @jeffxia2014
    Author

    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 with keychain 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.

  3. jeffxia2014 commented on Nov 19, 2026

    @jeffxia2014
    Author

    Update: issue resolved after resetting local Codex data and reinstalling

    I deleted the entire .codex folder, 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 .codex folder can remove local configuration, session data, and other settings. Consider backing it up before attempting a reset.

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

    appbugconfigsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions