CRITICAL: Conversations disappear when closing VSCode or navigating away
Status Open
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 14 comments · opened Feb 8, 2026
Description
Conversations are completely disappearing and becoming unrecoverable when:
- Closing and reopening VSCode
- Navigating to the chat summary page and returning to a conversation
- Switching between conversations
The chat history is lost with no way to recover it. This makes it impossible to maintain long-running development sessions.
Reproduction Steps
- Start a conversation in Claude Code
- Work for a while (multiple exchanges)
- Close VSCode or navigate to chat summary page
- Reopen VSCode or return to the conversation
- Expected: Conversation history is preserved
- Actual: Conversation is gone, completely vanished
Impact
- Severity: CRITICAL - Work cannot be persisted across sessions
- Blocker: Prevents any meaningful development work
- Frequency: 100% reproducible - happens every time
Environment
- OS: Windows (win32)
- Date: 2026-02-08
- Branch: hdfc-skr-snapshot (finance_app)
Current Workaround
Users are forced to manually create git backups of entire conversation transcripts after each session, which is not a sustainable solution.
Expected Behavior
Claude Code conversations should persist automatically and be fully recoverable when:
- Reopening VSCode
- Returning from chat summary
- Switching between active conversations
This is a core feature that should "just work".
Showing cached comments. Read the full discussion on GitHub ↗
9 Comments
Please fix.
Yes, it's quite bad and very annoying.
We're experiencing this across multiple enterprise users on Windows/VSCode. Conversation persistence is a hard requirement for our workflows, and the current behavior is blocking adoption for longer development tasks. Happy to provide logs or assist with testing a fix if that would be helpful.
I am also experiencing this problem. I lose 1 chat every time i close Claude code. I believe it is the one I have worked on most recently, which is obviously extremely frustrating. I have also noticed that VSCode chats do not keep their name changes most of the time. Unsure if it is a symptom of the same problem, or a separate problem.
Same here. Very frustrating. I have just lost an important conversation after 2 hours of debugging. I am on Linux and it does not happen all the time.
I threw Claude at this and sorted out a fix by patching the vs code extension JS. Works for me on Windows 11, hopefully it works for others.
It adds a fallback path for history/session loading:
.jsonlfiles directly from~/.claude/projects/<mapped-cwd>/.<sessionId>.jsonl.ai-titlerecords (or first user text).Patch file:
~/.vscode/extensions/anthropic.claude-code-2.1.101-win32-x64/extension.jsReplace the entire
listSessions()method with:Replace the entire
getSession(K)method with:Then run:
Developer: Reload Windowor restart VS CodeSame Problem. Windows 11 with WSL editing in Linux Ubuntu. Using the IDE, not the terminal.
Been happening for ages. Very annoying.
same problem after 5 months of this PR.