Skip to content

Windows/WSL: permission path cannot be represented losslessly prevents all local tool execution after update #48443

Open

Description

@kbrf8bk4jg-commits

What version of the Codex App are you using (From “About Codex” dialog)?

Codex Desktop 26.924.22138 Build 11645 Windows package 26.924.2738.0 Codex runtime 0.158.0-alpha.2.1

What subscription do you have?

ChatGPT pro 5x

What platform is your computer?

Windows 11, x86_64 Codex Desktop with Ubuntu 24.04 under WSL2

What issue are you seeing?

Additional finding — Windows-native execution fails with ERROR_DIRECTORY (267)

I also switched the Codex execution environment from WSL to native Windows.

The failure changes.

Instead of the WSL permission-profile serialization panic, native Windows execution reports:

exec_command failed: CreateProcess {
  message: "Rejected(\"Failed to create unified exec process:
  CreateProcessWithLogonW failed: 267\")"
}

Windows error 267 corresponds to:

ERROR_DIRECTORY
The directory name is invalid.

This may be related to the same Windows/WSL path-state problem.

The session/project context previously reported its working directory as:

/mnt/d/

which is valid in WSL but is not a valid native Windows working-directory representation.

The corresponding native Windows path would be:

D:\

or, for the project:

D:\The_Ark

This suggests there may be two manifestations of the same path migration/normalization problem:

WSL execution

permission profile
→ Windows/WSL path normalization
→ non-lossless PathUri/permission serialization
→ panic before tool startup

Observed error:

failed to serialize permission profile:
permission path cannot be represented losslessly

Native Windows execution

stored/session working directory remains WSL-style
→ /mnt/d/
→ passed to CreateProcessWithLogonW
→ ERROR_DIRECTORY (267)

Observed error:

CreateProcessWithLogonW failed: 267

Please verify that switching execution environments canonicalizes:

  • workspace root;
  • working directory;
  • allowed paths;
  • permission-profile paths;

between Windows and WSL representations rather than reusing the previous environment's path representation.

What steps can reproduce the bug?

  1. Start Codex Desktop on Windows 11.

  2. Configure Codex to use Ubuntu 24.04 under WSL2 as the execution environment.

  3. Open or create a project on the D: drive. In my case the workspace is on:
    D:\The_Ark

    The corresponding WSL path is:
    /mnt/d/The_Ark

  4. Start a completely new Codex chat/project. The issue is not limited to an older migrated conversation.

  5. Ask Codex to execute even a trivial command that does not require project filesystem access, for example:

    printf "CODEX_TOOL_OK\n"

  6. The tool never starts. Codex fails before shell execution with:

    failed to serialize permission profile:
    permission path cannot be represented losslessly

    A more detailed occurrence was:

    Fatal error: tool task failed to receive:
    JoinError::Panic(..., "failed to serialize permission profile: permission path cannot be represented losslessly", ...)

  7. The same error occurs for pwd and for paths such as:
    /
    /tmp
    /mnt
    /mnt/d
    /mnt/d/
    /mnt/d/The_Ark

  8. Regranting project/D: drive permissions does not resolve the issue.

  9. Creating a completely new project and completely new chat also does not resolve it.

  10. If I switch Codex from WSL execution to native Windows execution, the failure changes to:

    CreateProcessWithLogonW failed: 267

So both execution environments currently fail, but with different path-related errors.

What is the expected behavior?

Codex should successfully initialize the local tool/sandbox environment and execute commands.

For example:

printf "CODEX_TOOL_OK\n"

should return:

CODEX_TOOL_OK

and:

pwd

should execute normally.

When using WSL2, Codex should consistently canonicalize Windows and WSL workspace/permission paths.

Equivalent drive-root representations such as:

D:
/mnt/d
/mnt/d/

should not cause the permission profile serializer to panic because of a lossless round-trip mismatch.

When switching to native Windows execution, Codex should use a valid Windows working directory such as:

D:\The_Ark

rather than retaining a WSL-style working directory such as:

/mnt/d/The_Ark

A malformed or non-lossless permission entry should also ideally produce a recoverable diagnostic identifying the problematic entry instead of preventing every local tool from starting.

Additional information

This started after Codex Desktop was updated. The PC had been off/restarted after approximately one week, and the same project/filesystem had worked normally with Codex before the update.

Environment:

Codex Desktop: 26.924.22138
Build: 11645
Windows package: 26.924.2738.0
Codex runtime: 0.158.0-alpha.2.1
OS: Windows 11 x86_64
Linux environment: Ubuntu 24.04 under WSL2
Sandbox: workspace-write
Permission profile: managed/restricted
Review mode: auto_review

Hardware:
AMD Ryzen 9 5950X
96 GB RAM
NVIDIA GeForce RTX 5060 Ti 16 GB
Samsung 990 PRO 2 TB workspace drive (D:)

A read-only diagnostic was able to inspect the visible permission profile before normal tool execution.

It contained both:

/mnt/d
/mnt/d/

A normal wslpath string round-trip showed:

/mnt/d
→ D:
→ /mnt/d/

so the original /mnt/d string is not returned exactly, whereas /mnt/d/ round-trips normally.

This does not prove that this is the exact entry rejected by Codex's internal PathUri serializer, because the failing internal entry is not exposed in the error message. However, it appears relevant to the "cannot be represented losslessly" error.

The diagnostic also found both Windows and WSL project registrations in local Codex configuration and evidence of previous project migration state. However, the bug also reproduces in a completely new project and new chat.

Importantly, even a filesystem-independent printf command fails before execution. Therefore there is currently no evidence that the underlying NTFS filesystem, D: drive permissions, Git repository, or project files are causing the failure.

Native Windows execution produces a second potentially related symptom:

CreateProcessWithLogonW failed: 267

Windows error 267 is ERROR_DIRECTORY ("The directory name is invalid").

This may indicate that WSL-style and Windows-style working-directory/path state is not being consistently converted when switching execution environments.

No project files, Git history, databases, NTFS permissions, WSL mounts, or system settings were modified during diagnosis.

It would be very useful if the permission serialization error logged:

  • the failing permission entry index;
  • original path;
  • normalized/internal PathUri;
  • round-trip result.

That would make this regression much easier to diagnose.

Activity

  1. added
    app
    on Sep 26, 2026
  2. added
    bug
    windows-os
    sandbox
    tool-calls
    on Sep 26, 2026
  3. Anarchist999 commented on Sep 27, 2026

    @Anarchist999

    Additional reproduction on native Windows, diagnosed on 27 September 2026. This may be related, but the exact rejected permission path is still unknown and an identical underlying cause has not been established.

    Important distinction: ordinary sandboxed PowerShell commands work, and the bundled Node executable runs successfully. Browser automation and native Computer Use fail at helper startup. No Windows/WSL transition has been established as the trigger in this case.

    Environment

    • Codex desktop version recorded in configuration: 26.924.22138
    • Windows package: 26.924.2738.0
    • Codex runtime: 0.158.0-alpha.2.1
    • Bundled browser runtime: b63ee7ee40c23b77
    • Bundled Node: v24.21.0
    • Native Windows / PowerShell; chat working directory: E:\
    • Managed restricted filesystem permissions; elevated Windows sandbox
    • Versions were obtained from existing local diagnostics/configuration, not a new About-dialog inspection.

    Reproduction

    In a fresh chat, invoke the supported Browser startup API:

    let browser = await cua.getBrowser({ url: "https://www.fab.com/library" });

    Result before any page or browser state is returned:

    node_repl kernel exited unexpectedly
    kernel_status: exited(code=1)
    kernel_stderr_tail: windows sandbox failed: permission path cannot be represented losslessly
    reason: stdout_eof
    

    The Computer Use skill's supported initialization also fails:

    if (!globalThis.sky) {
      const { sky } = await import("@oai/sky");
      globalThis.sky = sky;
    }

    Initial attempt and one requested retry both returned:

    trusted Node process exited unexpectedly; kernel reset, rerun your request
    

    The native-tool responses in this fresh chat did not expose underlying stderr, so they should not be treated as independent confirmation of the exact permission-path error.

    Opening the Fab URL through the app's internal-browser opening tool succeeded in displaying a tab (the app then reported an Epic sign-in URL). Attempts to read that existing internal tab through the supported cua.getTab(..., { browser: "iab" }) API still failed with the trusted-Node startup error, including one retry. Thus tab display can work while agent inspection/control cannot.

    Controls and prior fault

    • The same bundled node.exe, invoked through ordinary sandboxed execution, successfully reports its version and cwd.
    • Ordinary file reads succeed.
    • An earlier, separate apply deny-read ACLs fault was traced to a generated deny_read_acl_state.json containing 22 NUL bytes. That corrupt generated history was quarantined in an earlier diagnostic session; ordinary startup recreated valid JSON. The current file is valid, with an empty principals object.
    • The configuration hash is unchanged across the earlier repair and this investigation.
    • No apps or other chats were stopped/restarted, no browser profiles reset, and no security settings relaxed during the fresh-chat investigation.

    Diagnostic gap

    The exact error is emitted by raw_path_from_uri in permissions.rs when a PathUri fails the legacy-string round trip. Available diagnostics do not identify the offending entry.

    Please expose the failing entry index, original URI, generated legacy path, and reconstructed URI in appropriate local diagnostics, and compare the Browser/native-helper permission construction with ordinary execution. A drive-root/trailing-separator issue is only a hypothesis here, not a verified cause.

    No authenticated page contents, full logs, personal filesystem paths, or sign-in URL parameters are included in this report.

  4. kbrf8bk4jg-commits commented on Sep 27, 2026

    @kbrf8bk4jg-commits
    Author

    Correction and stronger reproduction: WSL mode produces invalid mixed Windows/Linux file URIs

    Correction to my previous local diagnostic:

    The earlier test where the runtime appeared to launch Windows/PowerShell was performed while the execution environment had accidentally not been switched to WSL. Please disregard that result as evidence that Codex ignores the WSL setting.

    I have now explicitly selected WSL and repeated the test using a completely separate test project:

    D:\Codex_Path_Test
    

    This project is unrelated to the original workspace.

    With WSL correctly selected, the tool cannot execute even pwd.

    Codex reports that it is preparing a Linux execution environment, but path handling fails before command execution with:

    'file:///D:/Codex_Path_Test' is invalid on 'linux'
    

    and:

    'file:///D:/mnt/d/Codex_Path_Test' is invalid on 'linux'
    

    The second URI appears especially suspicious because it combines a Windows drive prefix:

    D:
    

    with a WSL mount path:

    /mnt/d/Codex_Path_Test
    

    resulting in:

    D:/mnt/d/Codex_Path_Test
    

    inside a file:// URI.

    This appears to be an invalid hybrid Windows/Linux path representation.

    Minimal reproduction

    1. Create a new project on:
    D:\Codex_Path_Test
    
    1. Select WSL as the Codex execution environment.

    2. Start a new chat.

    3. Attempt:

    pwd
    1. Tool execution does not begin.

    Observed errors:

    'file:///D:/Codex_Path_Test' is invalid on 'linux'
    'file:///D:/mnt/d/Codex_Path_Test' is invalid on 'linux'
    

    No project files need to be accessed for the failure to occur.

    Possible relationship to the original error

    The original workspace fails earlier with:

    failed to serialize permission profile:
    permission path cannot be represented losslessly
    

    This new reproduction suggests that Windows ↔ WSL path conversion may be producing inconsistent PathUri / file-URI representations.

    A possible conversion chain appears to involve:

    D:\Codex_Path_Test
    /mnt/d/Codex_Path_Test
    file:///D:/Codex_Path_Test
    file:///D:/mnt/d/Codex_Path_Test
    

    I cannot determine which internal conversion produces the hybrid URI, but this reproduction no longer depends on the original project.

    The failure reproduces in a fresh D: test project with WSL explicitly selected.

    No files, permissions, mounts, WSL settings, or project data were modified.

  5. kbrf8bk4jg-commits commented on Sep 27, 2026

    @kbrf8bk4jg-commits
    Author

    Update: root cause narrowed further + reproducible WSL path workaround

    I was able to narrow this down further using a completely separate test workspace and then reproduce the result against the original workspace.

    Correction

    One earlier diagnostic where Codex appeared to ignore the WSL setting and launch PowerShell was invalid: WSL had accidentally not been selected for that particular test.

    After explicitly selecting WSL, the actual path-handling failure became much clearer.


    1. Fresh D: workspace reproduces invalid Windows/Linux path conversion

    I created a completely separate empty test workspace:

    D:\Codex_Path_Test
    

    With WSL explicitly selected, even pwd initially failed before execution.

    Codex reported:

    'file:///D:/Codex_Path_Test' is invalid on 'linux'
    

    and, in another attempted conversion:

    'file:///D:/mnt/d/Codex_Path_Test' is invalid on 'linux'
    

    The second value appears to combine:

    Windows:
    D:
    

    with:

    WSL:
    /mnt/d/Codex_Path_Test
    

    into the invalid hybrid:

    D:/mnt/d/Codex_Path_Test
    

    This reproduces independently of my original project.


    2. Explicit canonical WSL path completely bypasses the failure

    I then instructed Codex to ignore all Windows/file-URI representations for Linux tool execution and to use only:

    /mnt/d/Codex_Path_Test
    

    while explicitly forbidding:

    D:\Codex_Path_Test
    file:///D:/Codex_Path_Test
    D:/mnt/d/Codex_Path_Test
    file:///D:/mnt/d/Codex_Path_Test
    

    Result:

    PATH_OVERRIDE_SUCCESS
    WSL_PATH_TEST_OK
    /mnt/d/Codex_Path_Test
    WORKSPACE_OK
    

    I repeated this in a completely new chat.

    Result again:

    tool initialization: OK
    printf: WSL_OVERRIDE_OK
    pwd: /mnt/d/Codex_Path_Test
    workspace check: OK
    project root: /mnt/d/Codex_Path_Test
    

    3. Override remains stable across multiple tool calls

    I then performed three separate read-only tool calls while keeping the canonical WSL root fixed.

    Results:

    Call Result Project root
    1 CALL_1_OK /mnt/d/Codex_Path_Test
    2 /mnt/d/Codex_Path_Test /mnt/d/Codex_Path_Test
    3 CALL_3_OK /mnt/d/Codex_Path_Test

    No path guard or serialization error occurred.


    4. Same workaround succeeds against the original workspace

    Finally, I applied the same read-only path override to the original project.

    Canonical root:

    /mnt/d/The_Ark
    

    Results:

    tool initialization: OK
    
    call 1:
    THE_ARK_WSL_OK
    project root: /mnt/d/The_Ark
    
    call 2:
    /mnt/d/The_Ark
    project root: /mnt/d/The_Ark
    
    call 3:
    THE_ARK_DIRECTORY_OK
    project root: /mnt/d/The_Ark
    

    No error occurred.

    No files were read or modified during this test beyond checking that the directory exists.


    Current A/B result

    Automatic path handling

    With WSL selected and normal automatic workspace/path handling:

    D:\Codex_Path_Test
    

    can become:

    file:///D:/Codex_Path_Test
    

    or:

    file:///D:/mnt/d/Codex_Path_Test
    

    and Linux tool initialization fails.

    The original workspace can also fail with:

    failed to serialize permission profile:
    permission path cannot be represented losslessly
    

    Explicit canonical WSL path

    When Codex is explicitly instructed to use only:

    /mnt/d/<workspace>
    

    and not construct a Windows file:// URI:

    tool initialization: OK
    WSL execution: OK
    pwd: correct POSIX path
    workspace directory check: OK
    multiple sequential tool calls: OK
    

    This behavior is reproducible in:

    1. a fresh unrelated D: workspace;
    2. a fresh chat;
    3. multiple sequential tool calls;
    4. the original workspace.

    Current hypothesis

    The underlying filesystem, D: drive, WSL mount, and original project do not appear to be the cause.

    The evidence now points more specifically to automatic Windows → WSL workspace/path conversion, possibly involving the PathUri / file-URI representation used while constructing the permission profile or tool working directory.

    Conceptually, the failing conversion appears to involve something like:

    D:\workspace
            ↓
    file:///D:/workspace
    

    being supplied to a Linux context, or:

    D:\workspace
    +
    /mnt/d/workspace
            ↓
    file:///D:/mnt/d/workspace
    

    whereas the working representation is simply:

    /mnt/d/workspace
    

    I cannot determine where inside Codex this incorrect conversion occurs.


    Temporary workaround

    A reproducible temporary workaround is to explicitly force the canonical WSL project root before local tool execution:

    /mnt/d/<workspace>
    

    and prohibit Windows/file-URI representations from being used for Linux tool calls.

    This workaround has now survived multiple independent read-only tests.

    It should not be necessary for users to provide this override manually; Codex should canonicalize the project root correctly when WSL is selected.

    No filesystem permissions, WSL mounts, project files, Git state, or Windows settings were changed to make the workaround succeed.

  6. noriji-git commented on Sep 28, 2026

    @noriji-git

    Confirmed native-Windows root cause with an isolated A/B test on the exact affected build.

    Environment

    • Codex Desktop 26.924.22138, build 11645
    • Windows package 26.924.2738.0
    • Runtime 0.158.0-alpha.2.1
    • Windows 11 x86_64, native Windows execution (no WSL)
    • Computer Use runtime b63ee7ee40c23b77

    End-to-end failure

    await cua.getState() fails before browser enumeration:

    node_repl kernel exited unexpectedly
    kernel_status: exited(code=1)
    kernel_stderr_tail: windows sandbox failed: permission path cannot be represented losslessly
    reason: stdout_eof
    

    A read-only process-start trace captured the actual codex.exe sandbox child invocation. The generated permissions.node_repl profile contains a write permission for a drive root (H:\) and another write permission for an ordinary P-drive subdirectory containing Japanese characters.

    Installed-binary A/B test

    I invoked the installed codex.exe sandbox directly with effective :root = read, exactly one test path, network disabled, and cmd.exe /d /c echo ok.

    Permission path Result
    C:\ exact permission path cannot be represented losslessly error
    H:\ exact error
    P:\ exact error
    H:\. exact error
    H:/ exact error
    \\?\H:\ exact error
    H:\.agents success, exit 0, ok
    ordinary P-drive Unicode subdirectory success, exit 0, ok
    extended-length non-root C-drive path success, exit 0, ok

    This makes the failing property deterministic: a Windows drive-root literal is rejected by the permission PathUri/legacy-string round trip. The P drive and Unicode are not the trigger. In the Computer Use child setup payload, the ordinary P-drive subdirectory is preserved correctly; the H-drive root is the entry that cannot be serialized.

    All tested equivalent root spellings also fail, so there is no representation-only workaround that keeps full-drive permission on this build.

    Please add regression coverage for Windows drive roots and include the offending original/reconstructed path in the diagnostic. A valid drive-root permission should either round-trip or be rejected at profile-edit time, not prevent Computer Use and local helper startup.

  7. noriji-git commented on Sep 28, 2026

    @noriji-git

    Final single-variable confirmation using the exact complete permissions.node_repl argument captured from the failed Computer Use child process:

    Case Result
    Exact captured profile, unchanged exit 1: windows sandbox failed: permission path cannot be represented losslessly
    Identical profile with only "H:\\" = "write" removed exit 0, stdout ok

    No other permission entry, executable, working directory, environment setting, or payload command was changed. The successful profile still contained the ordinary P-drive Unicode subdirectory permission.

    This confirms the Windows drive-root permission entry is the direct cause of this native-Windows Computer Use startup failure on 26.924.22138 / runtime 0.158.0-alpha.2.1.

  8. sqdckll commented on Oct 1, 2026

    @sqdckll

    I am seeing a potentially related regression on native Windows with an
    SMB/UNC workspace, without WSL.

    Workspace: \192.168.1.241\a733-helper
    Current app version: 26.928.31416
    Current runtime: 0.159.2

    In my case, tools can run, but conversation persistence fails:
    after restarting the app, the thread remains in the sidebar but its
    messages are empty.

    Logs repeatedly report:
    failed to record rollout items:
    thread-store internal error:
    permission path cannot be represented losslessly

    The same UNC workspace saved conversations successfully with 0.155.x.
    The earliest retained error is on 2026-09-29 at 09:48:22 UTC+8.
    The app startup log immediately before that reports 0.158.0-alpha.2.1,
    the same runtime version reported in this issue.

    Existing threads also started failing to persist new messages.
    New affected threads have zero rows in thread_history_1.sqlite's
    thread_items table. Local-directory conversations save successfully.

    The problem persists with 0.159.0 and 0.159.2.
    Could the permission-path serialization regression also affect
    rollout/thread persistence for native Windows UNC workspaces?

  9. lprati70 commented on Oct 1, 2026

    @lprati70

    I am seeing the same permission path cannot be represented losslessly failure on Windows with Codex runtime 0.159.2.

    During a read-only diagnostic, I located a matching error-producing check in raw_path_from_uri() in codex-rs/protocol/src/permissions.rs. That check rejects a PathUri → LegacyAppPathString → PathUri round-trip when the reconstructed URI differs from the original. However, I do not have an internal trace proving that this exact call site produced my failure.

    In my case:

    • The failure occurs before the requested local tool operation starts.
    • The persisted sandbox policy was inspected successfully; its 25 explicit filesystem paths are ordinary ASCII Windows paths.
    • The thread cwd is stored in extended-length form similar to \\?\C:\..., but I could not prove that it is the failing entry.
    • External tests of the visible paths do not reproduce the internal native round-trip.
    • I have not intentionally changed the cwd, sandbox policy, ACLs, Chrome profile, or project configuration. The initial tool attempt did automatically trigger sandbox bootstrap activity, including ACL operations and log updates, so I cannot certify that the runtime made no filesystem changes.

    The missing diagnostic information is:

    1. The failing permission-entry index and source.
    2. The original internal PathUri.
    3. The generated LegacyAppPathString.
    4. The reconstructed PathUri.

    Without those values, identifying the offending entry from outside the runtime is not reliable.

    This reproduces on runtime 0.159.2, providing another affected version beyond the 0.158.0-alpha.2.1 reported in this issue.

    Could diagnostic logging expose those four values, with appropriate sanitization? I can provide a sanitized sandbox-policy excerpt and timestamped sandbox-log excerpt, but would prefer not to attach the full state database because it may contain unrelated user data.

  10. SilverHandCZ commented on Oct 12, 2026

    @SilverHandCZ

    Additional confirmation: conversation history fails to persist while work continues — critical data-loss priority requested

    I am reporting another occurrence of the conversation-persistence failure described by @sqdckll on October 1: the same error message, empty persisted conversation history, and work continuing despite storage failures. The identical underlying cause has not yet been established.

    Please treat this as a critical data-loss issue and prioritize it urgently. Users can discover the problem only after important conversation content has already been lost.

    Important: affected and normally functioning chats coexist within the same project.

    The failure affects only some chats. Other chats in the very same project continue to work normally, including renaming. This is therefore not an observed project-wide failure.

    The investigation included a working comparison chat from the same project as an affected chat. A shared project location alone does not explain the difference. The exact trigger remains unknown; this observation does not rule out an interaction between project configuration and individual chat state.

    Successfully testing one chat in a project does not establish that other chats in that project are saving correctly.

    Environment

    Observed on October 12, 2026. Versions were obtained from local logs and session metadata:

    • Codex desktop client: 26.1007.21434
    • Windows package: 26.1007.2314.0
    • Runtime: 0.162.0-alpha.17.2
    • Native Windows execution.
    • Project workspaces use SMB/UNC paths.
    • Conversation databases and rollout files are stored locally on the C: drive, under the user’s .codex directory.

    UNC is an environment detail, not a confirmed trigger.

    I have not performed a controlled comparison establishing that projects with local workspace paths are unaffected. UNC paths may be relevant to the permission-serialization failure, but their role remains unproven. Please do not restrict the investigation or affected scope to UNC projects based on this report.

    Observed behavior and diagnostic evidence

    I initially noticed that two chats in different projects could not be renamed. Other chats, including chats within the same project, renamed successfully.

    The visible warning was only a generic red notification: “Changes could not be saved” — “Změny se nepodařilo uložit” in the Czech UI. It did not tell me that conversation history was also failing to persist.

    Read-only diagnostics found:

    • Repeated failed to record rollout items errors containing thread-store internal error: permission path cannot be represented losslessly.
    • thread/name/set failures with error code -32603 and the same permission-path error.
    • Zero rows in thread_history_1.sqlite → thread_items for all three affected chats identified during the investigation, including a replacement chat.
    • The corresponding rollout files contained only seven initialization/context records, with no ordinary user/assistant conversation messages.

    I initially suspected that renaming a chat immediately after work started might have caused the problem. The logs contradict that hypothesis: persistence failures occurred before the failed rename requests.

    All timestamps below are UTC on October 12, 2026:

    Affected chat | First recorded persistence failure | First failed rename -- | -- | -- A | 06:26:32 | 06:26:35.294 B | 10:04:49 | 10:04:53.083

    Both original chats later became renameable, but their conversation histories were empty. I subsequently archived them. Successful renaming at that point did not restore the missing history or demonstrate that the underlying defect was fixed.

    Impact

    The practical impact was limited in my case only because I maintain an automatically updated project journal outside the chat history. That journal preserves important findings, decisions and progress independently of the conversation. It allowed me to continue working despite the missing history.

    Most users will not have that safeguard. They could lose an entire day of analysis, discussion, decisions and instructions held only in the chat. Project files already written to disk may survive, but they do not replace the missing conversation.

    Users should not need an independent journaling system to protect themselves against silent failure of conversation storage.

    Workaround limitations

    Creating another chat is not a reliable workaround: the investigation found the same persistence failure in a replacement chat.

    Testing a rename may expose the problem early, but a successful rename does not prove that subsequent messages are being saved. Similarly, another functioning chat in the same project does not establish that the affected chat is safe to continue using.

    Unverified diagnostic lead

    Affected permission profiles contained UNC share-root entries with trailing separators. A working comparison chat from the same project used corresponding roots without trailing separators.

    This was not a controlled isolation of the failing entry. It establishes neither the cause nor an UNC-only scope, and it is not a tested fix.

    Requested action

    Please prioritize:

    1. Fixing the persistence failure and establishing its actual affected scope across workspace locations and permission configurations.
    2. Comparing affected and unaffected chats within the same project, including stored state, effective permission profiles and metadata serialization.
    3. Displaying an immediate, persistent warning when conversation storage fails, explicitly stating that ongoing work is at risk.
    4. Preserving still-visible messages and providing a reliable export or recovery option before they become unavailable.
    5. Providing diagnostics that identify the rejected permission entry, guidance for detecting and recovering affected conversations, and regression tests covering this failure.

    An application that continues a conversation while failing to save it creates a serious risk of losing users’ work. This needs urgent attention.

  11. SilverHandCZ commented on Oct 12, 2026

    @SilverHandCZ

    Update: confirmed persistence failures in existing chats created in July and August 2026

    A broader read-only review of the local runtime logs has now confirmed that this problem also affects existing chats created weeks or months earlier.

    The following are two additional affected chats, separate from the two originally reported. Creation timestamps come from the application’s thread metadata; failure timestamps come from the local runtime log. All timestamps are UTC.

    Chat, anonymized | Created | Persistence failures observed on October 12, 2026 -- | -- | -- Existing chat 1 | 2026-07-30 17:07:48 | 09:36:45–09:43:54 Existing chat 2 | 2026-08-25 11:22:53 | 09:48:54–09:52:51

    For these two chats, the log contains respectively 197 and 151 occurrences of:

    failed to record rollout items: thread-store internal error: permission path cannot be represented losslessly

    There are also associated failures to flush the rollout when completing a turn. These counts represent failed persistence calls, not a count of lost messages.

    This establishes that the failure is not limited to newly created chats. An existing chat with a stored name and previous history cannot be assumed to continue saving new conversation data correctly.

    The creation dates do not establish when the defect first started affecting these chats. I have also not determined the exact amount of missing content or whether their earlier history remains complete.

    Correction to my earlier comment

    Existing chat 2 is the chat I previously described as a working comparison. That assessment was based on its stored name and available previous state. The broader log review now shows that new persistence operations failed in that chat too.

    Please disregard that chat as a healthy control. Consequently, the earlier trailing-separator comparison does not establish a working-versus-failing distinction. The exact trigger remains unproven, and UNC remains an environment detail rather than a confirmed cause or scope boundary.

    Please include resuming and continuing existing chats, along with changes to their effective permissions and persisted state, in the investigation. Testing only new-chat initialization would miss this confirmed case.

    This increases the practical risk: users can return to an established chat, continue working, and encounter failures to save new content without a clear warning. Please retain urgent priority for the conversation data-loss aspect of this issue.

  12. SilverHandCZ commented on Oct 12, 2026

    @SilverHandCZ

    Critical update: reproducible failure to save new messages in both existing and newly created chats — normal work is now blocked

    This has become a work-stopping data-integrity issue for me. I cannot continue normal work in the desktop app while it can fail to save conversations without a clear warning during the work. Please treat this as a critical, urgent persistence failure.

    During today's work alone, the available application logs have already recorded 3,210 persistence-failure events with the exact reason permission path cannot be represented losslessly — WITHOUT A SINGLE IN-APP WARNING THAT CONVERSATIONS WERE NOT BEING SAVED DURING NORMAL WORK.

    This count covers 12 October 2026 from 00:00 Europe/Prague up to the check at 15:06:31 Europe/Prague / 13:06:31 UTC. Of these events, 1,303 are directly attributed to 9 user chats, 1,680 to internal permission-review sessions, and 227 have no resolved chat attribution. These are verified persistence-failure log events, not counts of lost messages or independent incidents.

    The generic failure notification I encountered when trying to rename a chat did not warn me that the conversation itself was failing to save. Thousands of internal failures, with no actionable persistence warning during the work, are an unacceptable gap between what the application knows and what it tells the user.

    The latest checks show that this affects both new chats and new messages in older chats, across multiple existing projects. Starting another chat in an affected project has repeatedly failed to solve it.

    1. Older history survives, but new work is not saved

    I verified an existing chat created on 2026-08-25 at 11:22:53 UTC, thread ID 01a038a8-aa18-7f90-b632-5507fb1253e5.

    • The original August conversation is still present in the local transcript.
    • Today's actual conversation is missing. A separate project journal records today's decision and identifies this same chat, providing independent evidence that the work took place.
    • Today's entries labelled as user messages in the transcript contain only injected instructions and environment context, not the actual conversation.
    • The log contains 157 persistence-failure events for this chat between 2026-10-12 09:48:54 and 09:52:51 UTC.

    This is an important correction to the apparent “empty chat” symptom: an existing chat can retain its old history while silently failing to save its new conversation. Seeing old messages is therefore not evidence that current work is being saved.

    2. Replacement and fresh test chats fail in the same project

    A replacement overview chat created on 2026-10-12 at 10:19:19 UTC, thread ID 01a12f9f-b8df-7823-8030-0710eba4ca27, has no saved actual user message or assistant response. Its transcript contains only initial technical records and injected instructions. The log contains 95 persistence-failure events for this chat.

    I then explicitly requested one more minimal test in the same project:

    • Created: 2026-10-12 12:53:09 UTC / 14:53:09 Europe/Prague.
    • Thread ID: 01a1302c-8f05-77a0-947b-d2e6d75688cd.
    • Task: return one unique test string, without tools or file changes.
    • The app created the chat and assigned its title.
    • The actual test prompt was not saved. The unique string is absent from both user and assistant messages in the local transcript. No saved assistant response is available.
    • Reading the chat returns an empty turn with status interrupted and error: null.
    • The log records 16 persistence failures between 12:53:11 and 12:53:14 UTC: 11 record, 3 materialize and 2 flush failures.

    All three cases report the same error: permission path cannot be represented losslessly. These event counts are diagnostic errors, not counts of lost messages. The minimal test does not establish that an assistant response was generated; it establishes that even the submitted prompt did not persist.

    3. Scope and limits of the findings

    Similar failures have also been verified in another existing project, including newly created replacement chats. The problem is not limited to one old thread or its original contents. However, I am not claiming that every chat in every project fails, or that a completely new project container has been tested.

    The affected examples use UNC project paths, while the inspected chat transcripts are stored locally on C:. UNC is a condition of these observations, not a proven exclusive cause. Please investigate shared project settings, permission-path handling and persistence state without assuming that either the project files are corrupt or local-path projects are necessarily unaffected.

    4. Why this blocks normal use

    There is no reliable, ordinary user-facing way to know whether the conversation currently visible in the app has actually been saved. Technical inspection of logs and transcript files revealed these failures. That is not a reasonable requirement after every message or before every application shutdown.

    In the original affected conversations, work could proceed without a clear persistence warning. A failed rename exposed the problem, but users should not have to attempt renaming chats to discover that saving has failed. The new test also shows that successful creation and title assignment do not prove that the conversation is being saved.

    My practical loss was limited only because I maintain a separate, automatically updated project journal. That journal preserves important decisions and results outside the chat. It does not restore the missing conversation. Users who rely on chat history alone could lose an entire work session, potentially a full day, and may only discover it after closing or restarting the app.

    For me, this means stopping normal work in the app until saving is reliable or a verified workaround is available. Continuing in an older chat, seeing its previous history, or creating another chat in the affected project does not provide the assurance needed. Silent failure of conversation storage is an unacceptable failure of a basic requirement of this product.

    5. Requested action

    • Urgent engineering triage and an assessment for critical priority. Please acknowledge the risk of losing conversation history and the fact that normal work is blocked.
    • An immediate, persistent and unmistakable warning whenever conversation persistence fails, including identification of the affected chat and clear advice to preserve unsaved work.
    • A supported way to preserve or export the currently visible conversation when saving fails.
    • A verified mitigation and a way to check whether existing and new chats are actually persisting, without manually inspecting internal databases and logs.
    • A fix and regression coverage for both new chats and continued work in existing chats.

    Related support case: 17065801, reported as escalated to a support specialist. The new test thread ID and UTC timestamps above should help correlate the failure with diagnostic logs.

  13. MirceaStefanescu commented on Oct 12, 2026

    @MirceaStefanescu

    Native Windows helper still fails before startup on runtime 0.162.0-alpha.17.2, while the official MXC compatibility probe passes.

    Observed on 2026-10-12:

    • Windows 11 25H2, build 26200.9445.
    • Desktop updater: installedVersion 26.1007.21434, build 13901, production channel, up_to_date.
    • AppX package version: 26.1007.2314.0.
    • Desktop-managed runtime: codex-cli 0.162.0-alpha.17.2.

    The documented command was run exactly twice using the installed runtime, once from a drive root and once from a normal subdirectory on the same volume:

    codex -c windows.sandbox=mxc sandbox --include-managed-config --permission-profile :workspace -- cmd.exe /d /c echo MXC_OK
    

    Both returned MXC_OK with exit code 0 (134 ms and 137 ms). The saved config.toml SHA-256 was unchanged before and after both probes.

    Immediately afterward, the supported native Node tool could not execute a literal-output request. Its diagnostic was:

    kernel_status: exited(code=1)
    kernel_stderr_tail: Error: failed to prepare MXC sandbox: permission path cannot be represented losslessly
    reason: stdout_eof
    

    The browser's supported CUA initialization also failed before returning browser state, with a trusted-Node exit error; one requested retry after the kernel reset produced the same result.

    The active Desktop permission context includes literal Windows volume-root entries. The exact rejected entry is not exposed, and this test does not prove which entry is responsible. Changing the command's working directory is not equivalent to changing an explicit path entry in the generated helper profile.

    The bundled marketplace catalog is present and parses successfully. No restart, saved permission/configuration edit, ACL change, sandbox downgrade, runtime replacement, or browser-session extraction was performed for these probes. Only the runtime's normal operational temporary/log writes were permitted.

    Could the helper diagnostics identify the failing permission-entry index and original/reconstructed URI, or provide a supported correction that preserves the existing access boundaries? The difference between the documented :workspace probe and the actual native-helper policy appears relevant.

    Reference: https://learn.chatgpt.com/docs/windows/windows-sandbox#mxc-compatibility

    No full logs, conversation history, credentials, account identifiers, or personal directory names are included.

  14. SilverHandCZ commented on Oct 12, 2026

    @SilverHandCZ

    Critical update: reproducible UNC share-root trigger, inconsistent path handling, and silent loss of conversation updates

    I have narrowed the reproduction down to a simple UNC share-root case. There are two separate defects: inconsistent handling of paths, and silent failure to save conversations. The second defect is more serious because it can leave users and the agent working from an incomplete, outdated history without any warning.

    Simple reproduction

    1. On Windows, create a local project and add an accessible UNC share root as its primary allowed folder: \\server\share. Use the share root itself, without a subdirectory such as \\server\share\folder.
    2. Check whether the folder picker changes it to \\server\share\, adding a trailing separator. That happened in my tests.
    3. Create a disposable chat in this project. Send a unique test message and ask for a short reply without tools or file changes.
    4. After the reply appears, verify that the actual user message and assistant reply were saved. With disposable test content, this can be checked by restarting the app and reopening the chat. Logs and the local transcript can also reveal the failure before restarting.
    5. In the failing case, the actual conversation is missing from persistent history and the logs report permission path cannot be represented losslessly. Initial technical records may still exist; their presence does not prove that the conversation was saved.
    6. Repeat with a UNC subdirectory and a local directory as controls. In my tests, both controls saved the message and reply successfully.

    This is a reproducible pattern in my tested environment. Earlier comparisons also found working and failing chats within the same project, with different effective allowed paths. Please inspect the actual chat permissions rather than assuming that every chat in a project behaves identically. These findings do not establish that every UNC configuration fails or that other configurations cannot have persistence problems.

    1. Inconsistent path handling

    In a controlled diagnostic experiment, I removed the trailing separator from the test project's stored path in both the application JSON and its SQLite project record while the app was closed. After restarting, both stores and the application's project listing still showed the path without the separator.

    Nevertheless, a completely new chat created after those changes received both variants in its effective allowed write paths:

    \\server\share
    \\server\share\

    Its initial working directory was also without the trailing separator. Saving still failed. This is therefore not explained solely by the old state of an existing chat, and manually changing those two project records did not provide a workaround.

    The exact internal function responsible is not established. Whether adding the separator is intentional or accidental does not change the requirement: the application's path handling and persistence layer must agree on a representation they can save.

    2. Silent failure to save conversations

    • The application can display an ongoing conversation while its actual messages are not being saved.
    • An existing chat can retain its old history while silently losing all newly discussed decisions and instructions from the affected session.
    • A new chat can retain only initial technical records, without the actual prompt or reply.
    • Renaming can succeed even while message persistence fails. A successful rename is therefore not a reliable saving check.
    • I received no clear, actionable warning during this work that the conversation was not being saved.

    For one fresh test created after both project records were corrected, thread 01a130ca-556c-7041-9bf1-c22594c244e1, the logs recorded 21 directly attributed persistence failures on 2026-10-12, 15:45:39–15:45:54 UTC: 15 record, 4 materialize and 2 flush failures. The local transcript contained no actual user test message or assistant reply. These are log-event counts, not counts of lost messages. In the same interval there were separately 10 failures in an internal review session and 130 matching log events without a thread ID.

    Impact: lost work can also become execution based on outdated decisions

    This is a concrete operational risk in my actual workflow. I intended to work on ConsentManager today. An older chat in that same project is already a confirmed case where previous history survived but new conversation updates did not persist. The following sequence is a realistic consequence of that failure:

    1. An older chat contains the original design of a program. The user spends eight hours discussing defects, correcting the design and agreeing on a new implementation. Some earlier instructions are changed or explicitly withdrawn.
    2. The app gives no saving warning. In the evening, the user closes it, reasonably assuming that the day's conversation has been saved.
    3. The next morning, the user returns to the same chat and says: “Go ahead and implement what we agreed.” The day's discussion is missing, but the older history remains.

    The next authorized task may now be interpreted against decisions from a month ago, with the corrections and withdrawn instructions absent. Depending on permissions and approval settings, this could cause the agent to overwrite working code, apply an obsolete migration, delete files, or act on an old proposal to drop a database that the user later rejected.

    The potential damage goes beyond losing eight hours of discussion: later changes to code and data could be based on an outdated account of what the user actually decided. Without a warning, neither a familiar chat title nor the presence of old messages gives the user a reason to suspect that the context is incomplete.

    The loss of recent conversation updates is confirmed. The subsequent damage to code or databases is a real risk arising from that confirmed failure; it did not occur in my case. It should not take a destructive incident before this is treated with the appropriate urgency.

    My own practical loss was limited because I maintain a separate, automatically updated project journal outside the chat. That preserves important decisions and lets me reconstruct the work. Ordinary users cannot be expected to build a separate persistence system or inspect SQLite databases and logs to trust their conversation history.

    Requested action

    • Please triage this urgently as a critical risk to conversation and project data. It prevents me from trusting the app for normal work.
    • Fix the inconsistent path handling and test UNC share roots with and without trailing separators, UNC subdirectories, local directories, new chats and continued work in older chats.
    • Independently fix silent persistence failure. The first failed save must produce a clear, persistent warning identifying the affected chat and the unsaved state.
    • Provide a supported way to preserve the currently visible unsaved conversation, and make incomplete history apparent when a chat is resumed.

    The warning and data-preservation behavior must not depend on fixing this particular UNC trigger. Conversation storage can fail for other reasons too.

    DO NOT USE in project allowed FOLDERS "\\server\share" only. This will break old and new chats in this project

    Related support case: 17065801. Tests used local projects and a native Windows agent. The inspected conversation files are stored locally on C:, not on the UNC share.

  15. SilverHandCZ commented on Oct 14, 2026

    @SilverHandCZ

    Update: three archived chats cannot be deleted; deletion errors provide no actionable cause

    I have confirmed an additional problem with managing existing chats: three archived chats across two projects cannot be permanently deleted.

    I removed the other archived chats individually after encountering deletion failures. Some successfully deleted chats also had problematic UNC paths, so this is not a simple distinction between chats with and without those paths.

    The Settings UI reports failure without explaining the cause. For one remaining chat, the official CLI repeatedly failed:

    codex delete 01a08bd4-df6e-7cb3-a18d-771d5640197f --force
    
    Error: failed to delete session

    Exit code: 1. Debug logging and RUST_BACKTRACE=1 added a stack trace but no actionable underlying cause. The available logs did not explain the failure, and the archived chat and transcript remained present. The latest reproduction was 2026-10-14, 09:25:52–09:25:56 UTC.

    The affected chat’s current project settings already used a specific subdirectory. Its historical permission records still contained two UNC share roots. In a backed-up diagnostic experiment, those roots were removed from the historical technical records while preserving the messages. Their removal was verified, but both UI and CLI deletion still failed with the same error.

    Therefore, deletion failure is confirmed, but a shared root cause with the UNC persistence issue is not established. Removing the historical UNC entries did not resolve it.

    The original saving issue also still reproduces after updating to Codex Desktop 26.1007.71326, build 20398, runtime 0.162.0-alpha.17.2: a new UNC share-root test chat did not save its message or reply and logged permission path cannot be represented losslessly.

    Please investigate:

    • Why these archived chats cannot be deleted through the supported UI and CLI.
    • Why the deletion error does not identify the underlying failure or a recovery action.
    • How users can safely remove affected archives without manually modifying local history or databases.
    • Whether bulk deletion can report individual failures and continue processing other chats, instead of stopping at the first unhandled error.
  16. Lostriverdelta commented on Oct 14, 2026

    @Lostriverdelta

    Additional native-Windows reproduction, verified locally on 2026-10-15 (JST).

    Environment

    • Codex Desktop 26.1007.71326, build 20398, production channel. The desktop update checker reported up_to_date at the time of testing.
    • Native Windows / PowerShell; working directory D:\.
    • Effective task policy: managed/restricted, with :root read and a D:\ workspace write grant.

    Browser startup failure
    After resetting the supported browser runtime, the first await cua.getState() call failed before returning any browser/tab state:

    node_repl kernel exited unexpectedly
    kernel_status: exited(code=1)
    kernel_stderr_tail:
    Error: failed to prepare MXC sandbox: permission path cannot be represented losslessly
    reason: stdout_eof
    

    Controlled comparison using the same installed, bundled CLI
    MXC was selected explicitly with windows.sandbox="mxc"; networking was disabled. The test only launched a fixed-output command.

    Permission profile Result
    :minimal = read plus one ordinary D-drive project subdirectory granted read Success: MXC_SCOPED_OK
    Identical profile, changing only that subdirectory grant to D:/ = read Failure: permission path cannot be represented losslessly

    A further test kept the actual working directory at D:\ while granting only necessary individual folders. The app's bundled Node executable launched and printed NODE_SCOPED_READY. This distinguishes a drive-root permission entry from the working directory alone.

    A temporarily saved narrow permission profile also passed the Node startup test. That diagnostic configuration was subsequently removed, and the original config was restored byte-for-byte. We did not establish end-to-end Chrome recovery, and are not presenting a single-project whitelist as a general solution.

    An additional, separate MXC failure involving enumeration of an unrelated locked BitLocker drive is tracked in #50915. These two failures should not be conflated.

    Please add regression coverage for valid Windows drive-root permission entries and identify the rejected entry in sanitized diagnostics. A supported correction should preserve the user's chosen access boundaries and work across projects, without requiring repeated browser restarts or project-specific recovery profiles.

    No credentials, full configuration, browser contents, conversation history, or personal directory names are included.

  17. MirceaStefanescu commented on Oct 18, 2026

    @MirceaStefanescu

    Follow-up to my earlier report: the native internal-browser helper still fails on 2026-10-18.

    • Windows 11 25H2, build 26200.9457.
    • Native application updater: version 26.1013.40934, build 20770, production channel, up_to_date. Windows package: OpenAI.Codex 26.1013.4894.0, x64.
    • Effective task policy is managed/restricted with native approval review. I have not changed that policy or disabled protection to test this.
    • The native tool previously returned failed to prepare MXC sandbox: permission path cannot be represented losslessly. Supported CUA and Node REPL kernel resets completed, but subsequent cua.getState() initialization still returned trusted Node process exited unexpectedly; kernel reset, rerun your request, before any tab state was available.
    • The current-day sandbox log records MXC availability and selection. It does not identify the rejected permission entry. The earlier CLI probes reported in this issue passed, but did not prove native browser-helper recovery; I have not repeated them unchanged.
    • The four Windows startup variables discussed around PR Preserve Windows startup variables and MXC child environment defaults #54027 are present, ASCII, and refer to existing paths in the diagnostic PowerShell process. This does not establish the native helper's environment. The PR changes environment transport; I cannot establish that it fixes the permission-path round trip or is included in this Desktop build.

    Could maintainers provide a supported diagnostic that identifies the failing permission entry/index and conversion stage, or the Desktop release containing a confirmed fix? raw_path_from_uri in the current codex-rs/protocol/src/permissions.rs emits this error when conversion back to PathUri differs, but the failing path in this native helper remains unknown. Related native-helper report: #49370.

    No private paths, credentials, browser session data, or raw logs are attached. No runtime patching, custom permission profiles, protection changes, or external-browser fallback were used.

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

    appbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions