Claude Code "session not found" on resume: why the transcript is gone and what you can recover

Published · Updated

Claude Code could not find a transcript file for that session ID. Three explanations cover almost every case: the file was deleted, usually by the 30-day cleanup; it sits in a different project folder; or the session is one the picker never lists. A single find tells you which.

The messages

MessageWhere you see itSource
No conversation found with session ID: <session-id>CLI, claude --resume <id>Manage sessions
Failed to resume the conversationCLI, after picking a row in the pickerManage sessions
session not found on disk.Claude Desktop, clicking a listed session#62959

Per the docs, the ID lookup has two steps: the current project directory and its git worktrees first, then every other project on the machine. If neither matches, you get the first message.

Look for the file

Take the session ID from the error and search the whole projects folder.

ID=00000000-0000-0000-0000-000000000000   # your session ID
find ~/.claude/projects -name "$ID*"

If nothing comes back, the transcript is gone, and the next section applies. If it turns up under a different project folder, you are in the wrong directory or the project moved; skip to "When the file exists". If it appears as .orphaned-... or .superseded-..., Claude Code set the old transcript aside, and the picker does not list those files.

When it was deleted

The usual cause is the age sweep. Claude Code deletes transcripts older than cleanupPeriodDays (default 30, minimum 1), as the docs describe. The consolidation issue anthropics/claude-code#59248 is open and says the UI keeps listing deleted sessions; resuming them reports "session not found" or "No conversation found", neither of which says the transcript was cleaned up. The reporter of #62959 found 26 of 38 sidebar entries in Claude Desktop pointing at missing files. That count comes from their own investigation, Anthropic did not confirm it in the thread, and a stale-issue bot closed the issue as not planned.

A transcript can also vanish before the 30 days are up. #13625 reports .jsonl files missing after an update to 2.0.64 while history.jsonl still listed the sessions. It was closed as a duplicate with no maintainer reply, and the cause is the reporter's inference from timing. Nothing confirms that updates delete transcripts. (Docs and issues read on 10 November 2026; the docs reference versions up to v2.1.314.)

Claude Code has no undelete. The file is unlinked, with no trash. These are the places a copy might still be:

If Sealkeep was installed before the transcript was swept, it already holds an encrypted copy. For this exact error, sealkeep recover <session-file> takes the name of the missing file and puts it back where resume expects it. sealkeep search <query> --content finds a session when you only remember what was in it, and sealkeep recover <id> <dest> restores the original bytes to a path you choose. It cannot bring back a session deleted before it was installed, it does not repair a session that exists but fails to load, and it does not fix Claude Desktop's sidebar listing.

When the file exists

The picker is scoped to the directory you start in. The docs say it shows sessions from the current worktree and any project that added the directory with /add-dir. Ctrl+W widens it to all worktrees of the repository, and Ctrl+A to every project on this machine.

Several other things hide a session. One started with claude -p or the Agent SDK: those are left out of the picker and out of --continue, though claude --resume <session-id> still finds them. One began with a /loop command, which the picker skips. The same ID may exist in two project folders; the cross-project search resolves an ID only when exactly one other project holds it, so a hand-copied duplicate makes Claude Code report not-found instead of guessing. Changing CLAUDE_CONFIG_DIR makes Claude Code read transcripts from that directory instead of ~/.claude. And a still-running background session is opened by newer versions rather than resumed.

You can skip the lookup entirely, since the docs support resuming from a transcript path:

claude --resume ~/.claude/projects/-Users-me-myapp/$ID.jsonl

If the working directory was moved or renamed, claude --resume shows no history explains how the folder name is derived.

Preventing a repeat

Raise cleanupPeriodDays and keep an external copy; both are covered in Claude Code deletes transcripts after 30 days. Where Claude Code stores sessions shows where the files live. More guides: /guides/.

FAQ

Why does the picker show a session that then fails to open?

The listing and the file can disagree. In Claude Desktop, the reporter of #62959 found the sidebar metadata outlived the deleted transcripts. Check with find whether the .jsonl exists.

Is a session ID the same as the file name?

Yes. Transcripts are stored as ~/.claude/projects/<project>/<session-id>.jsonl.

Does history.jsonl hold the conversation?

No, only the prompts you typed, not the replies.