Skip to content

claude --resume hangs when resuming conversation from a different directory #24267

Description

@ewandennis

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

  1. Start a Claude Code conversation in directory A (e.g. ~/project-a)
  2. Exit the conversation
  3. cd to a different directory B (e.g. ~/project-b)
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions