Repository navigation
Description
What version of the Codex App are you using?
Windows MSIX package OpenAI.Codex_26.1103.4239.0_x64. The Desktop logs report 0.167.0-alpha.3.2 for the local app-server and 0.167.0 for the remote Ubuntu app-server.
What subscription do you have?
Not provided.
What platform is your computer?
Windows 11 x64, build 10.0.26200.9711, with Ubuntu 24.04 LTS on WSL2.
What issue are you seeing?
On the first launch after updating to 26.1103, Desktop automatically switched from legacy WSL mode to the remote WSL flow. The migration logged stage=completed and remote Ubuntu connected, but several existing local chats created in legacy WSL mode failed to open. Desktop tried to resume them through the Windows-native local backend, which rejected saved /mnt/c/... workspace roots. File links in affected chats also failed to open.
I created a new troubleshooting chat while the local backend was running in Windows mode. It worked at the time. I then restored legacy WSL mode and restarted Desktop. The affected older chats I checked reopened from their original sidebar entries, but the troubleshooting chat now failed with “Unable to load messages.” The Linux backend rejected the Windows workspace root saved by that chat. Its transcript was still on disk. In an isolated app-server test, the same chat ID resumed and all four turns were readable when I supplied the equivalent Linux working directory and runtimeWorkspaceRoots.
After switching back, the composer shows a yellow banner saying that legacy WSL mode is active and inviting me to open WSL connections. Clicking it navigates to /settings/connections/wsl according to the Desktop log, but the visible settings page selects the SSH tab and lists only SSH hosts. There is no WSL tab or Ubuntu connection to select.
What steps can reproduce the bug?
- On Windows, use Desktop in legacy WSL mode with Ubuntu. Create and use a local project chat with a Linux-form workspace root, for example
/mnt/c/Users/<user>/Desktop/<workspace>. - Update to Desktop 26.1103 and relaunch on an installation enrolled in the remote WSL migration. Confirm that the migration completes and the remote Ubuntu app-server connects.
- Open the existing chat from its original sidebar entry. Observe that it fails to resume with
-32602because the Windows-native local app-server rejects the saved WSL workspace root. - While the local app-server is Windows-native, create and use a new local chat with the same workspace expressed as a Windows path.
- Restore legacy WSL mode (
runCodexInWindowsSubsystemForLinux = true) and restart with that mode retained. In my test I also prevented automatic migration from rerunning on that launch. - Open both original chats. The pre-migration chat reopens, while the chat created in step 4 fails because its saved workspace root is now invalid on the Linux backend.
- Click the composer's Open WSL connections banner. Observe that Settings shows the SSH list and offers no WSL connection.
What is the expected behavior?
After migration and after switching back, existing chats should open and continue from their original sidebar entries, with file links resolving in the correct environment. Desktop should route a chat to a compatible backend or translate its saved workspace roots before calling thread/resume. If the migration cannot preserve access, Desktop should keep the previous mode and explain why. The banner should open a usable WSL connection screen or explain why WSL connections are unavailable.
Additional information
Selected Desktop log lines below are in UTC. Identifiers and personal paths have been replaced with placeholders, and unrelated fields have been omitted.
First launch after the update
2026-11-07T02:13:15.884Z [wsl-migration] enrollment=rollout stage=attempted
2026-11-07T02:13:16.216Z [wsl-migration] stage=completed targetDistroCount=1
2026-11-07T02:13:25.622Z [AppServerConnection] currentVersion=0.167.0 hostId=remote-wsl:Ubuntu
2026-11-07T02:14:21.940Z [AppServerConnection] conversationId=<pre-migration-chat> errorCode=-32602 method=thread/resume
2026-11-07T02:14:22.162Z [electron-message-handler] Failed to resume conversation conversationId=<pre-migration-chat>
cannot restore workspace root `/mnt/c/Users/<user>/Desktop/<workspace>` on this host: path is not absolute: /mnt/c/Users/<user>/Desktop/<workspace>. Pass `runtimeWorkspaceRoots` with valid local paths or an empty list.
After restoring legacy WSL mode
2026-11-07T03:22:43.795Z [AppServerConnection] conversationId=<windows-mode-chat> errorCode=-32602 method=thread/resume
2026-11-07T03:22:43.877Z [electron-message-handler] Failed to resume conversation conversationId=<windows-mode-chat>
cannot restore workspace root `C:\Users\<user>\Desktop\<workspace>` on this host: path is not absolute: C:\Users\<user>\Desktop\<workspace>. Pass `runtimeWorkspaceRoots` with valid local paths or an empty list.
2026-11-07T03:23:07.979Z [electron-message-handler] ownerRoutePath=/settings/connections/wsl
2026-11-07T03:29:13.889Z [AppServerConnection] conversationId=<pre-migration-chat> errorCode=null method=thread/resume
Related reports:
- #30288: the October 5 follow-up reports the same resume error after WSL discovery fell back to Windows. In this report, the switch followed a completed automatic migration.
- #38781: existing WSL chats fail after switching to Windows-native execution.
- #36608: Windows-created chats retain incompatible workspace paths after switching to WSL.
Activity
YutoMinami commentedon Nov 8, 2026
Same bug in the opposite direction, and I found where the value actually lives.
The mirror case
I'm on WSL mode (
runCodexInWindowsSubsystemForLinux = true). Chats created inWindows-native mode fail to resume with the identical error:
So it is symmetric: whichever mode a chat was created in, switching away from it makes
that chat unopenable. Of my 46 threads, 31 were created in Windows mode and 15 in WSL
mode, and only one set works at a time.
Where the bad value comes from
It is not
.codex-global-state.json. I rewrote every Windows path inthread-workspace-state-v1:*(including itsruntimeWorkspaceRoots),heartbeat-thread-permissions-by-id,thread-workspace-root-hints,thread-writable-rootsandthread-projectless-output-directories— 75 values — and theapp regenerated all of them on next launch. Updating
threads.cwdinstate_5.sqlitealone did not help either.The real source is the rollout file (
~/.codex/sessions/.../rollout-*.jsonl.zst):runtime_workspace_rootsthere is exactly the value the error names. The desktop statefiles are derived from this at resume time, which is why editing them is futile.
The asymmetry that makes it a path-conversion bug
Not all roots fail. In WSL mode:
\\wsl$\<distro>\home\<user>\<repo>/home/<user>/<repo>\\wsl.localhost\<distro>\home\<user>\<repo>C:\Users\<user>\Documents\Codex\...D:\<user>\Documents\<folder>\...UNC WSL paths are converted; drive-letter paths are not. That looks like the same gap
as #38781 and #42211, where
/mnt/dround-trips intoC:\mnt\d/C:\d\....Workaround that worked
Rewriting the path-bearing structural records in the rollout restores resume. I left
message bodies untouched so the transcript is unchanged — only these line types:
session_metaturn_contextevent_msgwithpayload.type == "thread_settings_applied"world_stateresponse_item/messageonly when it contains<environment_context>(theinjected block carries
<workspace_roots>)Conversions applied to every path string in those records:
Files are zstd-compressed, so decompress with
zstdcat, rewrite line by line, recompresswith
zstd. I also setthreads.cwdinstate_5.sqliteto the matching Linux form.After doing this to 35 rollouts with the app closed: every previously unopenable chat
resumes, and moving chats between projects works again.
This is unsupported file surgery — back the files up first. It also only fixes one
direction; the same chats would need the inverse treatment to work in Windows mode again.
A built-in migration, or converting drive-letter roots the way UNC roots already are,
would remove the need for any of this.
Environment
26.1103.32239(MSIX), Windows 1110.0.26200, Ubuntu on WSL2runCodexInWindowsSubsystemForLinux = trueBruno-HiFi commentedon Nov 20, 2026
Subject: Codex Desktop on Windows — Unable to migrate existing projects and chat history from legacy WSL to the new WSL connection
Hello OpenAI Codex Support Team,
I am using Codex Desktop on Windows 11 with Ubuntu WSL2.
Following the deprecation of the legacy WSL agent environment, I successfully configured the new WSL: Ubuntu connection. New projects work correctly, and Codex can access both the Ubuntu filesystem and my existing project directories on the Windows C: drive.
However, I cannot migrate my existing projects (OpenWRT, Roon, and Synology) to the new WSL connection while preserving their chat history and project associations.
What I have tried:
Created a new project using the WSL: Ubuntu connection and selected the same directory as my existing OpenWRT project.
Confirmed that the new project can access the original files.
Found that the new project has no previous chat history.
Checked the settings of the original OpenWRT project. They allow me to manage source folders but do not provide an option to change the project's connection or execution environment to WSL.
Attempted to open older conversations and encountered errors, including:
cannot restore workspace root ... on this hostConnection for host ID local not foundAfter restarting Codex, some older conversations became accessible again, but the migration issue remains unresolved.
I have backed up my Windows Codex data, including session files and automation files. I would like to avoid manually modifying SQLite databases or internal application state.
My questions are:
My desired outcome is to use a single Ubuntu WSL2 environment for all my existing projects, while preserving their conversations, automations, and project configurations without creating duplicate projects.
This issue may be related to:
#60054
Could you please provide the recommended migration procedure or confirm whether this functionality is currently unsupported?
Thank you for your assistance.
kami9811 commentedon Nov 21, 2026
I reproduced this on Windows Desktop
26.1117.4957.0with the bundledcodex-cli 0.171.0-alpha.13and Ubuntu on WSL. In this case the WSL migration stopped atstage=blocked. After I chose Set up later, the Desktop log recordedreason=unsupported_data. The log showed both linked and multi-folder projects, withsyncedAutomations=false. I couldn’t isolate which project property triggered the block.17 of 17 affected chats reopened under their original IDs after the following check with the Windows app-server:
thread/resumefor each chat without overriding its workspace. All 17 calls failed withcannot restore workspace rooton a saved/home/...path.cwdand every entry inruntimeWorkspaceRootsto the corresponding existing Windows path. The saved lists included WSL filesystem roots (mapped to\\wsl$\Ubuntu\...) and, in some chats,/mnt/c/...roots (mapped toC:\...).thread/turns/listreturned history. The recovery used the app-server API without manually editing SQLite or rollout files.One additional chat showed why a successful
thread/resumealone is insufficient as a regression check. It opened with a nonexistentC:\home\...working directory. After I supplied the actual\\wsl$\Ubuntu\home\...path and the corresponding roots, a fresh process resumed that same chat with the correct directory.A Desktop regression test could cover choosing Set up later with a saved multi-root WSL chat, reopening its original sidebar entry, restarting, and opening it again. On the second open, I’d check that the original thread ID still returns history and that the working directory and every workspace root resolve to the original folders.