Preflight Checklist
What's Wrong?
When migrating to a new PC, there is no supported way to transfer Claude Code session history. I manually copied the entire ~/.claude directory (including ~/.claude/projects//*.jsonl) to the new machine.
CLI works: claude --resume in the project directory correctly lists and reopens the old sessions.
Desktop app does not: the same sessions do not appear in the Desktop app's Recents list for that project, even after explicitly opening the identical project folder via "Open Folder...". There appears to be no way to make the Desktop app pick up existing session files.
This suggests the CLI and Desktop app maintain separate session indexes, rather than reading from a shared source of truth.
This was surprisingly hard to diagnose since there's no documentation explaining the CLI/Desktop split, or why an existing, valid session folder isn't picked up by the Desktop app.
What Should Happen?
- A documented, supported way to migrate session history between machines (even a simple file-copy procedure, if that's the intended mechanism).
- Ideally, an explicit export/import feature in the Desktop app for session history.
- Longer-term, the CLI and Desktop app should read from the same session index so switching between them — or moving machines — doesn't fragment history.
Error Messages/Logs
Steps to Reproduce
- Brand new PC with clean install of Claude Code and Desktop App
- Copied the entire ~/.claude directory (including ~/.claude/projects//*.jsonl) to the new machine
- CLI works: claude --resume in the project directory correctly lists and reopens the old sessions.
- Desktop app does not: the same sessions do not appear in the Desktop app's Recents list for that project, even after explicitly opening the identical project folder via "Open Folder...".
Even Claude can't solve it.
Claude Model
None
Is this a regression?
I don't know
Last Working Version
No response
Claude Code Version
2.1.220
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
No response
Preflight Checklist
What's Wrong?
When migrating to a new PC, there is no supported way to transfer Claude Code session history. I manually copied the entire ~/.claude directory (including ~/.claude/projects//*.jsonl) to the new machine.
CLI works: claude --resume in the project directory correctly lists and reopens the old sessions.
Desktop app does not: the same sessions do not appear in the Desktop app's Recents list for that project, even after explicitly opening the identical project folder via "Open Folder...". There appears to be no way to make the Desktop app pick up existing session files.
This suggests the CLI and Desktop app maintain separate session indexes, rather than reading from a shared source of truth.
This was surprisingly hard to diagnose since there's no documentation explaining the CLI/Desktop split, or why an existing, valid session folder isn't picked up by the Desktop app.
What Should Happen?
Error Messages/Logs
Steps to Reproduce
Even Claude can't solve it.
Claude Model
None
Is this a regression?
I don't know
Last Working Version
No response
Claude Code Version
2.1.220
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
No response