openai / openai/codex

[Windows][WSL] Switching Agent Environment from Windows Native to WSL hides existing project sessions

Open
#37,990 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug session windows-os
Dominant language
Rust
Stars
125k
Forks
19.5k
PR merge metrics
PR metrics pending

Description

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

26.803.81509

What subscription do you have?

ChatGPT Pro

What platform is your computer?

Windows 11 x64, WSL2 with Ubuntu

What issue are you seeing?

When I switch Codex App Settings → Agent Environment from Windows Native to Windows Subsystem for Linux (WSL), some existing sessions under my projects are no longer visible.

The sessions do not appear to be deleted. Pinned sessions remain visible, while some non-pinned sessions disappear.

If I pin an affected session, it becomes visible again.

I first noticed this issue about 2–3 weeks ago, and it is still present in Codex App 26.803.81509.

What steps can reproduce the bug?
  1. Open Codex App on Windows.
  2. Set Settings → Agent Environment to Windows Native.
  3. Open a project that already contains multiple sessions.
  4. Confirm that the sessions are visible.
  5. Pin one or more sessions for comparison.
  6. Change Settings → Agent Environment to Windows Subsystem for Linux (WSL).
  7. Open the same project again.
  8. Some previously visible non-pinned sessions are no longer shown, while pinned sessions remain visible.
  9. Pinning an affected session makes it visible again.
What is the expected behavior?

Changing the Agent Environment should change where the agent executes commands, but existing project sessions and conversation history should remain visible.

Existing sessions should remain accessible regardless of whether they were originally created using Windows Native or WSL.

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Windows desktop Settings → Agent Environment flow and the project-session listing used after switching between Windows Native and WSL. Reproduce the issue with pinned and non-pinned sessions, then trace why the same project shows different sessions; done means existing sessions remain visible in both environments and pinning is no longer required.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.