[Windows][WSL] Automatic migration leaves projects with no chats despite intact Windows history
Environment
- Codex Windows package
26.1117.3838.0 - Ubuntu via WSL
- Observed on November 20, 2026
Steps to reproduce
- Use the Windows desktop app with the legacy WSL agent environment and existing project chats.
- Update and relaunch on an installation that receives the automatic migration to WSL remote connections.
- Expand the migrated projects after
WSL: Ubuntuconnects.
Actual behavior
Four projects were switched to WSL: Ubuntu. The project entries remained visible and the connection showed as connected, but the projects showed “No chats” in both the ChatGPT and Codex views.
The desktop log recorded [wsl-migration] with stage=completed and singleFolderProjectCount=4. For one affected project, I matched 47 historical project assignments to readable Windows session files. Of those, 36 were in the active sessions directory and 11 were in the archive. The Ubuntu session database used by the new connection contained none of those 47 thread IDs, and the old local project assignments were absent from the current desktop state.
Expected behavior
Existing active chats should remain accessible under the project after the automatic migration, with archived chats retaining their archived status. If the migration keeps the chats on the original host, the desktop app should preserve a way to find them through the project or provide a supported recovery flow for installations that have already migrated.
Related to #60054, which reports old chats failing to resume after the same type of migration. The symptom here is an empty project chat list despite the original transcripts being readable on Windows.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #61598
Powered by Codex Action
Your 47 readable transcripts and the absence of all 47 IDs in the Ubuntu database give a precise way to check where recovery is possible. On the same Windows package (26.1117.3838.0), my old WSL SQLite index still held the thread IDs, but the Ubuntu connection was using a fresh index.
If you still have a pre-migration index, I'd start by looking for one of the 36 active IDs and one of the 11 archived IDs in a copy of that index. For rows that exist there, check whether their rollout_path resolves to the corresponding transcript on the WSL side. My index recovery script and dry-run instructions report how many paths can be rewritten and how many transcript files would still be missing. The dry-run leaves the destination index uncreated.
There's a separate constraint in your report: my migration stopped before it removed the old project assignments. I could use those mappings to restore the sidebar. Since your migration completed and those mappings are gone from the current state, my result only supports restoring a known thread from a surviving index. Reconstructing which chats belonged to which project would need another source, such as a pre-migration desktop-state backup.
A follow-up to the question about project assignments: the author of #62766 has since documented a recovery on your exact Windows package, 26.1117.3838.0. Their migration logged stage=completed with projectsMigrated=true and threadAssignmentsMigrated=false. A new chat appeared in the correct Ubuntu project even though its WSL database row also had a null project_id. What distinguished it from the old chats was a Desktop-side remote project assignment and a matching WSL host entry.
That gives you a control for one of your 47 known thread IDs. Once the WSL app-server can read that thread after a restart, compare its entries in a copy of thread-project-assignments and thread-project-membership-host-ids with a new chat in the same Ubuntu project. The other reporter verified both steps and recovered 12 main chats and 4 side chats. They didn’t report testing archived status, so I’d keep one of your 11 archived IDs as a separate check.
I can add a verified result for archived chats. On Windows 11 Pro 25H2 x64, WSL 2 / Ubuntu 24.04.3 LTS, my migration also logged stage=completed under Windows package 26.1117.3838.0.
Before the update, one project had exactly 2 active chats and 280 archived. After migration, its Ubuntu project listed 318 chats. None of those 318 IDs matched the 280 I had archived. The two active conversations I expected were still present on Windows.
During recovery, I restored the original IDs, saved titles, and archive status, and separately archived the 318 entries from the other history. Even after Ubuntu had the correct archive state, Desktop’s pinned project still listed 310 archived chats. Re-archiving one made it disappear, then another took its place.
After reconciling those stale sidebar entries through the app, I verified that all 280 originally archived IDs remained archived and that the two original active chats opened from their project. For a migration test, I’d check both what Settings → Archived chats contains and what the expanded project actually displays.
How I recovered my project chats, saved titles, and archive status
If your WSL project suddenly shows “No chats,” or a chat you renamed now shows the opening words of your first prompt, one thing you can check before changing anything is a backup copy of %USERPROFILE%\.codex\session_index.jsonl. I searched for a title I remembered. The name I had chosen was still there, along with the original thread ID. That let me find the transcript and follow the same conversation through the recovery.
I recovered all five chats that had been active across my three WSL projects. Here’s what I found on my machine.
-
The migration reported success. On November 21 at 14:02 UTC, Desktop
26.1117.31558(Windows package26.1117.3838.0) logged[wsl-migration],singleFolderProjectCount=3, andstage=completed. A minute later, Desktop26.1117.41037(package26.1117.4957.0) started. I was on Windows 11 Pro 25H2 x64, build26200.9711, with WSL 2, Ubuntu 24.04.3 LTS, and ChatGPT Pro. Both app-servers reported0.171.0-alpha.13. -
The old and new project lists contained different conversations. For one project, the pre-migration database under
~/.codex/sqlite/recorded 2 active chats and 280 archived. The new Ubuntu project contained 318 chats, with zero thread IDs in common with the original 282. The Windows title index still contained saved names for 269 of the 282. One active Windows chat also had a newer turn with 15 history items, which I was able to preserve. -
I backed up both stores and tested the smallest project first. I restored the transcripts and turn history in Ubuntu with their original thread IDs, saved titles, Linux working directories, and archive flags. I checked that the Ubuntu app-server could actually read the conversations. For the two active chats in my largest project,
thread/turns/listandthread/items/listreturned the expected 3 turns and 180 items for one, and 34 turns and 1,192 items for the other. -
Desktop also needed the project assignments. In the Windows
.codex-global-state.json,thread-project-assignmentsassociated each thread with its project, andthread-project-membership-host-idsassociated it withremote-wsl:Ubuntu. Two of my project folders had the same final directory name, so I used the full Linux path and project ID to tell them apart. -
I checked the expanded sidebar after restarting. During recovery, Ubuntu already marked the old chats archived, but Desktop’s pinned project still offered 310 of them. Re-archiving one made the next one appear. After reconciling those entries through the app, the pinned project showed my two original active chats and the new chat I was using for recovery. All 280 originally archived IDs were still archived.
One related iPhone finding: during recovery, pairing with a separate WSL CLI server let my phone list the chats, but opening one said “Another Codex session is using this task.” I stopped that separate service and enabled phone control on Desktop’s existing Ubuntu connection under Settings → Connections → WSL. I then confirmed that messages in the same running chat appeared live on both devices.
What I’d most like the migration to verify before it reports stage=completed is whether an original active chat opens from its project with its saved title and history, and whether an original archived chat stays out of that project’s sidebar. Both checks would have caught what happened here.
I faced the same issue after migrating my Codex projects from Windows to WSL. Some older chats were missing, while others failed to resume because of old workspace paths.
I managed to recover my conversations by migrating the thread records and sessions to WSL, correcting the workspace metadata, and removing duplicate Windows registrations after verifying the WSL copies.
I've shared a generic Python workaround here: codex_wsl_recovery_public_v2.zip
It worked in my environment, but I haven't tested it across different Codex versions. Please take a backup before using it, as it modifies Codex's internal SQLite databases.
Hope this helps anyone facing the same issue.
I can't resist the urge and I just have to comment about how this is absolutely insane to me. Like how do they not test features before shipping them out. This is second time they've completely broken the app by shipping some update. Projects losing all chats due to an update? Damn, who would've thought there should be some test to prevent this... Or you know, maybe even just one singular person or agent should test a major new update before it's shipping out?
The other instance I'm referring to is from not too long ago. In that screw up their update made it so that you could no longer create new projects at all. And that regression was in the app for weeks and weeks before they fixed it.
Can't second this enough. My chats were duplicated AND non-functional and my projects were all empty after this "migration," which decided to intentionally deprecate critical WSL functionality in the first place.
@RickyLoynd, thanks for checking the archived IDs. All 280 staying archived while the pinned project still offered 310 archived chats explains why checking the database alone would have missed the problem.
@LordKahra, for one pair that looks duplicated, I'd first compare the original thread IDs on read-only copies of the Windows and Ubuntu stores. For each ID, follow its rollout_path on that host, check for a .zst copy as well, and compare the last readable turn. Two copies can share a title while holding different histories. If Ubuntu can read the intended thread but its project still looks empty, compare its Desktop project and host assignments with a new working chat in that project.
In our November 23 follow-up, we checked all 60 Windows and 779 WSL index entries against the transcripts in our snapshot. Every entry resolved, including 342 compressed transcripts. That check established file coverage. For the UI, I'd also verify that an original active chat opens from its project and that an original archived ID appears in Settings → Archived chats while staying out of the expanded project. Your results show why those checks matter separately.
Same symptom on a newer build, primary runtime 26.1123.915.0 (WSL2, Ubuntu 22.04): the migrated projects showed "No chats" and the new WSL: Ubuntu connection started out logged out (no auth.json in the Ubuntu ~/.codex). The original history (~1,100 rollouts) is still intact in %USERPROFILE%\.codex.
One more thing I haven't seen mentioned: old threads opened from Recents/Pinned still resume, but on the Windows host with their original Linux cwd, so every command fails:
Failed to create unified exec process: CreateProcessWithLogonW failed: 267(invalid directory: the cwd is/home/<user>/...)- the fallback runs in PowerShell (
'uname' is not recognized...) wsl.exe --exec ...fails because the Windows sandbox account has no registered distributions
So the old chats look usable but can't actually run anything in their original WSL environment. Before the migration, these threads ran in WSL, with CODEX_HOME pointing at the Windows .codex through /mnt/c.