Preserve session history when a project directory is moved
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Claude Code ties conversation/session history to the project's directory path. When I move my code to a different location (rename or relocate the project folder), the existing history no longer follows it and effectively breaks. This means reorganizing a project — something developers do routinely — comes at the cost of losing the context built up in past sessions.
Proposed Solution
A way to keep session history associated with a project after it's moved. For example:
- History that follows the project when the folder is relocated, or
- A command to migrate/re-point existing history to the new path (e.g.
claude history migrate <old-path> <new-path>).
Alternative Solutions
None
Priority
Medium - Would be very helpful
Feature Category
Other
Use Case Example
I frequently restructure my repositories and move directories around. Today I avoid doing this, or I just accept losing history, because there's no way to carry the Claude Code history over to the new location.
Additional Context
I'm using the Desktop version.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗