[BUG] Passing prompt on command line doesn't work with -c
Resolved 💬 2 comments Opened Jul 9, 2025 by andrewleech Closed Jul 12, 2025
Environment
- Platform (select one):
- [X] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.44 (Claude Code)
- Operating System: macOS 14.3
- Terminal: macOS terminal
Bug Description
When starting a normal interactive claude session the initial prompt can be passed on the command line.
However when --continue / -c is provided, the command line prompt is ignored.
Steps to Reproduce
- Run
claude "Who Are You"
A new TUI session is started, I see
\> Who Are You ● I'm Claude Code, Anthropic's official CLI tool for software development. I'm an AI assistant specialized in helping with programming tasks, code analysis, debugging, and software engineering workflows. ... /exit
- Now back at the command line run
claude -c "Can you see this"
Expected Behavior
I'd expect the interactive TUI session to show again with my previous prompt / reply to be visible above as it automatically starts processing the new prompt "Can you see this"
Actual Behavior
I do see the interactive TUI session with my previous prompt / reply visible as expected.
However the new prompt "Can you see this" I provided is not being processed, the session is just sitting waiting for me to type a prompt in.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗