Omniscio

OmniscioGuidesNo conversation found with session ID

No conversation found with session ID: why resume cannot find it

The message is one line, above an exit code of 1, and it means the lookup found nothing on this machine. Either the ID is mistyped, the transcript was swept after its retention period, it lives on another machine, or two transcripts carry the same ID.

Checked against Anthropic's documentation on November 25, 2026. By the Omniscio team. Updated .

What is the exact message?

No conversation found with session ID: <session-id>

Anthropic documents it under Command-line errors in its error reference, with your ID in place of the angle brackets. Claude Code prints it and exits with code 1, so anything scripted around the resume stops there instead of opening an empty session.

What does it mean?

Claude Code saves every session as a transcript file, one per session ID, and --resume <session-id> asks it to load the conversation saved under that ID. This message means no stored transcript matched.

The lookup is wider than the folder you are standing in. Anthropic describes the order: the current project directory and its git worktrees first, then every other project on this machine. The second step resolves the ID only when exactly one other project holds a transcript with messages for it, which is why a hand-copied duplicate fails rather than resume an arbitrary copy.

Before Claude Code v2.1.223 the lookup stopped at the current project directory and its worktrees. Check yours with claude --version: on a build older than 2.1.223, run the resume from the directory the session last worked in, or run claude update and try again.

The same transcripts, from inside a session

/resume opens the picker from an active session, and claude --continue reopens the most recent session in the current directory. Both read this project's transcripts, and the picker widened with Ctrl+A is the widest view — though it still leaves out claude -p, Agent SDK and /loop sessions.

Why the ID does not resolve

Anthropic names four causes, and each one points at a different fix. Work out which you have before touching anything.

  • Mistyped ID. The ID comes from the original run, and a copy with a character missing or a character added resolves nothing. For a scripted run, the ID to come back to is the session_id field of the --output-format json output.
  • Deleted transcript. Claude Code removes transcripts once they are older than the retention period, which is cleanupPeriodDays and defaults to 30 days. A session from two months ago is gone, and no flag brings it back.
  • Different machine. Transcripts are local, under ~/.claude/projects. A session that ran on another computer, in a container, or on a cloud box is not stored on this one.
  • Duplicate copies. If two transcripts carry the same ID, such as after copying a project directory, Claude Code reports this message rather than resume one copy arbitrarily.

How do I fix it?

  1. Open the picker instead of guessing. Run claude --resume with no argument. It lists sessions from the current worktree by default; press Ctrl+W to widen to every worktree of the repository, then Ctrl+A to widen to every project on the machine. Find the conversation and select it. A session from an unrelated project opens by copying a cd and resume command to your clipboard, which you then run — and if that project's directory no longer exists, it opens in your current directory instead.
  2. Re-check the ID you typed. For a new run, get the ID from the run itself: claude -p "your prompt" --output-format json returns a session_id, and that value is what --resume takes. Copy it from the output rather than from a shell history line.
  3. Resume by transcript path when you have the file. claude --resume <transcript-path> loads the session stored in the .jsonl file at that absolute path, which is the route that works when the copy came from elsewhere.
  4. Go to the machine that holds it. A session resumes where it ran, and Anthropic's advice is to resume it there. When you hold the .jsonl file itself, claude --resume loads it by absolute path; do not plant a second copy of the same ID under a project folder, which is the duplicate case above.
  5. If two copies carry the ID, keep one. Claude Code reports this message rather than choose between them. List the copies with ls ~/.claude/projects/*/<session-id>.jsonl, move the one belonging to the project that did not run the session out of ~/.claude/projects into a backup folder, then resume by ID. The moved copy still opens with claude --resume and its absolute path.
  6. Add "cleanupPeriodDays": 90 to ~/.claude/settings.json, which keeps transcripts 90 days from then on. It changes nothing for a session already swept: that transcript is gone and no setting restores it.

A session whose first prompt was /loop is left out of the picker as well, and sessions created with claude -p or the Agent SDK are left out too. Any of them can still be resumed with its ID, so an empty picker does not prove the transcript is missing.

How do I know it is fixed?

  • The resume opens the conversation with its earlier messages, tool calls and results, not a fresh prompt.
  • The exit status is 0 instead of 1. On a scripted run, echo $? prints 0 in bash or zsh, and $LASTEXITCODE prints 0 in PowerShell.
  • From that directory, claude --continue reopens the same session and the picker lists it — unless it was a claude -p, Agent SDK or /loop session, which never appear there. For those, the conversation in front of you is the proof.

Where these answers come from

Common questions

What does No conversation found with session ID mean?

Claude Code looked for that ID in the transcripts saved on this machine and found none, then exited with code 1. It searches the current project directory and its git worktrees first, then every other project on the machine, so the ID resolves nowhere in local storage: either absent, or duplicated.

Where does Claude Code look for a session ID?

In this order: the current project directory and its git worktrees, then every other project on this machine. The second step resolves the ID only when exactly one other project holds a transcript with messages for it, so two copies of the same ID make Claude Code report not-found instead of picking one.

Can a session ID stop working after a few weeks?

Yes. Transcripts age out under cleanupPeriodDays, which defaults to 30 days, so an older session can be swept from disk and its ID then resolves nowhere. Ask the picker with Ctrl+A before assuming the ID is wrong.

Does the session picker show every session on the machine?

Not by default. It shows sessions from the current worktree, plus sessions that added the current directory with /add-dir. Ctrl+W widens it to every worktree of the repository and Ctrl+A to every project on the machine.

Why is a session missing from the picker that I can still resume by ID?

Sessions created with claude -p or the Agent SDK are left out of the picker and out of claude --continue, and a session whose first prompt was /loop is left out too. All of them can still be resumed when you pass their ID to claude --resume.

Does resuming a session on another machine work?

Not in place. Claude Code stores transcripts locally under ~/.claude/projects, so a session resumes on the machine where it ran. Anthropic's advice is to resume it on the machine where it ran. Keeping the .jsonl transcript and passing its absolute path to claude --resume is the route that works on whichever machine holds that file.