Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

If claude --continue does not reopen the conversation you need, first return to the project directory where you used it. That flag loads the most recent conversation in the current directory, not a session-wide search. To target a particular conversation, run claude --resume <session-id>; if you do not know its ID, try claude --resume and look for it in the interactive chooser. Anthropic documents these options, but does not guarantee that every session is available to resume.

Why --continue may not find the session

Anthropic defines --continue (or -c) as loading the most recent conversation in the current directory. If you launch Claude Code from a different project directory, it may not select the conversation you expect. The flag also selects the latest conversation rather than letting you identify an older one by name. See the Claude Code CLI reference.

Try these recovery options in order

  1. Return to the original project directory

    In your terminal, change to the repository or project directory associated with the conversation, then run claude --continue. This is the first check because the command is scoped to the current directory.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  2. Resume using the session ID

    If you have the session ID in notes, logs, shell history, or an SDK capture, run claude --resume <session-id>. The short form is claude -r <session-id>. The CLI reference also supports passing a follow-up prompt after the ID.

    For SDK workflows, Anthropic shows how to request JSON output, extract its session_id with jq, and pass that ID to a later claude -p --resume command. This only helps if the ID was actually captured; see the Claude Code SDK documentation.

  3. Open the interactive session chooser

    When you do not know the ID, run claude --resume without an argument. The CLI reference describes choosing a session in interactive mode. Select the intended conversation if it appears; the documentation does not promise that every historical session will be listed.

Check the CLI and capture useful diagnostics

  • Run claude --version to record the installed version.
  • Run claude doctor to check the installation type and version, as described in Anthropic’s setup guide.
  • Reproduce the problem with --verbose to see detailed turn-by-turn output. Keep the exact error and session ID, if available.
  • If you suspect version-related behavior, Anthropic documents claude update as the manual update command. An update is a diagnostic step, not a documented way to repair missing session data.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What to expect if resume still fails

Anthropic’s data-usage documentation says local Claude Code clients may store sessions locally for up to 30 days so users can resume them. That is a stated retention window, not a guarantee that a particular session remains present or can be recovered. See the Claude Code data-usage documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The official sources cited here do not establish a version-independent transcript location or a supported method for manually moving, renaming, or editing session files. Do not rely on an unverified file path or alter session data based on one. Preserve the session ID and error output, then consult current Anthropic support or the help available in your installed CLI for version-specific guidance.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.