AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Nov 26, 2026, 22:01 JST

Claude Code 2.1.318 resume works across folders, test finds

Send on LINE
Claude Code 2.1.318 resume works across folders, test finds

3 Key Points

  1. What happened

    Testing Claude Code 2.1.318 on Windows 11 with `claude -p` and haiku, the author resumed sessions from a different folder, a child, a parent, and a renamed folder, all succeeding with exit code 0.

  2. Why it matters

    For teams running Claude Code in automated or scripted workflows, this suggests cross-folder resume may not require moving session files, though the result covers one environment.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The test was prompted by a common suspicion: when `claude --resume` shows "No conversation found," users often suspect the launch folder is wrong. The author set up disposable folders and used a random passphrase to verify whether the conversation actually resumed, finding that location changes alone did not break resume in this environment. This contrasts with an older Qiita report and GitHub Issue #5768, both of which describe resume as tied to the starting directory. The author notes those reports may reflect different versions, paths, or timings, and does not declare them wrong. The official sessions documentation, checked on 2026-11-16, states that `claude --resume <session-id>` can be run from any directory, which aligns with the test result. The test also found that `-p --continue` in the same folder resumed successfully, while in a folder with no record it appeared to start a new conversation with exit code 0 and no error—an inference based on token counts, not a read of the answer. Because this is a single-environment observation, the practical takeaway is to check session persistence settings before blaming folder location, and to verify continuation by asking for a known detail rather than trusting the exit code alone.

FAQ
What was the only condition that made resume fail?
The only failure was when the conversation was created with `--no-session-persistence`, which prevents saving. That produced a singular `No conversation found with session ID`, exit code 1, and cost of 0.
Does this apply to the interactive `/resume` screen?
No. The test covered only `claude -p` (non-interactive) mode on Windows 11 with Claude Code 2.1.318 and haiku. The interactive `/resume` screen was not measured.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articlePanasonic, Kansai Electric and about 50 firms form factory AI association