claude-code - 💡(How to fix) Fix Renaming a project folder orphans prior sessions ("No conversation found with session ID") [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52494Fetched 2026-04-24 06:05:41
View on GitHub
Comments
2
Participants
2
Timeline
8
Reactions
0
Author
Timeline (top)
labeled ×5commented ×2closed ×1

Error Message

Claude Code returned an error result: No conversation found with session ID: 475672e6-8e2b-4be0-8fd4-07308af8ed90

Root Cause

Suspected root cause

Fix Action

Fix / Workaround

Workarounds (both poor)

Code Example

Claude Code returned an error result: No conversation found with session ID: 475672e6-8e2b-4be0-8fd4-07308af8ed90
RAW_BUFFERClick to expand / collapse

Environment

  • Claude Code desktop app
  • macOS 26.3 (Tahoe), Apple Silicon
  • Model: Opus 4.7 1M

What happened

I renamed a project folder from ~/Claude Root/Cowork to ~/Claude Root/dghq. After reopening the desktop app and selecting any session from the Recents list that had been created under the old path, the app returned:

Claude Code returned an error result: No conversation found with session ID: 475672e6-8e2b-4be0-8fd4-07308af8ed90

Every prior session for that project was unreachable. Restoring the original folder name made them work again.

Suspected root cause

Session storage under ~/.claude/projects/ is keyed by a path-derived slug (e.g. -Volumes-Carter-Users-jde-Claude-Root-Cowork). Renaming the project folder changes the slug the app looks under, so sessions written under the old slug are orphaned — the session files still exist on disk, the app just doesn't look there anymore.

Expected behavior

Resuming a session by ID should work regardless of the project's current path — either the app should look up by session ID directly, or it should detect the rename and migrate / re-key the project directory.

Reproduction

  1. Open a project at path A; accumulate a few sessions.
  2. Quit the desktop app; rename the folder to path B.
  3. Reopen the desktop app and click a prior session in Recents.
  4. No conversation found with session ID: …

Workarounds (both poor)

  • Rename back: wastes all the coordination work that motivated the rename (remote git server, tooling, docs, Syncthing peer).
  • Symlink at the old path pointing to the new one: fragile — Syncthing, backup tooling, and cross-machine setups don't all play nicely with the indirection, and the symlink has to live outside any synced folder.

In my case I abandoned the rename entirely because of this bug.

extent analysis

TL;DR

The issue can be fixed by modifying the session storage to look up sessions by ID directly, rather than relying on a path-derived slug.

Guidance

  • Verify that the session files still exist on disk under the old slug directory (~/.claude/projects/) after renaming the project folder.
  • Consider implementing a migration mechanism to re-key the project directory when a rename is detected, to maintain continuity of session IDs.
  • Investigate alternative storage strategies that decouple session IDs from project paths, such as using a database or a separate session storage mechanism.
  • Test the app's behavior with different project path scenarios to ensure that session IDs are properly resolved.

Example

No code snippet is provided as the issue does not contain sufficient technical details to generate a specific example.

Notes

The provided workarounds have significant drawbacks, and a more robust solution is needed to handle project folder renames without disrupting session continuity.

Recommendation

Apply a workaround by using a consistent naming convention for project folders, until a more permanent fix can be implemented to modify the session storage mechanism. This will help minimize the impact of the issue on users.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Resuming a session by ID should work regardless of the project's current path — either the app should look up by session ID directly, or it should detect the rename and migrate / re-key the project directory.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING