[BUG] No conversation found with session ID

Status Fixed / completed
Maintainer reply ✓ Yes — wolffiex
Activity 8 comments · opened Jun 16, 2025 · closed Jul 18, 2025
💡 Likely answer: A maintainer (wolffiex, collaborator) responded on this thread — see the highlighted reply below.

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.19
  • Operating System: Ubuntu 22.04.5 LTS
  • Terminal: tmux (ssh'd in with iTerm 2)

Bug Description

On this machine, claude --resume <session ID> doesn't work; it just always says: No conversation found with session ID <session ID>. I've ensured that I'm running in a consistent directory, and running simply claude --resume does list the session (and resuming interactively works)

Steps to Reproduce

  1. Run eg echo <prompt> | claude -p --verbose --output-format=stream-json --allowedTools '...'
  2. Take note of the session ID in the response messages
  3. Run simply claude --resume <session ID> (or send another prompt with the same --resume param)

Expected Behavior

The prompt should be handled correctly, resuming the previous session

Actual Behavior

The error message described above is printed instead.

Additional Context

The same repro works fine locally on my Mac. I'm not sure how sessions are stored or looked up, but presumably there's something about the machine I'm ssh'd into that causes this issue? Happy to help track this down!

View original on GitHub ↗

8 Comments

wolffiex collaborator · 1 year ago

Can you ls ~/.claude/projects

dhleong · 1 year ago

On the machine that's having issues:

ls ~/.claude/projects
-home-dhleong  -home-dhleong-work-repo-project-api  -home-dhleong-work-repo-project-common-py

On my Mac, I have:

ls ~/.claude/projects
-Users-daniel-leong -Users-daniel-leong-work-repo -Users-daniel-leong-work-repo-project-api -Users-daniel-leong-work-repo-project-app
wolffiex collaborator · 1 year ago

Are there files in these directories? You are aware that sessions are tied to the directory where claude starts, right?

dhleong · 1 year ago

Yes, and yes (I mentioned in the bug description that I ensured I was in a consistent directory).

ls ~/.claude/projects/-home-dhleong-work-repo-project-api
77901b87-d4e1-489a-944a-0605a7ef2386.jsonl  aac5553d-ee39-4ad1-af6a-3dedf39b617e.jsonl  fad57a17-9863-4e5f-9e09-39e1499ca971.jsonl

pwd
/home/dhleong/work/repo/project_api

claude --resume 77901b87-d4e1-489a-944a-0605a7ef2386
No conversation found with session ID: 77901b87-d4e1-489a-944a-0605a7ef2386
wolffiex collaborator · 1 year ago

Ok interesting thanks. Is 77901b87-d4e1-489a-944a-0605a7ef2386.jsonl a
valid jsonl file? You can check with jq

On Wed, Jun 18, 2025 at 9:15 AM Daniel Leong @.***>
wrote:

dhleong left a comment (anthropics/claude-code#2168) <https://github.com/anthropics/claude-code/issues/2168#issuecomment-2984886312> Yes, and yes (I mentioned in the bug description that I ensured I was in a consistent directory). ls ~/.claude/projects/-home-dhleong-work-repo-project-api 77901b87-d4e1-489a-944a-0605a7ef2386.jsonl aac5553d-ee39-4ad1-af6a-3dedf39b617e.jsonl fad57a17-9863-4e5f-9e09-39e1499ca971.jsonl pwd /home/dhleong/work/repo/project_api claude --resume 77901b87-d4e1-489a-944a-0605a7ef2386 No conversation found with session ID: 77901b87-d4e1-489a-944a-0605a7ef2386 — Reply to this email directly, view it on GitHub <https://github.com/anthropics/claude-code/issues/2168#issuecomment-2984886312>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AABUJ7BBTEAT4AUAHVBXYNL3EGGCTAVCNFSM6AAAAAB7OGBEPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSOBUHA4DMMZRGI> . You are receiving this because you were assigned.Message ID: @.***>
dhleong · 1 year ago

Appears to be. Ran jq and trimmed the content a bit:

jq -s '.'  ~/.claude/projects/-home-dhleong-work-repo-project-api/77901b87-d4e1-489a-944a-0605a7ef2386.jsonl
[
  {
    "parentUuid": null,
    "isSidechain": false,
    "userType": "external",
    "cwd": "/home/dhleong/work/repo/project_api",
    "sessionId": "77901b87-d4e1-489a-944a-0605a7ef2386",
    "version": "1.0.19",
    "type": "user",
    "message": {
      "role": "user",
      "content": "...\n"
    },
    "uuid": "75b35ffe-2016-4aae-a70f-6b6dc4888f8d",
    "timestamp": "2025-06-16T19:13:36.773Z"
  },
  // ... etc
]

jq without the param throws a (presumably, expected) error:

jq ~/.claude/projects/-home-dhleong-work-repo-project-api/77901b87-d4e1-489a-944a-0605a7ef2386.jsonl
jq: error: syntax error, unexpected '/', expecting $end (Unix shell quoting issues?) at <top-level>, line 1:
/home/discord/.claude/projects/-home-dhleong-work-repo-project-api/77901b87-d4e1-489a-944a-0605a7ef2386.jsonl
jq: 1 compile error
dhleong · 1 year ago

It seems to be working for me now. I'll go ahead and close, and open a new issue if I run into other problems. Thank you!

github-actions[bot] · 1 year 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.