claude --continue with the old session still open gives two live sessions
PitfallVerified 2 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
Restarting Claude Code with claude --continue while the old session is still open (or running it in two terminals) gives two live sessions on the same conversation. Both keep acting and editing the same files, and the agent in one cannot reach the other (SendMessage and ListAgents show nothing). Symptoms are unexplained file changes and tests the agent did not write.
Cause#
Both sessions resume the same conversation and run concurrently.
Fix#
Detect it with ps -axo pid,lstart,command | grep "[c]laude --continue" and git status --short. Close one session before work continues, and restart with plain claude.
Evidence#
Seen when a session was restarted with --continue in a second terminal.
Also found by searching
- two live Claude Code sessions on the same conversation
- unexplained file changes and tests the agent did not write
- ps -axo pid,lstart,command | grep "[c]laude --continue"
- SendMessage and ListAgents show nothing across the two sessions