You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VS Code Extension: Past Conversations not loaded after restart #12872
After restarting VS Code, the "Past Conversations" list in the Claude Code extension is empty, even though conversation transcripts are stored locally.
Evidence
Conversation data IS being persisted correctly:
Location: ~/.claude/projects/<project-path>/
Format: .jsonl files (one per conversation)
My project folder contains 300+ MB of conversation transcripts
So I was having the same issue and I figured out that when Claude coat up upgraded somehow it created a new doc Claude folder and post upgrade. New conversations were being saved inside of that and it found all of my old conversations in an old dot Claude folder important to note that seems like the file that contains the history is a hidden file. I asked Claude code to merge the two instances into the current one and it fixed. It all seems good now this is the second time I've had this happen with an upgrade.
Same problem but apparently claude --resume works on the immediate last conversation even in the VSC extension. Comments indicate that's expected to be CLI only but it works.
Confirming this issue on Windows 10. Troubleshooting steps taken:
VS Code updated recently; Claude Code extension is now v2.0.75, CLI is v2.0.76
After restart, VS Code extension shows empty "Past Conversations" with no UI errors
Verified conversation data exists in ~/.claude/projects/ as JSONL files (data present from about the past month only)
claude --resume CLI also only shows conversations from post-update (last ~14 hours)
LevelDB files exist in AppData\Roaming\Claude\Local Storage\leveldb dating back to July, but unclear if they contain conversation data
Extension settings contain no path configuration options
Data may still be on disk but neither VS Code extension nor CLI can currently access older conversations. CLI workaround suggests shared underlying indexing or data location issue post-update.
I have had to send a pretty lengthy email to support. Not only is this issue not resolved. It was duplicating conversations in jsonl files eating tokens, crashing my hardware and while trying to clean up the mess Claude Code made I noticed personal information in jsonl files where it had apparently scanned personal files. Then after I cleaned up huge duplicate files about 300MB opened Claude Code yesterday barely used it maybe an hour and it shut me down saying I had no time left. There are some massive bugs in Code that need to be addressed.
@claude So are you guys eventually going to fix this issue or do you simply not care in the slightest? This is frustrating.
I wish I could show you the email correspondences with the amount of gaslighting they have given me over this issue, excessive token consumption, file storage, mangled files, security breaches(Claude Code accessed my personal files and put the information in jsonl files), hardware malfunction(BSOD) from excessive resource usage, no file cleanup mechanism after Code or Anthropic has created hundreds of erroneous files and folders that consume tokens and resources with no way of knowing which are important and the list goes on. Heads up, short of the fact they are very aware that conversation lengths are an issue, they have basically admitted all these problems are by design and well yes we've logged your complaint but hey here's the workaround for our poor design features.
If anyone wants more information of the issues I've had and/or the feedback I've received, let me know. I'm happy to share.
Adding some related findings that might help debug this issue.
I've been with a related problem (#13064 Past Conversations showing only recent sessions) and found that the VS Code dropdown reads from ~/.claude/projects/<project>/sessions-index.json, not directly from the .jsonl files.
In my case:
655 session .jsonl files exist on disk (all intact)
Only 65 entries in sessions-index.json
VS Code shows only what's in the index
For those experiencing a completely empty Past Conversations list, I'd suggest checking:
Does your sessions-index.json exist? If it's missing or corrupted, the UI has nothing to read.
Check permissions on the file: ls -la ~/.claude/projects/<your-project>/sessions-index.json
The chmod 0770 workaround from @DaazKu likely works because the VS Code extension process runs under a different effective user/group than the CLI, so it can't read the 0700 directories created by the CLI.
This also explains why claude --resume works from terminal (same user, can read 0700) but VS Code can't.
This happened to me too and I noticed something that could be related.
I found the .jsonl file inside .claude/projects/MyProject folder.
The conversation that had the issue, was initiated with an --> image <-- directly, instead of the more common text question! Therefore instead of having a normal text as a title, this was a bit 'broken'. Perhaps that's why it wouldn't show up in the UI.
I was able to recover my conversation using /resume --my-lost-conversation's-Id-- on the terminal.
Your CLI access still working while the sidebar shows nothing points to the data being intact. What's broken is the VS Code extension's session index rather than the sessions themselves.
One check from further down this thread worth running first: look for sessions-index.json inside ~/.claude/projects/<your-project-path>/. ccalvob found that the extension reads sidebar listings from that file rather than directly from the .jsonl transcripts — if it's missing, corrupt, or much smaller than your transcript count, the sidebar has nothing to display even though the data is right there. On Mac a permissions fix (chmod 0770 on the project directories) resolved it; on Windows the equivalent is verifying the VS Code process has read access to ~/.claude/.
I built a toolkit for the recovery side of this: recover_vscode_sessions.py in BasedGPT/claude-code-session-recovery reads your full transcript files and injects missing entries into the extension's workspace session cache. Run diagnose.py from the same toolkit first; it maps ~/.claude/projects/ against the extension's index and shows which sessions are present in the files but absent from the cache, before writing anything.
Close VS Code fully before running recover_vscode_sessions.py --apply.
Hope this helps, if my tools are able to help you, would appreciate a ⭐ :)
Activity
roxstar-ai commentedon Dec 2, 2025
So I was having the same issue and I figured out that when Claude coat up upgraded somehow it created a new doc Claude folder and post upgrade. New conversations were being saved inside of that and it found all of my old conversations in an old dot Claude folder important to note that seems like the file that contains the history is a hidden file. I asked Claude code to merge the two instances into the current one and it fixed. It all seems good now this is the second time I've had this happen with an upgrade.
rtsoftvrana commentedon Dec 18, 2025
I'm still having this issue, version 2.0.73.
tsylvester commentedon Dec 19, 2025
Same problem but apparently claude --resume works on the immediate last conversation even in the VSC extension. Comments indicate that's expected to be CLI only but it works.
melsintexas commentedon Jan 3, 2026
I am having the same issue.
codeberg30 commentedon Jan 3, 2026
Confirming this issue on Windows 10. Troubleshooting steps taken:
VS Code updated recently; Claude Code extension is now v2.0.75, CLI is v2.0.76
After restart, VS Code extension shows empty "Past Conversations" with no UI errors
Verified conversation data exists in ~/.claude/projects/ as JSONL files (data present from about the past month only)
claude --resume CLI also only shows conversations from post-update (last ~14 hours)
LevelDB files exist in AppData\Roaming\Claude\Local Storage\leveldb dating back to July, but unclear if they contain conversation data
Extension settings contain no path configuration options
Data may still be on disk but neither VS Code extension nor CLI can currently access older conversations. CLI workaround suggests shared underlying indexing or data location issue post-update.
H0w4rd commentedon Jan 6, 2026
Same problem on Linux.
Conversations are saved, though, I can resume them in claude binary with /resume command.
melsintexas commentedon Jan 7, 2026
@claude do you plan on fixing this issue?
Michall279 commentedon Jan 10, 2026
Same issue on Mac Tahoe 26.2. Made Claude to record every conversation into .md file, but not ideal for quick searching through it.
Orfeasfil commentedon Jan 12, 2026
Any update on this?
melsintexas commentedon Jan 12, 2026
I have had to send a pretty lengthy email to support. Not only is this issue not resolved. It was duplicating conversations in jsonl files eating tokens, crashing my hardware and while trying to clean up the mess Claude Code made I noticed personal information in jsonl files where it had apparently scanned personal files. Then after I cleaned up huge duplicate files about 300MB opened Claude Code yesterday barely used it maybe an hour and it shut me down saying I had no time left. There are some massive bugs in Code that need to be addressed.
Orfeasfil commentedon Jan 12, 2026
@claude this is frustrating
1 remaining item
VicVibesPL commentedon Jan 14, 2026
@claude can you just ask claude code to fix it?
H0w4rd commentedon Jan 14, 2026
or maybe...I don't know... Gemini 3 can fix it :-) it's quite a shame that there is such a bug for a long time
Krispheria commentedon Jan 21, 2026
+1
blackwood821 commentedon Jan 23, 2026
This is happening to me as well for version
2.0.57and above. If I downgrade to version2.0.56and below the past conversations load again.DaazKu commentedon Jan 27, 2026
On Mac the problem was permissions. The projects are created with permissions
0700.Changing to
0770fixed the issue.So I could make it work by running
find ~/.claude/projects -type d -exec chmod 0770 {} \;.Obviously this is a bandaid and fixing the root cause is still needed.
thecherry94 commentedon Feb 2, 2026
@claude So are you guys eventually going to fix this issue or do you simply not care in the slightest? This is frustrating.
melsintexas commentedon Feb 2, 2026
I wish I could show you the email correspondences with the amount of gaslighting they have given me over this issue, excessive token consumption, file storage, mangled files, security breaches(Claude Code accessed my personal files and put the information in jsonl files), hardware malfunction(BSOD) from excessive resource usage, no file cleanup mechanism after Code or Anthropic has created hundreds of erroneous files and folders that consume tokens and resources with no way of knowing which are important and the list goes on. Heads up, short of the fact they are very aware that conversation lengths are an issue, they have basically admitted all these problems are by design and well yes we've logged your complaint but hey here's the workaround for our poor design features.
If anyone wants more information of the issues I've had and/or the feedback I've received, let me know. I'm happy to share.
blackwood821 commentedon Feb 2, 2026
@DaazKu Thanks for the workaround. That worked for me.
ccalvop commentedon Feb 6, 2026
Adding some related findings that might help debug this issue.
I've been with a related problem (#13064 Past Conversations showing only recent sessions) and found that the VS Code dropdown reads from
~/.claude/projects/<project>/sessions-index.json, not directly from the.jsonlfiles.In my case:
.jsonlfiles exist on disk (all intact)sessions-index.jsonFor those experiencing a completely empty Past Conversations list, I'd suggest checking:
sessions-index.jsonexist? If it's missing or corrupted, the UI has nothing to read.ls -la ~/.claude/projects/<your-project>/sessions-index.jsonThe
chmod 0770workaround from @DaazKu likely works because the VS Code extension process runs under a different effective user/group than the CLI, so it can't read the0700directories created by the CLI.This also explains why
claude --resumeworks from terminal (same user, can read0700) but VS Code can't.Ectropy commentedon Mar 15, 2026
Same issue present in Claude Code for VS Code v2.1.76
markwhitehead commentedon Apr 13, 2026
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 Codevranakis commentedon Apr 17, 2026
This happened to me too and I noticed something that could be related.
I found the .jsonl file inside .claude/projects/MyProject folder.
The conversation that had the issue, was initiated with an
--> image <--directly, instead of the more common text question! Therefore instead of having a normal text as a title, this was a bit 'broken'. Perhaps that's why it wouldn't show up in the UI.I was able to recover my conversation using
/resume --my-lost-conversation's-Id--on the terminal.asheroto commentedon May 11, 2026
Same issue here, still an active problem.
spotlesscoder commentedon Jun 28, 2026
this is soo annoying ... just add the feature
BasedGPT commentedon Jun 28, 2026
Your CLI access still working while the sidebar shows nothing points to the data being intact. What's broken is the VS Code extension's session index rather than the sessions themselves.
One check from further down this thread worth running first: look for
sessions-index.jsoninside~/.claude/projects/<your-project-path>/. ccalvob found that the extension reads sidebar listings from that file rather than directly from the.jsonltranscripts — if it's missing, corrupt, or much smaller than your transcript count, the sidebar has nothing to display even though the data is right there. On Mac a permissions fix (chmod 0770on the project directories) resolved it; on Windows the equivalent is verifying the VS Code process has read access to~/.claude/.I built a toolkit for the recovery side of this:
recover_vscode_sessions.pyinBasedGPT/claude-code-session-recoveryreads your full transcript files and injects missing entries into the extension's workspace session cache. Rundiagnose.pyfrom the same toolkit first; it maps~/.claude/projects/against the extension's index and shows which sessions are present in the files but absent from the cache, before writing anything.Close VS Code fully before running
recover_vscode_sessions.py --apply.Hope this helps, if my tools are able to help you, would appreciate a ⭐ :)