[BUG] Local session history disappears after VS Code restart
Open 💬 12 comments Opened Apr 28, 2026 by Harvindar994
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Sessions listed under Local → Session History are not persistent across restarts of Visual Studio Code.
While working, sessions appear correctly in the dropdown. However, after closing and reopening VS Code, some sessions disappear from the list even though they still exist and can be resumed manually using:
claude --resume <session-id>
This creates a major usability issue because session names are not reliable identifiers, making it difficult to locate and resume previous work.
---
Expected Behavior
- All previously created local sessions should persist
- Session history should remain consistent after restart
- UI should reflect all available sessions accurately
---
Actual Behavior
- Some sessions are missing from the Local session list after restart
- Sessions still exist and can be resumed via CLI
- UI does not reflect the actual session state
---
Environment
- VS Code Version: 1.113.0
- OS: macOS (Darwin arm64 25.0.0)
- Electron: 39.8.3
- Node.js: 22.22.1
- Claude Code Extension Version: (fill this)
---
Additional Context
- Issue appears intermittently (not always 100% reproducible)
- Affects workflow continuity significantly
- Requires manual recovery using session IDs
What Should Happen?
What Should Happen?
- All sessions created under Local → Session History should persist after restarting Visual Studio Code
- The session list should remain consistent and not lose entries across restarts
- Previously created sessions should be visible and selectable without requiring manual CLI recovery
- The UI should accurately reflect all existing local sessions at all times
Error Messages/Logs
Steps to Reproduce
Steps to Reproduce
- Open Visual Studio Code
- Start multiple sessions using Claude Code extension
- Confirm sessions are visible under Local → Session History
- Close VS Code completely
- Reopen VS Code
- Open the session dropdown again
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.121 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 12 comments on GitHub. Read the full discussion on GitHub ↗