Auto-migrate sessions when project folder is moved in VS Code
Resolved 💬 2 comments Opened Jun 23, 2026 by Ozmayqz Closed Jun 26, 2026
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
When a project folder is moved to a new location, Claude Code sessions should automatically follow the folder to the new path. Currently, sessions are lost after moving a folder and can only be recovered by manually renaming the encoded directory in ~/.claude/projects/.
Proposed Solution
Sessions should be automatically remapped to the new project path, or there should be a command to migrate sessions when a folder is moved.
Alternative Solutions
_No response_
Priority
Critical - Blocking my work
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗