Skip to content

Windows: new Work chats fail in WSL mode but work in Windows Native #56547

Closed

Description

@yasnish

What version of Codex CLI is running?

0.163.0-alpha.11.2 — bundled with Windows desktop package 26.1016.8622.0

What subscription do you have?

Plus

Which model were you using?

GPT-6.1 Sol

What platform is your computer?

Windows x64 with WSL2, Ubuntu-24.04

What terminal emulator and version are you using (if applicable)?

ChatGPT desktop app, Work mode

Codex doctor report

Not collected. Diagnostic logs were uploaded through in-app Bugs feedback.

What issue are you seeing?

Every new Work chat fails with:
“Hmm...something seems to have gone wrong.”

Browser Work works on the same account.
Switching the desktop agent to Windows Native and restarting makes Work function.
Switching back to WSL reproduces the error.

Steps to reproduce:

  1. Enable runCodexInWindowsSubsystemForLinux.
  2. Fully restart the desktop app.
  3. Create a new Work chat and send a short message.
  4. “Hmm...something seems to have gone wrong.” appears.

Switching to Windows Native and restarting makes Work function.
Switching back to WSL reproduces the failure.

What steps can reproduce the bug?

Uploaded thread: 01a1673b-2303-7da2-9849-9d100fa60dbf

What is the expected behavior?

Work chats should function with the agent running in WSL, including access to development tools and project scripts inside WSL.

Additional information

The local Work executor successfully connects to rendezvous.

Initially, logs showed openai-primary-runtime reserved-source rejection and primary_runtime_restore_failed.

Temporarily aligning XDG_CACHE_HOME with the Windows-hosted runtime cache made marketplace registration succeed, but the Work chat error persisted.

Windows Native alone is not a sufficient workaround: WSL commands from that environment encountered Wsl/E_ACCESSDENIED, blocking existing project scripts.

Related reports: #51905 and #45031.

Activity

  1. added
    bug
    on Oct 23, 2026
  2. added
    app
    windows-os
    on Oct 23, 2026
  3. github-actions commented on Oct 23, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. afonseca08 commented on Nov 6, 2026

    @afonseca08

    I'm experiencing the same issue when attempting to start a new Work chat in the ChatGPT desktop client on Windows with WSL enabled.

    When I create a new Work chat and submit the first prompt, the application displays:

    Hmm...something seems to have gone wrong.

    Environment:

    • OS: Windows 10
    • Execution environment: WSL2 (Ubuntu)
    • Client: ChatGPT desktop
    • Version: 26.1103.31037

    This appears consistent with the behavior described in the original report. I haven't yet tested switching to Windows Native mode.

    Adding my experience here to confirm that the issue is affecting additional users.

  5. SmartSolutionsDev777 commented on Nov 11, 2026

    @SmartSolutionsDev777

    I'm experiencing the same symptom with the Windows desktop app configured to use WSL.

    Environment:

    • Desktop package: OpenAI.Codex 26.1106.6628.0
    • Desktop-connected app-server: 0.167.0-alpha.4.1
    • Windows x64, build 26300.9818
    • WSL2, Ubuntu 26.04

    Additional observations:

    In my case, the error appears while opening a new Work chat from an existing project's UI, before I manually send its first message. Restarting the app did not resolve it.

    However, asking the agent in an existing chat to create/open another chat worked. The corresponding thread/start RPC returned successfully. This was an alternative creation route, not a switch to Windows Native.

    Correlated diagnostics — November 11, 2026, UTC:

    19:45:00.580  Local Work executor connected to rendezvous
    19:45:12.207  POST /backend-api/f/conversation/prepare -> 200
    19:45:15.480  prepared local Work session route
    19:45:16.592  POST /backend-api/conversation/init -> 200
    19:45:17.405  POST /backend-api/f/conversation -> 500
    19:45:17.408  canceled local Work session route
    19:45:48.694  Executor observation records continued connectivity
    19:47:01.984  Alternative route: thread/start returned successfully
    

    An earlier attempt at 19:13:09.517 UTC returned HTTP 500 at the same endpoint. The inspected breadcrumbs contain no response body or server request ID.

    The reserved-marketplace errors described in this issue are also present, but their connection to HTTP 500 is unconfirmed.

    An earlier executor reconnect received 401 / expired, then successfully reconnected four seconds later. No explicit token-refresh failure was found around the reproduced HTTP 500, although another authorization problem cannot be ruled out.

    I had not created new Work chats through the desktop UI during the preceding days, so November 11 is the observation date, not a confirmed regression date. Browser and Windows Native comparisons have not been performed on this installation.

    Could you investigate the failing project Work initialization request and compare it with the successful app-server task-creation route?

  6. Buzzology commented on Nov 12, 2026

    @Buzzology

    Same problem when creating any new chat, also with the Windows desktop app configured to use WSL.

    UPDATE: I ended up getting Codex to do some digging and it found the following issue + solution:

    We investigated new chats failing in the Windows Codex app, despite restarting and signing in again.
    
    We found a likely Windows/WSL compatibility bug in version 26.1106.6628.0. The new Work-mode chat system launches a Windows executor even with WSL enabled. That executor rejects Linux project paths such as /home/user/repos/.... Existing chats and direct tests through the WSL engine still worked.
    
    The workaround applied was to switch the app back to its existing Codex chat mode, keeping WSL enabled. In %USERPROFILE%\.codex\config.toml, under [desktop], we changed conversationDetailMode from "STEPS_PROSE" to "STEPS_COMMANDS".
    

    After restarting it now works for me again.

  7. SmartSolutionsDev777 commented on Nov 13, 2026

    @SmartSolutionsDev777

    Update — November 13, 2026: new chats are now being created normally on my installation, with WSL still enabled.

    I did not manually apply the configuration workaround mentioned above. On inspection, the Windows-side configuration now contains:

    [desktop]
    conversationDetailMode = "STEPS_COMMANDS"
    runCodexInWindowsSubsystemForLinux = true

    The option appears to have switched automatically through the application. However, we do not have a recorded previous value or a log identifying which component wrote this setting, so the automatic switch is an inference rather than a confirmed cause.

    The desktop package and app-server versions are unchanged from my earlier report: 26.1106.6628.0 and 0.167.0-alpha.4.1. Today's logs show three successful thread/start responses.

    There was a runtime installation attempt during the same startup (all times UTC):

    • Approximately 08:31:55: runtime installation began, inferred from its reported duration.
    • 08:32:02: the configuration file was modified. This is the timestamp of the whole file, not proof that this particular option changed at that instant.
    • 08:37:48: runtime bundle 26.1112.11011 reported outcome=installed.
    • 08:37:51: post-install configuration failed with Failed to sync primary runtime bundled plugin marketplace.

    A possible explanation is that application/runtime initialization changed the conversation mode to the working task-creation route. The timing is consistent with that hypothesis, but does not establish causality or successful activation of the new runtime.

    The reserved-marketplace errors continue even though new chats now work. This is a recovery observation on my installation, not confirmation that the original Work initialization issue has been fixed generally.

  8. yasnish commented on Nov 14, 2026

    @yasnish
    Author

    This is now working in my environment. I successfully created a new Work chat with WSL enabled, received responses, and ran commands inside WSL.

    I can no longer reproduce the issue, so I’m closing it.

  9. li86569917 commented on Nov 17, 2026

    @li86569917

    Still reproducible in Work + WSL — November 17, 2026

    This is an additional reproduction after the issue was closed. New ChatGPT Work chats still fail with the agent environment set to WSL. The affected user reports that Work is usable when the agent environment is Windows-native. That environment comparison is user-reported; no controlled request-payload comparison has been captured.

    Observed environment

    • Windows desktop MSIX package: 26.1111.2228.0.
    • Desktop-connected WSL app-server: 0.169.0-alpha.11.1.
    • runCodexInWindowsSubsystemForLinux = true.
    • Actual Work mode: conversationDetailMode = "STEPS_PROSE".

    1. Switching to Codex is not a fix for Work mode

    Setting conversationDetailMode = "STEPS_COMMANDS" selects Codex mode. Selecting Work in the UI writes STEPS_PROSE back, after which the failure reproduces. The requirement here is to retain both Work mode and WSL.

    2. Executor startup can fail before the user sends any message

    After restarting the desktop client, the first switch to Work can show:

    Local Work executor failed to start

    A correlated local startup failure was recorded on November 17 (all timestamps below are UTC):

    19:23:00.565  Local Work executor connected to rendezvous (attempt 1)
    19:23:10.749  Local Work executor startup failed (attempt 2)
                  ENOENT: no such file or directory, unlink
                  %APPDATA%/Codex/web/Codex/executor-plugins/codex-app-tools/.codex-plugin/plugin.json
    19:23:11.768  Automatic retry (attempt 3)
    19:23:17.382  Local Work executor connected to rendezvous (attempt 3)
    

    An earlier startup attempt also failed while unlinking the generated plugin's .mcp.json, then recovered on retry. Read-only inspection of the installed client shows that this plugin directory is copied/prepared before executor registration. Concurrent initialization or file replacement is a hypothesis, not an established cause.

    3. Successful executor reconnect does not restore new Work chats

    The user then created brand-new Work chats after the successful reconnect. The UI still displayed:

    Hmm...something seems to have gone wrong.

    The two latest attempts show:

    Time (UTC) Request Result
    19:27:28 Executor environment status 200
    19:27:31 POST /backend-api/conversation/init 200
    19:27:34 POST /backend-api/f/conversation 500
    19:27:42 Executor environment status 200
    19:27:44 POST /backend-api/conversation/init 200
    19:27:46 POST /backend-api/f/conversation 500

    The prepare requests also returned 200. Both local Work session routes were canceled after the failed conversation requests. Therefore, waiting for the executor to reconnect does not resolve the whole failure, and the transient plugin startup error should not be assumed to explain these later 500s.

    4. A separate, more specific registration error was also observed

    A brand-new blank Work chat previously displayed:

    conversation_execution_target installation is not registered
    

    At approximately 18:57:41Z, the executor environment status request returned 200, followed by a 400 from /backend-api/f/conversation at 18:57:42Z. A local comparison found matching account/user identifiers between the engine authentication and the current Work UI. No identifiers or tokens are included here.

    The retained logs do not contain the failing request/response bodies or a server request ID for the conversation failures. We have not established that Work submits a WSL installation ID instead of the desktop executor ID, nor that the 400 and later 500 errors share one root cause. Primary-runtime marketplace synchronization errors also occur; their causal relationship remains unconfirmed.

    Could the team investigate the Work-specific initialization and installation-registration path with WSL enabled, compare it with the Windows-native path, and clarify whether this issue should be reopened or tracked separately? A fix should preserve Work mode and WSL rather than switch the user to Codex mode.

    This comment was prepared at the affected user's request. It excludes credentials, account identifiers, private conversation contents, screenshots, and raw logs.

  10. smilish67 commented on Nov 19, 2026

    @smilish67

    Additional reproduction on November 19, 2026, with Windows desktop build 26.1111.2228.0. Work mode (STEPS_PROSE) and the WSL agent environment were enabled throughout the following two tests. We used the same account, project, and short prompt in two fresh Work chats. Changing only the Work composer’s run location changed the outcome.

    Work run location Observed result
    In the cloud, with access to this computer The Send button became active. At submission the client set conversation_origin=tpp and conversation_execution_target.kind=local_executor. The first turn failed with the generic error.
    On your computer The WSL app-server handled thread/start and turn/start. The turn completed and the assistant reply appeared.

    In an earlier failing run on this installation, the executor reconnected successfully, POST /backend-api/f/conversation/prepare returned HTTP 200, and POST /backend-api/f/conversation returned HTTP 500 at 2026-11-19 06:34:14 UTC. That HTTP trace and the two run-location tests above were separate runs.

    What we could narrow down locally

    • With the WSL agent selected, the desktop app launched the app-server through wsl.exe, while the local Work executor was a Windows-native codex.exe exec-server process.
    • In the failing cloud test, the submission target included a WSL-mounted working directory and 25 capability roots. All 26 directories existed in WSL. Passing those same path strings directly to the Windows directory API resolved none of them. The request builder preserved the WSL path format when serializing the target.
    • In an inspected failed turn, the target installation ID matched the active desktop Work executor’s locally persisted installation ID. We could not verify how the backend resolved that ID. The server’s error response body was unavailable.

    Could the team check how the cloud Work service matches the submitted target to the registered executor and how working directories and capability roots are normalized when the app-server runs under WSL but the executor runs on Windows? The path mismatch is a candidate explanation for the 500. We have not established which server-side check failed.

    For affected users on this build, selecting On your computer in the Work composer allowed us to keep both Work mode and WSL enabled and complete a new turn.

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

    appbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions