[BUG] claude --continue hangs in directory with no previous session (macOS)
Resolved 💬 3 comments Opened Mar 12, 2026 by MitsunChieh Closed Mar 15, 2026
Bug description
Running claude --continue in a directory where no previous Claude Code session has ever been opened causes the terminal to hang completely. Ctrl+C is also unresponsive — the process must be killed externally.
Steps to reproduce
cdinto a directory where Claude Code has never been opened- Run
claude --continue - Terminal hangs — no prompt, no output, no response to input
Ctrl+Cdoes not work
Expected behavior
Should either fall back to a new session, or display an error like "No previous session found" and exit gracefully.
Environment
- macOS (Darwin 23.6.0, Apple Silicon)
- Claude Code version: 2.1.74
- Shell: zsh (iTerm2)
Related issues
- #7144, #7426, #24191 — similar freeze symptoms but all on Windows and with existing sessions
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗