Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
Current version at the time of filing: 26.825.51511
Bundled CLI observed from the running Desktop app:
codex-cli 0.151.0-alpha.7.2
What platform is your computer?
Windows 11 x64, native Windows Codex Desktop execution.
What issue are you seeing?
Custom (config.toml) no longer honors a user-level configuration that requests full access:
default_permissions = ":danger-full-access"
approval_policy = "never"
[shell_environment_policy.set]
WORKSPACE_ACCESS_MODE = "FULL_ACCESS"
[windows]
sandbox = "elevated"
[projects.'c:\workspace']
trust_level = "trusted"There is no sandbox_mode entry in the active config.
When the permission selector is left on Custom (config.toml), a brand-new task receives a restricted/read-only Windows sandbox instead of danger-full-access:
$env:WORKSPACE_ACCESS_MODEis correctly injected asFULL_ACCESSfrom the sameconfig.toml.- Reading an existing Workspace file is denied.
- Creating a disposable file inside the Workspace is denied.
- Creating a disposable file outside the Workspace in a machine-local temp/cache directory is denied.
- The shell also reports restricted-language / Constrained Language Mode behavior, e.g.
Method invocation is supported only on core types in this language mode.
The exact same probe succeeds immediately when I explicitly switch the Desktop composer permission selector from Custom (config.toml) to the built-in Full access option and start a fresh task.
This means the machine/SMB/filesystem access itself is healthy, and the Desktop app is clearly loading at least part of config.toml (the environment variable is injected), but the configured default_permissions = ":danger-full-access" is not being applied to the runtime permission profile.
Timeline / update clarification
The same machine and configuration were definitely working with full access roughly 15 hours before the failure was noticed.
During debugging, Codex Desktop received another update, but the bug had already reproduced before that update, so that update is not the trigger for the failure described here.
There may have been an earlier Desktop update sometime between the last-known-good state and the first observed failure, but I do not have reliable evidence of that timing. Therefore this report should not attribute the regression to a specific app update or build transition.
What steps can reproduce the bug?
-
On Windows Codex Desktop, use a user config containing:
default_permissions = ":danger-full-access" approval_policy = "never" [shell_environment_policy.set] WORKSPACE_ACCESS_MODE = "FULL_ACCESS" [windows] sandbox = "elevated"
-
Ensure there is no active
sandbox_modesetting. -
Leave the composer permission selector on Custom (config.toml).
-
Start a brand-new task.
-
Ask it to perform a harmless permission probe, for example:
1. Report $env:WORKSPACE_ACCESS_MODE 2. Read C:\Workspace\Elysian\WORKSPACE-SETUP.md 3. Create/delete C:\Workspace\Elysian\artifacts\codex-full-access-probe.tmp 4. Create/delete C:\0.TempDevCache\codex-full-access-probe.tmp -
Observe under Custom (config.toml):
WORKSPACE_ACCESS_MODE: FULL_ACCESS Workspace read: access denied Workspace create/delete: blocked by policy Temp/cache create/delete: blocked by policyThe shell may also report PowerShell restricted-language errors.
-
In Settings, enable the availability of the built-in Full access option if necessary. (The Settings dialog explicitly says this only adds Full Access to the permissions menu; it does not activate it.)
-
In the composer permission menu, explicitly select Full access.
-
Start another brand-new task and run the exact same probe.
-
Observe that all four checks now succeed, including writes outside the Workspace.
Additional diagnostics already performed
Normal PowerShell under the same Windows user can read both the local Workspace view and its backing UNC share without issue.
The active user config contains:
default_permissions = ":danger-full-access"
approval_policy = "never"
A recursive check found no project-level .codex/config.toml overriding those values.
No local managed requirements/config files are present at:
C:\ProgramData\OpenAI\Codex\requirements.toml
C:\ProgramData\OpenAI\Codex\config.toml
%USERPROFILE%\.codex\managed_config.toml
The running Desktop codex.exe app-server command line contains no --sandbox override.
So far the reliable workaround is to explicitly select the built-in Full access profile in the composer, rather than use Custom (config.toml).
What is the expected behavior?
When Custom (config.toml) is selected and the resolved user configuration contains:
default_permissions = ":danger-full-access"
approval_policy = "never"the effective runtime should use danger-full-access semantics, equivalent to the built-in Full access selection unless another higher-precedence requirement explicitly forbids it.
If Desktop intentionally does not allow Custom (config.toml) to resolve to :danger-full-access, it should make that explicit in the UI/config diagnostics rather than silently launching a restricted sandbox while still applying other values from the same config.
The selected/configured permission source and the effective runtime permission profile should remain consistent and inspectable.
Related issues
This looks related to the wider Windows permission-state/config synchronization problems in:
- [Windows app] Permission dropdown desyncs while runtime profiles change or merge between prompts #32338 — permission dropdown/runtime profile desynchronization; specifically mentions Custom unexpectedly producing a strict read-only policy.
- Custom (config.toml) option disappears for never + danger-full-access #38535 — Custom/config handling around
never+danger-full-access. - Codex desktop: permission state (activePermissionProfile/approvalPolicy/writableRoots) silently degrades to :workspace + sandbox_approval: false over successive read-only turns in the same task #40698 — effective permission state degrading/desynchronizing from unchanged
config.toml.
This report is narrower: on the current Windows Desktop, a fresh task consistently reproduces Custom (config.toml) + default_permissions = ":danger-full-access" -> restricted sandbox, while explicitly selecting the built-in Full access profile makes the same fresh-task probe pass immediately.
Activity
github-actions commentedon Aug 30, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Divinicus1st commentedon Aug 30, 2026
I reviewed the two suggested duplicates. They look related, but this reproduction seems distinct enough to keep separate for now.
Desktop project task creation forces :read-only and ignores trusted project permission profile #41410 is macOS and isolates Desktop project-task creation (
create_thread) forcing:read-onlyinstead of resolving a trusted project's project-local named profile. My case is native Windows, user-levelconfig.toml, and reproduces in a brand-new ordinary task with the composer explicitly left on Custom (config.toml). There is no project-local permission profile involved.WORKSPACE_ACCESS_MODEfrom the same user config is injected correctly, whiledefault_permissions = ":danger-full-access"is not applied. Explicitly selecting the built-in Full access option makes the exact same fresh-task probe pass.Codex desktop: permission state (activePermissionProfile/approvalPolicy/writableRoots) silently degrades to :workspace + sandbox_approval: false over successive read-only turns in the same task #40698 is also very relevant, but it describes permission state degrading over successive turns in the same task. My reproduction is already wrong on the first turn of a fresh task and is stable/repeatable: Custom (config.toml) -> restricted/read-only sandbox; built-in Full access -> expected unrestricted behavior.
So this may share the same underlying Desktop permission-state/config-resolution machinery, especially with #40698, but the failure boundary here is specifically fresh-task resolution of Custom (config.toml) when the configured default is
:danger-full-access.