Skip to content

[Windows Desktop][MXC] selecting named profile reverts to approval mode on submit; CLI works #56125

Open

Description

@MightyBoo

Summary

On Windows Codex Desktop, a configured named MXC permission profile is not applied to local project sessions. Desktop executes with the built-in :workspace profile and restricted network policy, even though default_permissions = "ha_lan" is set and the same project works when launched through native Codex CLI with the named profile explicitly selected.

Environment

  • Windows 11 x64, OS build 26300
  • Codex Desktop app reports version 26.1016.51333 (prod)
  • Standalone Codex CLI 0.163.0 (bundled Desktop CLI 0.163.0-alpha.11)
  • MXC sandbox supported and tested successfully
  • Local trusted project workspace, ChatGPT Plus
  • Reproduced after a full machine reboot and in a new desktop session

Sanitized configuration excerpt

model = "gpt-6.1-sol"
model_reasoning_effort = "low"
default_permissions = "ha_lan"

[windows]
sandbox = "elevated"

[features]
prefer_mxc = true
network_proxy = true

[permissions.ha_lan]
extends = ":workspace"

[permissions.ha_lan.workspace_roots]
'C:\Users\<user>\Documents\Codex\<project>' = true

[permissions.ha_lan.filesystem.":workspace_roots"]
"." = "write"

[permissions.ha_lan.network]
enabled = true
allow_local_binding = true
enable_socks5 = true
enable_socks5_udp = false
mode = "full"

[permissions.ha_lan.network.domains]
"192.168.1.x" = "allow"

The literal private LAN address and account-specific paths are replaced here for privacy; the user's real config contains the actual paths/IP.

Reproduction

  1. Save the named profile above in user config.toml.
  2. Run codex -C "<project>" -c windows.sandbox=mxc -c default_permissions=ha_lan with standalone CLI 0.163.0.
  3. CLI effective CODEX_PERMISSION_PROFILE=ha_lan; MXC write probe, SOCKS5 to an allowlisted LAN host, SSH key authentication and a read-only application API call all PASS. The REST credential is protected using DPAPI; no secrets are included.
  4. Fully exit Desktop and reboot Windows. Launch Desktop with the same project and start a new local session. User config still has default_permissions = "ha_lan".
  5. Desktop effective permission profile reports :workspace (one session displayed empty CODEX_PERMISSION_PROFILE, another explicitly :workspace). Project read/write works, but network policy is restricted and a harmless TCP probe to the allowlisted LAN host fails/blocks.
  6. Desktop's authenticated helper correctly refuses to run because the effective profile is not ha_lan. No authentication call is attempted.

Expected

A new Desktop session using Custom/user-config permissions should honor default_permissions = "ha_lan" or expose a clear supported way to select the profile for that session; it should not silently replace it with :workspace. If a managed policy denies the profile, show the specific policy/requirement responsible.

Actual

Desktop runs with effective :workspace and restricted networking, even while MXC networking is active. CLI with the same profile succeeds. Editing authentication keys/tokens, restarting Windows, and repeating credential enrollment are not relevant.

Diagnostics requested

Please compare Desktop's permission-profile selection/turn-start policy derivation with CLI's -c default_permissions=ha_lan path and expose effective-profile/source and managed-policy diagnostics in Desktop.

Related: #53278 (Windows Desktop network restricted despite enabled config), #53363 (named profile selection state changes), #41724 (Custom ignoring configured default).

No tokens, private keys, public IPs, hostnames, account names, or production home automation configuration are included.

Update — explicit Desktop selection reverts on submission (22 October 2026)

An additional direct reproduction confirms this is not only failure to pick up default_permissions:

  1. Open a fresh Desktop local-project chat and open the permission selector.
  2. The named ha_lan option is visible beside "Ask for approval" and "Approve for me".
  3. Explicitly select ha_lan in the UI.
  4. Paste and submit a harmless read-only validation prompt.
  5. Immediately on message submission the UI reverts to "Approve for me".
  6. Effective permission snapshot indicates :workspace; CODEX_PERMISSION_PROFILE is empty and CODEX_NETWORK_PROXY_ACTIVE=1. The SOCKS5 listener is accessible, but the configured allowlisted LAN host cannot be reached under the selected Desktop policy; the application helper fails closed before reading credentials.
  7. Repeat with a new Desktop session after a full Windows restart: same outcome.

CLI continues to work with explicit -c default_permissions=ha_lan. This strongly points to Desktop's composer/turn-start permission propagation rather than credential resolution, network proxy availability, or invalid profile syntax. Related symptom in #53363 (named profile becomes Custom on send).

Expected: sending a prompt preserves the explicitly selected named profile (or provides a clear policy rejection) instead of silently replacing it with generic approval mode and restricted :workspace.

No Home Assistant commands, keys, tokens, personal paths, hostnames, or production files were included or changed during this Desktop reproduction.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    config
    on Oct 22, 2026
  2. github-actions commented on Oct 22, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. changed the title [-][Windows Desktop][MXC] default_permissions named profile ignored; Desktop runs :workspace while CLI ha_lan succeeds[/-] [+][Windows Desktop][MXC] selecting named profile reverts to approval mode on submit; CLI works[/+] on Oct 22, 2026
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