Resume is broken in -p mode
Resolved 💬 6 comments Opened Jun 20, 2025 by proggod Closed Jan 5, 2026
Using 1.0.30, when I start a task with -p mode, I get the task id, and then attempt to resume and it creates an entirely new task id and doesn't have the memory of the previous one:
FIRST:
claude -p "create a hello world c program" --dangerously-skip-permissions --output-format stream-json --verbose
session_id":"d247198c-a305-4c75-be27-b50bd7251ed2"
SECOND:
claude -p "change it to universe" --dangerously-skip-permissions --output-format stream-json --verbose --resume d247198c-a305-4c75-be27-b50bd7251ed2
it changes session id to "session_id":"a7899bdd-2f50-4a83-93f2-f9878d750d07" and has no memory of previous convo
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗