Description
When using --resume to resume a conversation that was started in a different working directory, the CLI hangs indefinitely on "resuming conversation" with no error message or timeout.
Steps to reproduce
- Start a Claude Code conversation in directory A (e.g.
~/project-a)
- Exit the conversation
cd to a different directory B (e.g. ~/project-b)
- Run
claude --resume and select the conversation from directory A
Expected behavior
Either:
- Resume the conversation successfully (ideally with a warning about the directory mismatch), or
- Display a clear error message explaining the conversation was started in a different directory
Actual behavior
The CLI hangs on "resuming conversation" indefinitely. The process stays alive but barely uses CPU. No error message is displayed. The only way to exit is Ctrl+C or kill.
Environment
- OS: Linux (Arch)
- Claude Code: latest
Description
When using
--resumeto resume a conversation that was started in a different working directory, the CLI hangs indefinitely on "resuming conversation" with no error message or timeout.Steps to reproduce
~/project-a)cdto a different directory B (e.g.~/project-b)claude --resumeand select the conversation from directory AExpected behavior
Either:
Actual behavior
The CLI hangs on "resuming conversation" indefinitely. The process stays alive but barely uses CPU. No error message is displayed. The only way to exit is
Ctrl+Corkill.Environment