Skip to content

Windows Desktop: named managed permission profile changes to Custom on message submission; subsequent command startup fails #53363

Open

Description

@dariushoda-glitch

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

  1. The operator manually selected a permitted named managed profile for this chat.
  2. 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.
  3. 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.
  4. 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.
  5. Bounded read-only exec_command calls then failed with the message below before producing any requested script output.
  6. 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.
  7. 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

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

  1. added
    bug
    app
    windows-os
    sandbox
    app-server
    on Oct 12, 2026
  2. dariushoda-glitch commented on Oct 12, 2026

    @dariushoda-glitch
    Author

    In-app feedback/session ID: 01a12fd2-1752-7e22-a895-aa8fc7b35169

  3. dariushoda-glitch commented on Oct 13, 2026

    @dariushoda-glitch
    Author

    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.

  4. dariushoda-glitch commented on Oct 13, 2026

    @dariushoda-glitch
    Author

    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.

    • SessionConfiguration::apply handles a legacy sandbox_policy override by rebuilding the filesystem permissions and installing a legacy permission snapshot.
    • The legacy filesystem adapter retains existing deny entries, but does not copy the previous profile's read grants. Workspace-write construction contributes a root-read entry. This combination can structurally produce root-read plus a retained root-deny while dropping explicit runtime-read grants; entry shape alone does not establish effective access or the cause of the PowerShell startup failure.
    • PermissionProfileSnapshot::legacy clears the active profile identity. Mapping that state to the Desktop label “Custom” remains unverified.
    • The TUI serializer avoids this round trip: preserving the current selection omits both overrides; selecting a named profile sends its ID via permissions without sandboxPolicy. 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: whether permissions or sandboxPolicy is present, their ordering, and the active profile plus effective filesystem entries before and after submission. For separate updates, the server documents that thread/settings/update only acknowledges queueing; dependent updates should wait for thread/settings/updated or combine fields. The same code rejects combining permissions with sandboxPolicy.

    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.

  5. PhilipTB commented on Oct 14, 2026

    @PhilipTB

    I am experiencing what appears to be the same problem with Codex Desktop on Windows, along with a related filesystem permissions failure.

    Environment

    • Windows 11 Home, 25H2, build 26200.9457
    • Codex Desktop for Windows
    • Windows sandbox: MXC
    • Custom permission profiles defined in config.toml
    • Codex CLI 0.162.1 used in earlier configuration testing

    1. 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"
    • Explicit read/write permissions for development repositories and Git metadata
    • Explicit read permissions for Python, uv and Codex runtime directories

    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 --version and uv --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: -2147450747

    This 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 :workspace profile while retaining minimal runtime permissions, PowerShell progressed further.

    However, executing git status --short then failed with:

    fatal: Unable to read current working directory: Permission denied

    The same Git operation succeeds under the original, less restrictive profile.

    3. Desktop permission profiles are not consistently refreshed

    I also experienced configuration selection problems:

    • The updated config.toml correctly specified the new profile as default_permissions.
    • The desktop application continued displaying the previous profile, including after starting new conversations.
    • The new profile only appeared after fully restarting the application.
    • Existing and new conversations sometimes displayed different available permission profiles.
    • Background Codex processes could remain running after closing the application, making it difficult to establish a clean restart.

    4. Expected behaviour

    I need a filesystem security policy that:

    1. Denies filesystem access outside explicitly authorised development directories by default.
    2. Allows normal Git, Python, PowerShell and development operations within those directories.
    3. Enforces filesystem restrictions across subprocesses, rather than relying on individual command approvals.
    4. Reliably applies the selected profile and reports its effective permissions.

    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.

  6. dariushoda-glitch commented on Oct 16, 2026

    @dariushoda-glitch
    Author

    Post-update verification on 16 October 2026: the command-startup failure still reproduces on the updated Windows Desktop app.

    • Installed app version: 26.1013.31256.
    • Build: 20586.
    • Installed release channel: prod.
    • The app's information-only update checker returned up_to_date.

    One ordinary sandboxed exec_command probe, with login=false, requested only a fixed marker, UTC time, the PowerShell version, and the current directory. It failed before producing any requested script output:

    Failed to resolve full path of the current executable [%USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe]
    

    Exit code: -2147450747 (0x80008085).

    The session-supplied permission description still listed both :root read and a non-escalatable :root deny, without enumerating :minimal or 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.

  7. dariushoda-glitch commented on Oct 19, 2026

    @dariushoda-glitch
    Author

    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:

    1. .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.

    2. 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.

    3. 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.

    4. 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:

    • An official turn-scoped read grant for the bundled runtime allowed default
      execution to work. That is not a persistent profile repair.
    • The supported require_escalated route still returned the same startup error,
      even when the tool requested the inbox Windows PowerShell executable.
      No auto-review denial was reported; no alternate launcher was used.
    • The same project's unchanged release tests passed in ordinary non-admin
      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.

  8. dariushoda-glitch commented on Oct 19, 2026

    @dariushoda-glitch
    Author

    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:

    • Previously reported chat/session: 01a12fd2-1752-7e22-a895-aa8fc7b35169
    • Affected turn: 01a153b3-a658-73d2-aaf1-1523d5fc4c5d
    • Previously recorded local app-server: 0.163.0-alpha.10.2
    • Previously recorded runtime bundle: 26.1017.11052
      These version values are historical observations, not a new update check.
    1. Sequence within the affected turn

    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.

    1. Comparison with historical successful executions

    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.

    1. Limits of the existing logs

    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.

    1. Requested maintainer comparison

    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:

    • The final filesystem rules and temporary grants after all profile, turn, and launch overrides, including how root-read/root-deny and special-path expansion are evaluated.
    • Whether the returned turn-scoped runtime read grant reaches each launch path, and whether require_escalated uses a different grant merge, permission snapshot, or sandbox backend.
    • The actual launcher/intermediate executable, selected shell, and working directory, explaining why bundled pwsh.exe fails when the shell argument names inbox Windows PowerShell.
    • If available from existing diagnostics, the failing Windows API and error at the native host's executable-path check.

    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.

  9. dariushoda-glitch commented on Oct 23, 2026

    @dariushoda-glitch
    Author

    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.

    1. Sequence and evidence identifiers

    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.

    1. Recorded turn permissions
    Field Interactive CLI, 08:38 Desktop, 08:42
    approval_policy on-request on-request
    approvals_reviewer auto_review auto_review
    permission_profile.type managed managed
    active_permission_profile {"id":"tipfather_vps_ops"} Field absent
    Filesystem type restricted restricted
    :minimal read Present Absent
    Explicit read grant for %USERPROFILE%/.cache/codex-runtimes Present Absent
    Root entries deny read and deny
    :tmpdir / :slash_tmp write entries Present Absent
    exclude_tmpdir_env_var / exclude_slash_tmp in legacy projection false / false true / true
    Profile network / sandbox network_access enabled / true enabled / true

    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.

    1. Desktop preparation and configuration

    The existing Desktop preparation event immediately before the affected turn records:

    requestPermissionProfile=null
    requestSandboxPolicyType=workspaceWrite
    requestRuntimeWorkspaceRootCount=0
    requestSandboxWritableRootCount=7
    resolvedApprovalPolicy=on-request
    resolvedApprovalsReviewer=auto_review
    useAppServerPermissionDefault=true
    

    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:

    • User config and managed requirements both default to admin_work_folders. The CLI invocation explicitly selected tipfather_vps_ops for that run.
    • Managed requirements allow both profiles. Both definitions already include :minimal read and explicit runtime-directory read access. A fallback to admin_work_folders alone therefore does not explain the missing grants.
    • User config selects Windows sandbox mxc; managed requirements enable the network-proxy feature.
    • No project-local .codex/config.toml was found at either inspected working root. This was not an exhaustive audit of all possible configuration layers.

    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.

    1. Hypothesis: the legacy representation replaces the richer profile

    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:

    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.

    1. Requested maintainer investigation

    Could you compare the two turn IDs above and check:

    1. The complete Desktop thread/resume and turn/start permission inputs: whether the named/canonical profile is retained, or a legacy sandboxPolicy is submitted in its place or later overrides it.
    2. Whether the legacy reconstruction branch is reached in the installed build, and why active profile identity, explicit read entries, and special-path grants disappear while write roots and enabled networking remain.
    3. The final child-process filesystem rules and temporary-grant merge for the failed launch, including the launcher/shell and Windows error at the executable-path check.
    4. Whether Desktop should preserve/select the canonical named profile instead of round-tripping its compatibility projection. A regression check should cover root-deny, minimal/runtime read grants, temporary-directory grants, and managed networking across Desktop resume and turn submission.

    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.

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

    appapp-serverbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions