claude --resume creates a new session

Resolved 💬 3 comments Opened Aug 1, 2025 by murph12F Closed Aug 15, 2025

Environment

  • Claude CLI version: 1.0.65
  • Operating System: tested on ubuntu 24.04 lts, and macos latest version

Bug Description

--resume function creates a new session directory with new id in ~/.claude/projects/...

Steps to reproduce

~/temp  $ ls -l ~/.claude/projects/-home-murphy-temp/
total 0
~/temp  $ claude --session-id adc10fa5-61dc-47fd-a1af-47fdd6d2007c -p "what is 4 + 4 * 4? "
20
~/temp  $ ls -l ~/.claude/projects/-home-murphy-temp/
total 4
-rw-rw-r-- 1 murphy murphy 1018 Aug  1 13:46 adc10fa5-61dc-47fd-a1af-47fdd6d2007c.jsonl
~/temp  $ claude --resume adc10fa5-61dc-47fd-a1af-47fdd6d2007c -p "remove 10 from it "
10
~/temp  $ ls -l ~/.claude/projects/-home-murphy-temp/
total 8
-rw-rw-r-- 1 murphy murphy 2190 Aug  1 13:47 57f6f27a-f714-44de-a160-29f6de7bfd73.jsonl
-rw-rw-r-- 1 murphy murphy 1018 Aug  1 13:46 adc10fa5-61dc-47fd-a1af-47fdd6d2007c.jsonl
~/temp  $ claude --resume adc10fa5-61dc-47fd-a1af-47fdd6d2007c -p "add 20 to it " #should result into 30
40
~/temp  $ ls -l ~/.claude/projects/-home-murphy-temp/
total 12
-rw-rw-r-- 1 murphy murphy 2190 Aug  1 13:47 57f6f27a-f714-44de-a160-29f6de7bfd73.jsonl
-rw-rw-r-- 1 murphy murphy 2047 Aug  1 13:47 68b66e66-63a7-4385-a6ea-13158d97e1cb.jsonl
-rw-rw-r-- 1 murphy murphy 1018 Aug  1 13:46 adc10fa5-61dc-47fd-a1af-47fdd6d2007c.jsonl
~/temp  $

Expected Behavior

The expected behavior should be actually resuming the session, and not generating a new one.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗