Allow resuming a session from a different working directory

Status Fixed / completed
Maintainer reply None cached
Activity 4 comments · opened Jun 18, 2026 · closed Jun 24, 2026

Currently, claude --resume <id> requires you to be in the same directory the session was started in, or it fails with a "session does not exist" error. This makes it impossible to move a session to a new folder or resume it from a different context.

Requested behavior: claude --resume <id> should work from any directory.

Additional UX: In the session list (-r / session picker), after pressing Ctrl+A and selecting on a session should allow opening it in a new folder, so the user can relocate a session interactively.

Use case: I had an active session in folder A and wanted to continue it in folder B (e.g., after reorganizing a project). There is currently no way to do this without manually copying context.

View original on GitHub ↗

4 Comments

github-actions[bot] · 3 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/5768
  2. https://github.com/anthropics/claude-code/issues/65945
  3. https://github.com/anthropics/claude-code/issues/28745

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

ItsDaRa · 3 months ago

/cd Move this session to a new working directory

paven · 3 months ago

Closing in favor of https://github.com/anthropics/claude-code/issues/5768 even though that one is formulated as a bug and this is formulated as a feature.

github-actions[bot] · 1 month ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.