Session visible in history but does not open after switching workspace
Open 💬 0 comments Opened Apr 23, 2026 by glaucojrcarvalho
What version of the IDE extension are you using?
26.5417.40842
What subscription do you have?
Plus
Which IDE are you using?
VS Code
What platform is your computer?
Linux 6.17.0-22-generic x86_64 x86_64
What issue are you seeing?
A previously created Codex chat session is visible in the sessions/history tree in VS Code, but cannot be opened after switching workspaces.
Actual behavior:
- Session is visible in the history tree
- Clicking it does nothing (no UI update)
- No error message is shown
Additional context:
- Session files exist on disk under:
~/.codex/sessions/...
- Example structure confirmed via:
ls -R ~/.codex/sessions
- This suggests the session data is not lost, but the UI fails to rehydrate/open it
What steps can reproduce the bug?
- Start a Codex chat in project/workspace A
- Switch to another project/workspace B
- Return to project/workspace A
- Open Codex sidebar and click a previous session
What is the expected behavior?
The selected session should open and display the conversation.
Additional information
Environment:
- OS: Ubuntu 24.04.4 LTS
- Kernel: 6.17.0-22-generic x86_64
- IDE: VS Code
- Codex extension version: 26.5417.40842
Additional finding:
After installing Codex CLI, I was able to recover and open the session using:
codex resume --all
This confirms:
- Session data is intact
- CLI can correctly resume it
- VS Code extension fails to open the same session
This suggests the issue is specific to the VS Code extension session restore/rehydration logic, possibly related to workspace scoping or session binding.
Notes:
- CLI workaround consistently works
- Issue occurs specifically after switching workspaces