Prompt :
I switched Claude accounts on the same machine and my old chats vanished from the Claude Desktop sidebar (Code tab). I want them back. Please investigate and fix.
Background on how this works — the transcripts are NOT gone. Claude Desktop scopes its sidebar index by account UUID:
Windows: %APPDATA%\Claude\claude-code-sessions\<accountUuid>\<orgUuid>\local_<sessionId>.json macOS: ~/Library/Application Support/Claude/claude-code-sessions/<accountUuid>/<orgUuid>/local_<sessionId>.json Linux: ~/.config/Claude/claude-code-sessions/<accountUuid>/<orgUuid>/local_<sessionId>.json
Each local_.json is a small sidebar record (sessionId, cwd, title, model, lastActivityAt, ...). The actual conversation transcripts live separately in ~/.claude/projects/<escaped-cwd>/.jsonl and are never touched by an account switch. Logging into a new account just creates a NEW <accountUuid> folder, so the sidebar looks empty while the old records sit in the old folder.
Please do this:
Do not touch my credentials, do not copy ~/.claude.json wholesale (it contains the oauthAccount for the old login and would clobber my new one), and do not delete anything.