codex icon indicating copy to clipboard operation
codex copied to clipboard

[Windows][WSL] Desktop 26.1117.3838.0 moves projects to WSL but leaves existing chats on the Windows host

Open MathPlusProject opened this issue 1 week ago • 4 comments

What version of the Codex App are you using?

Windows Desktop 26.1117.3838.0. Both the Windows and WSL app-servers reported 0.171.0-alpha.13 in the Desktop logs.

What subscription do you have?

ChatGPT Plus.

What platform is your computer?

Windows x64, build 22621, with Ubuntu 22.04 on WSL2. I used WSL through the Windows desktop app and had not separately installed the standalone Codex CLI inside WSL.

What issue are you seeing?

After the November 20, 2026 update, four existing WSL projects still appeared in the sidebar, but all showed No chats. Their 12 main chats were still visible in Recents, where I could read their history. Custom chat titles had fallen back to text from earlier messages. New chats created in the same projects worked in WSL.

The older chats had originally run in WSL. After the update, Desktop still opened their existing entries through the Windows local host. Some showed a path like C:\home\<user>\<project> even though the original session metadata still contained /home/<user>/<project>. Desktop logs also showed thread/resume failures with error -32602 when a saved Linux workspace root was rejected by the backend handling the request.

I also saw a new authentication prompt and an integrated-terminal workspace warning after the update. I have not established whether those symptoms share the same cause.

What steps can reproduce the bug?

  1. Use the Windows desktop app in its legacy WSL mode with existing projects and chats. My repositories are under the Ubuntu home directory.
  2. Update to Desktop 26.1117.3838.0 and let the WSL connection migration run.
  3. Open an existing WSL project. In my case, the project showed No chats, even though its older chats were still in Recents.
  4. Open an old chat from Recents and try to resume it. Check the host and workspace path.
  5. Create a new chat in the same project as a control. The new chat should show the expected WSL host and Linux working directory.

A full application restart did not fix the old chats. I have not reproduced this on a fresh installation.

What is the expected behavior?

The migration should preserve the original thread IDs, history, custom titles, project associations, and side-chat relationships. An existing chat should still open from its project and resume on the correct WSL host. If the migration cannot move a thread safely, Desktop should report that and provide a recovery option.

Additional information

What I found

  • The migration log reported stage=completed for four projects and one WSL distribution. Desktop then connected to remote-wsl:Ubuntu-22.04.
  • Desktop registered the projects on that WSL host, while the 12 older main chats remained on local with projectId=null. The saved migration state showed projectsMigrated=true and threadAssignmentsMigrated=false.
  • The Windows Codex store still held the original session files and title index. I also found four side chats with intact parent-thread IDs. The file data was recoverable.
  • I created a new chat in one affected project as a control. It appeared under the correct project even though the WSL app-server's thread row had a null project_id. Windows Desktop had a separate remote-project assignment for that chat containing the project ID and WSL host ID. That assignment was missing for the older chats.

These observations explain the host and project mismatch in my installation. I have not identified the exact client code path that left the migration incomplete.

Local recovery that worked

I backed up both Codex data stores and the Desktop user data, then tested one thread against an isolated WSL app-server. I stopped Desktop and both app-servers before applying changes to the real stores.

  1. I restored the original thread to the WSL Codex store with its original ID, account ownership, Linux working directory, and history. I verified that the WSL app-server could read its paginated history and list it after a restart.
  2. I restored the Desktop-side remote project assignment, using the freshly created chat in the same project as a control. This included the thread's entry in thread-project-assignments and its WSL host in thread-project-membership-host-ids. Earlier tests that copied the history, set only the WSL database project_id, or changed only the Desktop host hint did not restore the project entry.
  3. After validating the first thread from the Desktop project sidebar, I repeated the process for the remaining chats. I restored the original custom names from the saved title index. For histories spanning multiple rollout files, I verified coverage by turn ID. For side chats, I preserved their original parent IDs and the source rollout segments needed to resume them.
  4. My first batch carried over the read-only permissions used during isolated testing. I corrected the affected threads using the app-server's thread/settings/update with the :workspace profile and on-request approval policy.
  5. I opened fresh integrated terminal tabs from the recovered chats. The workspace warning disappeared in the fresh terminals.

Result

I recovered 12 main chats and 4 side chats across all four projects. The main chats retained their original custom titles, and the side chats retained their original parent relationships. I verified that a recovered chat opened from its project and ran in Ubuntu with the expected Linux working directory. I also verified that all 16 WSL thread records had write access to their corresponding project directories and on-request approval.

After verifying the WSL copies, I archived the Windows copies using an operation scoped to the Windows local host. The original Windows history and backups were retained.

This was a version-specific local recovery that involved internal state. A supported repair or automatic migration for existing WSL chats would still be helpful.

Related reports

The duplicate bot flagged #62735, which appears to cover the same project-empty symptom after WSL migration. #60054 describes the closely related case where older WSL chats are resumed on the Windows backend. Please link or consolidate these reports if appropriate.

MathPlusProject avatar Nov 20 '26 13:11 MathPlusProject

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

  • #62735

Powered by Codex Action

github-actions[bot] avatar Nov 20 '26 13:11 github-actions[bot]

The C:\home\… in your update is the detail I recognize from the same Windows package (26.1117.3838.0). On my installation the old chat still displayed its Linux workspace, but the Windows host had indexed the transcript and was handling the next turn. The workspace label and the terminal's current directory didn't tell me which host was actually running the chat. Opening old chats locally also appended settings events to the transcripts, so I wouldn't use a new turn in an original chat as the first diagnostic.

Since you want to preserve the conversations, one check you can do on a backup is to follow a single affected thread's saved project assignment. Does it still name a local project whose root is \\wsl$\<distro>\…? Is there also a remote project for that same distro and Linux path, with a different project ID? That pair was the clue for my empty sidebar. My assignment preview script reads the desktop state and counts those matches without opening any chat. It accepts CODEX_HOME_WIN pointing at the backup and defaults to dry-run.

I didn't verify recovery of custom titles or the terminal warning. Those are worth tracking separately even if the project grouping comes back.

rbnrong avatar Nov 20 '26 21:11 rbnrong

I independently hit this on November 21 and recovered all five chats that had been active across my three WSL projects.

Environment: Windows 11 Pro 25H2 x64 (build 26200.9711), WSL 2 with Ubuntu 24.04.3 LTS, ChatGPT Pro. Both the Windows and Ubuntu app-servers reported 0.171.0-alpha.13.

My log connects the two Windows package versions mentioned in these reports. At 14:02 UTC, desktop 26.1117.31558 (package 26.1117.3838.0) logged [wsl-migration] with singleFolderProjectCount=3 and stage=completed. One minute later, desktop 26.1117.41037 (package 26.1117.4957.0) started.

One chat I had renamed was still readable in Windows Recents, with no project assigned. Its transcript recorded /home/<user>/…, while the app listed C:\home\<user>\…. My iPhone showed the opening words of my prompt as the title. The name I had chosen was still in the Windows session_index.jsonl.

After backing up both stores, I tested the recovery on my smallest project. I restored the original thread IDs, histories, and saved titles in Ubuntu, then restored their project and WSL host assignments in Desktop. The chats opened from their original projects. I also verified that I could follow the same running conversation on desktop and iPhone through Desktop’s built-in WSL connection.

RickyLoynd avatar Nov 22 '26 05:11 RickyLoynd

I posted my full recovery steps and verification results, including where I found my saved chat titles, how I checked the archived histories, and how I restored live iPhone access.

RickyLoynd avatar Nov 22 '26 05:11 RickyLoynd