Skip to content

[BUG] Resuming sessions only works from the directory in which they were started #5768

Description

@allsey87

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other: Desktop
  • Claude CLI version: 1.0.80 (Claude Code)
  • Operating System: Debian Linux
  • Terminal: VS Code terminal + bash

Bug Description

It is only possible to resume conversations from the same directory in which they are started.

Steps to Reproduce

Start a session with claude --session-id UUID
End that session and change to another directory
Try to resume the session with claude --resume UUID

Expected Behavior

Session should be resumed

Actual Behavior

Error: No conversation found with session ID: UUID

Additional Context

The problem seems to be that Claude is storing its conversations under /home/USER/.claude/projects/PROJECT_PATH/ where project path is a string built from the current working directory with the slashes removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corebugSomething isn't workinghas reproHas detailed reproduction stepsmemoryplatform:linuxIssue specifically occurs on Linux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions