Description
SUMMARY
On the affected Windows desktop chat, a selected named managed permission profile initially allowed bounded read-only local commands to run. Later messages exposed a different filesystem permission description and every attempted command failed before the requested script ran.
The operator reports that selecting the named profile and then pressing Enter to submit a message changes the displayed selection to Custom. Closing and reopening the application did not resolve the behavior. This is an affected-session reproduction, not a clean-install reproduction or a confirmed root cause.
ENVIRONMENT
- Desktop application version: 26.1007.21434.
- Build: 13901.
- Installed release channel: prod.
- Official app update tool returned up_to_date on 2026-10-12; no update was installed during this investigation.
- Local Windows execution, projectless desktop chat.
- Earlier successful read-only command reported Win32NT, OS version 10.0.26300.0 and PowerShell Core 7.6.5.
- Exact running Codex engine version and native sandbox implementation remain unverified. A CIM process-ancestry query was unavailable, and later shell commands cannot start.
- Managed on-request approvals; the supplied execution context reports auto_review.
OBSERVED SEQUENCE
- The operator manually selected a permitted named managed profile for this chat.
- Initial local read-only commands succeeded. The supplied permission context included :root deny, :minimal read, explicit read access to the bundled runtime directory, and other narrowly scoped file grants.
- A read-only inspection of managed requirements during that working turn confirmed the named profile was defined and allowed. Its filesystem rules included :minimal read and the bundled runtime read grant. The global default was a different named profile; it was not changed by this investigation.
- After subsequent user input, the supplied permission description changed: it contained both a :root read entry and a non-escalatable :root deny entry, plus workspace writes, but no longer enumerated :minimal or the explicit bundled-runtime read grant. This is an observation about the session-provided description, not an independent reconstruction of the internal evaluator.
- Bounded read-only exec_command calls then failed with the message below before producing any requested script output.
- The operator confirmed that the intended named profile was selected in the UI. Later, the operator identified the trigger more precisely: pressing Enter to submit the message changed the selection to Custom.
- The operator reports having closed and reopened the application. A subsequent bounded command still failed with the same error.
EXACT FAILURE, PERSONAL PATH PREFIX REDACTED
Failed to resolve full path of the current executable [%USERPROFILE%.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe]
Reported process exit code: -2147450747 (0x80008085).
A prior diagnostic requested the standard Windows PowerShell executable through exec_command's shell parameter, with the same sandbox permissions and without escalation. It still returned the error naming the bundled pwsh.exe. This shows that changing that requested shell did not get the command past the failing startup path; it does not prove why the path resolution failed.
EXPECTED BEHAVIOR
The selected named managed profile should remain selected and effective across ordinary message submission, subsequent turns, and application reopen. Runtime-required reads and explicit grants should not disappear during selection persistence or permission conversion. Managed deny rules and the network policy must remain enforced.
REQUESTED INVESTIGATION
Please compare the saved UI selection, permission fields prepared for turn/start, the server-resolved profile, and the filesystem rules passed to the Windows command launcher. Check whether resolving or serializing the named profile as Custom/legacy sandbox settings drops positive read rules while retaining the root deny.
That conversion is a hypothesis suggested by the permission-description change and operator-observed UI transition, not a confirmed implementation defect. The path-resolution error alone does not identify the underlying Windows operation or prove a filesystem-policy cause.
Please provide a supported resynchronization procedure or corrected build that preserves the named managed profile and its boundaries. The desired acceptance test is successful read-only local execution across at least two ordinary user turns with consistent effective permissions, followed separately by the originally intended bounded network acceptance checks.
RELATED REPORTS, NOT CLAIMED DUPLICATES
- Sandbox with custom profile forbids all commands on Mac OS once permissions ever change #45953 : macOS report of initial command success, subsequent command-runner denial, and automatic visual permission-selection changes with a root-deny profile. Still open when checked on 2026-10-12. Different platform; shared cause is unverified.
- # Mismatch between displayed custom permissions and runtime settings #45586 : reported mismatch between displayed custom permissions and runtime settings. Its observations do not establish the cause of this Windows case.
SCOPE AND PRIVACY
No credential contents, private SSH configuration, destination addresses, project source, account identifiers, chat identifiers, raw logs, raw debug configuration, or complete policy files are included. Profile and personal path names are sanitized.
No SSH/SCP or WSL operation, remote change, policy edit, ACL change, alternate execution bridge, security-mode change, runtime replacement, or elevated retry was performed in this investigation. The desktop version query only checked update status. The operator's normal application close/reopen is recorded above.
Local access recovery remains incomplete.
Activity
dariushoda-glitch commentedon Oct 12, 2026
In-app feedback/session ID:
01a12fd2-1752-7e22-a895-aa8fc7b35169dariushoda-glitch commentedon Oct 13, 2026
Additional operator-reported observation: the selected named permission profile also changes to Custom when submitting a message from a second Windows user account on the same device.
Switching Windows accounts therefore did not resolve the visible profile-selection behavior in this setup. This is not a clean-install or separate-device reproduction, and it does not distinguish an application defect from an interaction with shared managed configuration.
This new observation covers the UI transition only. We do not have an independently verified effective-permissions snapshot or command-executor result from the second account. The PowerShell startup error documented for the original account should therefore not be treated as reproduced in the second account on the basis of this report.
The next useful investigation remains the selected profile's propagation through message submission and the effective permission configuration delivered to the executor.
dariushoda-glitch commentedon Oct 13, 2026
Source-only follow-up: the public app-server/core code contains a concrete legacy-override path consistent with the permission-entry changes reported here. This is a hypothesis for Desktop investigation, not a verified Desktop root cause or runtime reproduction.
Reviewed revision:
f82e36592278a0a782fb0d0fc97e5fa10e832ac2. We have not established that this revision matches the engine bundled with the affected Desktop build.sandbox_policyoverride by rebuilding the filesystem permissions and installing a legacy permission snapshot.permissionswithoutsandboxPolicy. It rejects legacy conversions that alter filesystem semantics.Related merged TUI changes explicitly address this class of loss: #41192 and #39117. These are precedents, not evidence that the Desktop problem has been fixed.
The useful next trace is the actual Desktop-to-app-server settings update and subsequent
turn/start: whetherpermissionsorsandboxPolicyis present, their ordering, and the active profile plus effective filesystem entries before and after submission. For separate updates, the server documents thatthread/settings/updateonly acknowledges queueing; dependent updates should wait forthread/settings/updatedor combine fields. The same code rejects combiningpermissionswithsandboxPolicy.If Desktop sends a display-derived legacy policy on ordinary submission, the existing TUI pattern provides a candidate client-side correction: preserve the server-owned permission snapshot or use the selected named profile ID, retaining managed enforcement and deny rules. This conditional recommendation is not a request to weaken policy or ignore deliberate permission changes.
No additional local executor, credential, SSH/SCP, WSL, policy-change, or deployment tests were run for this source review.
PhilipTB commentedon Oct 14, 2026
I am experiencing what appears to be the same problem with Codex Desktop on Windows, along with a related filesystem permissions failure.
Environment
config.toml1. Default-deny filesystem profile breaks PowerShell execution
I have a working permission profile using
:root = "read"with explicit directory exclusions and read/write access to selected development repositories.However, this permits unnecessarily broad filesystem reads, including locations unrelated to development.
I created a more restrictive profile using:
:root = "deny":minimal = "read":tmpdir = "write"Codex correctly reported that the restrictive profile was active and that the designated development directories were writable.
However, all shell commands failed before execution, including
git status,python --versionanduv --version.The error was:
Failed to resolve full path of the current executable [C:\Users\<username>\.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe]Exit code:
-2147450747This occurred despite explicitly allowing read access to the Codex runtime directory.
2. Removing the root-deny rule produces a different failure
Following advice to remove the explicit
:root = "deny"rule and inherited:workspaceprofile while retaining minimal runtime permissions, PowerShell progressed further.However, executing
git status --shortthen failed with:fatal: Unable to read current working directory: Permission deniedThe same Git operation succeeds under the original, less restrictive profile.
3. Desktop permission profiles are not consistently refreshed
I also experienced configuration selection problems:
config.tomlcorrectly specified the new profile asdefault_permissions.4. Expected behaviour
I need a filesystem security policy that:
At present, the choice appears to be between a functional environment with broad filesystem read access and a restrictive environment that cannot execute basic development commands.
I have spent approximately four hours investigating these problems without obtaining a working default-deny configuration.
Could the team provide a tested Windows MXC configuration supporting default-deny filesystem access while allowing normal Git, Python and PowerShell operations within designated workspaces?
I can provide additional sanitised configuration excerpts and diagnostics if useful.
dariushoda-glitch commentedon Oct 16, 2026
Post-update verification on 16 October 2026: the command-startup failure still reproduces on the updated Windows Desktop app.
26.1013.31256.20586.prod.up_to_date.One ordinary sandboxed
exec_commandprobe, withlogin=false, requested only a fixed marker, UTC time, the PowerShell version, and the current directory. It failed before producing any requested script output:Exit code:
-2147450747(0x80008085).The session-supplied permission description still listed both
:root readand a non-escalatable:root deny, without enumerating:minimalor the explicit runtime read grant documented in the earlier working context. This is an observation about the supplied description, not an independent reconstruction of the internal permission evaluator.This retest confirms persistence of the command-startup error on the newer app build. It does not independently re-observe the UI changing to Custom, establish the active named profile, or identify the exact bundled engine version or sandbox implementation.
No credential files were read, and no SSH/SCP, WSL, policy/ACL edits, elevated retry, or deployment was performed as part of this post-update verification.
dariushoda-glitch commentedon Oct 19, 2026
Read-only follow-up: startup failure localized to the bundled PowerShell native host
This supplement is based on existing execution results and new read-only
inspection. No launch reproducer or project tests were rerun for this follow-up.
No persistent permission policy, ACL, installation, or remote system was changed.
The existing failure is:
exit code -2147450747 (0x80008085)
Failed to resolve full path of the current executable
[%USERPROFILE%.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe]
New evidence:
.NET's hosting error reference maps this value to CoreHostCurHostFindFailure.
The exact error string is also embedded in the local pwsh.exe. In the .NET
v10.0.11 reference source, it is emitted by the native host's own executable
path check, before the managed application starts. Thus "before shell
startup" should be read as before requested command execution, not proof
that Windows failed to create the native pwsh process.
In that Windows reference implementation, the nonempty path in the message
points to fullpath validation, which uses GetFullPathNameW and file-attribute
checks. This suggests inspecting executable-path visibility under the
launcher's effective policy. The actual Windows error was not captured;
Access Denied, the exact failing API, and a particular sandbox backend
are not established by the message alone.
Installed runtime metadata:
bundleVersion: 26.1017.11052
pwsh.exe FileVersion: 7.6.5.500
runtimeconfig included frameworks: .NET 10.0.11
pwsh.exe SHA256: 362a356ce7f0940ec74f73a8fc2c990a2cc24a38a11c90bbd8eca947110ad139
The exact apphost binary-to-source commit has not been verified.
The desktop log reports local app-server version 0.163.0-alpha.10.2.
For the affected chat, its turn preparation summary at 2026-10-19T10:41:27.330Z
records:
requestPermissionProfile=null
requestSandboxPolicyType=workspaceWrite
requestRuntimeWorkspaceRootCount=0
requestSandboxWritableRootCount=8
resolvedApprovalPolicy=on-request
resolvedApprovalsReviewer=auto_review
useAppServerPermissionDefault=true
The event is named "Reasoning summary turn-start config resolved". It is
not the complete turn/start payload or the final per-process filesystem
policy. A null request profile may be delegated selection, and is not by
itself proof of lost policy.
Existing behavior remains relevant:
execution to work. That is not a persistent profile repair.
even when the tool requested the inbox Windows PowerShell executable.
No auto-review denial was reported; no alternate launcher was used.
PowerShell (1907 passed, 1 skipped, 1 xfailed). The sandbox-only os.link
failure is separate evidence and is not proven to share the startup cause.
Could you compare the final filesystem rules and temporary read grants passed
to the runtime launcher for use_default and require_escalated, and identify
the actual Windows error at the native host path check? The desktop turn
summary does not reveal that launch boundary. It would also help to explain
why the failing startup component is bundled pwsh.exe despite an explicit
Windows PowerShell shell argument.
References:
https://raw.githubusercontent.com/dotnet/runtime/v10.0.0/docs/design/features/host-error-codes.md
https://raw.githubusercontent.com/dotnet/runtime/v10.0.11/src/native/corehost/corehost.cpp
https://raw.githubusercontent.com/dotnet/runtime/v10.0.11/src/native/corehost/hostmisc/pal.windows.cpp
Only sanitized technical metadata is included. No raw logs, credentials,
private command bodies, source snapshots, or remote addresses are attached.
dariushoda-glitch commentedon Oct 19, 2026
Follow-up: correlating existing turn permissions, temporary grants, and launcher results
This supplements the previous native-host analysis:
#53363 (comment)
Further read-only correlation of existing session history and Desktop logs identifies a useful sequence within one turn: an execution without an explicit sandbox_permissions argument failed, a turn-scoped read grant was returned, another execution without that argument succeeded, and an explicit require_escalated execution then failed with the same native-host error.
No launch probes or project tests were rerun for this analysis. No credential/key files were read, and no SSH/SCP, deployment, restart, or persistent policy/ACL changes were performed.
Correlation identifiers:
These version values are historical observations, not a new update check.
All timestamps below are UTC on 2026-10-19. Calls and results were matched by their recorded outer tool-call IDs; historical commands were parsed, not replayed.
10:27:24.606 — Desktop preparation event "Reasoning summary turn-start config resolved" records:
requestPermissionProfile=null
requestSandboxPolicyType=workspaceWrite
requestRuntimeWorkspaceRootCount=0
requestSandboxWritableRootCount=8
resolvedApprovalPolicy=on-request
resolvedApprovalsReviewer=auto_review
useAppServerPermissionDefault=true
10:27:24.995 — Session turn_context records a managed/restricted filesystem profile containing both root-read and root-deny entries.
10:27:34.272 -> 10:27:35.084 — Execution with sandbox_permissions omitted, shell omitted, login=false fails with exit -2147450747.
Outer call ID: call_a6264b05c3244da6ad6fdc1504658e7e
10:27:39.784 -> 10:27:41.464 — request_permissions returns a turn-scoped read grant including:
%USERPROFILE%.cache\codex-runtimes
The same grant also includes Git configuration and Python runtime paths; this was not a runtime-only intervention.
Outer call ID: call_4af20b180385490c9141703f1b52a468
10:28:17.221 -> 10:28:18.980 — Execution with sandbox_permissions omitted, shell omitted, login=false completes with exit 0.
Outer call ID: call_fd597890580c4173a23328b5c2267fea
10:28:56.104 -> 10:28:58.921 — Execution with sandbox_permissions="require_escalated", login=false, and an explicit inbox Windows PowerShell shell fails with exit -2147450747. The error still names bundled pwsh.exe:
Failed to resolve full path of the current executable
[%USERPROFILE%.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe]
Outer call ID: call_a6d23a3066124e3da16175834dcd5329
No auto-review denial was reported for this failure.
"Omitted" above is a literal observation from the arguments, not an explicit use_default value or a reconstructed backend decision. require_escalated is the tool argument, not evidence of Windows Administrator elevation. The command bodies and shell arguments differ across these calls; this is historical correlation, not a controlled comparison.
The preparation event precedes the temporary grant by approximately 17 seconds. Its null requestPermissionProfile cannot, by itself, show that a subsequently granted permission was discarded.
Three earlier chats have identical recorded base permission snapshots for the selected successful turns on October 4 and October 7:
Field Historical successful turns Affected current turn
approval_policy on-request on-request
approvals_reviewer auto_review auto_review
sandbox_policy.type workspace-write workspace-write
permission_profile.type managed managed
filesystem type restricted restricted
root entries read read and deny
profile network restricted enabled
sandbox network_access false true
exclude_tmpdir_env_var false true
exclude_slash_tmp false true
active_permission_profile field absent field absent
The selected calls include four October 4 deployments and one October 7 SSH execution with explicit require_escalated, reported exit 0. A separate October 4 successful deployment omitted sandbox_permissions. These are historical outcomes only.
The earlier snapshots did not enumerate an explicit runtime read entry either; they contained broad root-read access. This comparison does not establish that a particular runtime read entry was dropped. Nor does the absent active_permission_profile field establish the selected named profile; absence is distinct from an explicit null.
The affected Desktop preparation event is at line 5124 of the existing October 19 main log. That log exposes preparation fields, not the complete turn/start payload or final filesystem rules delivered to each child process.
The October 7 Desktop log covers the successful SSH interval but does not expose the final child-process policy in the inspected events. The standard Desktop log directories examined do not contain October 4 logs; the available October 5 files begin after the selected October 4 executions. Session history retains the call metadata and results.
Nearby missing-path fs/getMetadata errors and a geolocation-permission warning do not establish an executor permission failure. Reasoning-summary text is also not independent launcher telemetry.
Consequently, the final grant propagation, permission evaluation, sandbox backend, and Windows error at the native-host path check remain unobserved. Root-read plus root-deny is a structural difference worth investigating, not a demonstrated cause. The profile UI behavior and the previously reported os.link failure remain separate until a common cause is established.
Could you compare the actual launch configuration for the three execution call IDs above, especially the successful post-grant call and the subsequent require_escalated failure?
Please identify:
This requests comparison of the enforced launch policies, not removal of managed deny rules or broader permanent filesystem access. A targeted explanation of where the existing evidence stops would also help identify the minimum additional diagnostic, if one is required.
Only sanitized technical metadata is included; no raw logs, private command bodies, credentials, or remote addresses are attached.
dariushoda-glitch commentedon Oct 23, 2026
Desktop–CLI comparison: named profile retained in native CLI, read grants lost in Desktop turn context
Follow-up to the earlier permission/launcher correlation:
#53363 (comment)
A successful native CLI reference and a subsequent failing Desktop turn in the same persisted conversation now narrow the investigation to how Desktop selects or reconstructs permissions. This does not establish the exact failing function in the installed Desktop build.
This supplement uses existing operator-provided results, filtered session metadata, selected configuration fields, and existing Desktop logs. No new SSH/SCP, connectivity probes, installations, deployments, restarts, or persistent policy/ACL changes were performed to prepare it. Diagnostic readers did not open any SSH configuration, known_hosts, or private-key file; only policy entries referring to those paths were compared.
All times below are UTC on 2026-10-23.
Thread: 01a12fd2-1752-7e22-a895-aa8fc7b35169
08:33:36: an earlier, explicitly authorized read-only SSH command through codex sandbox --include-managed-config --permission-profile tipfather_vps_ops and the project's managed transport returned the remote UTC time. Both SSH and launcher exit codes were 0. This is an already-received operator result, not a new connection for this comparison.
08:38:25.703: the conversation was resumed in the native Windows CLI with an explicit invocation-only default_permissions=tipfather_vps_ops selection and --no-daemon. Turn: 01a167e9-4cad-7090-a335-0861965a21a0.
The interactive CLI's offline executor check completed with exit 0. It reported Windows PowerShell 5.1.26100.9711, CODEX_PERMISSION_PROFILE=tipfather_vps_ops, CODEX_NETWORK_PROXY_ACTIVE=1, and a present, syntactically valid loopback SOCKS ALL_PROXY. It did not connect to the proxy or repeat SSH.
08:42:09.891: Desktop logged preparation of the next relevant turn.
08:42:10.666: Desktop turn_context was recorded. Turn: 01a167ec-bb45-7f22-a69c-955e28af75ac. The offline check failed with exit -2147450747 (0x80008085), before the requested PowerShell command could run:
Failed to resolve full path of the current executable
[%USERPROFILE%.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe]
The Desktop proxy environment remains unobserved for that failed check; the startup failure is not evidence that ALL_PROXY was absent. The original session_meta describes conversation creation, not the client/build executing each resumed turn. Its old cli_version is not used as the current Desktop version.
Both selected snapshots contain 22 filesystem entries, but they are materially different. Desktop retains project/temp writable paths and adds workspace metadata protections, while the CLI's explicit read grants and special-path permissions are absent. In each selected record, file_system_sandbox_policy.entries matches permission_profile.file_system.entries.
These are turn-context snapshots, not captures of the complete final policy enforced on each child process after temporary grants and launch overrides.
The existing Desktop preparation event immediately before the affected turn records:
This is line 572 of codex-desktop-a00971b5-1309-4ef0-b835-93ad4543c1be-34184-t0-i1-084148-0.log. The subsequent preparation event at 08:43:55.628, line 722, has the same listed fields.
The explicit null in the preparation event is distinct from the absent active_permission_profile field in turn_context. Null may mean selection is delegated to the server; it does not independently prove profile loss.
Filtered configuration inspection found:
Metadata reading in Desktop required an official turn-scoped read grant covering the runtime and specific diagnostic sources. Later successful reader processes used that additional access; they do not establish that the original Desktop permission snapshot was repaired. No installed policy file was edited.
The observed combination is consistent with a rich profile being projected into legacy workspaceWrite fields and then reconstructed as the effective profile. That representation carries writable roots and network/temp flags, but not the full explicit read-grant list.
Current public source provides a plausible mechanism:
https://github.com/openai/codex/blob/main/codex-rs/core/src/session/session.rs
https://github.com/openai/codex/blob/main/codex-rs/protocol/src/permissions.rs
https://github.com/openai/codex/blob/main/codex-rs/app-server-protocol/src/protocol/v2/permissions.rs
These references were inspected on 2026-10-23 and point to public main, not a verified revision of the installed Desktop binary. The logs expose preparation summaries, not the complete turn/start payload. This remains a mechanism to verify, not a confirmed execution trace. The native-host error also does not expose the underlying Windows API error or prove which rule caused it.
Could you compare the two turn IDs above and check:
The desired outcome is reliable operation directly in Desktop with the existing managed profile. This is not a request for broader filesystem access, removal of deny rules, a new key, or CLI as the permanent workflow.
No raw logs, message bodies, project source, proxy endpoints, remote addresses, or credential material are attached.