[BUG] Statusline not appearing when using command-line flags with Claude Code
Resolved 💬 12 comments Opened Aug 15, 2025 by murilo Closed Dec 9, 2025
[BUG] Statusline not appearing when using command-line flags with Claude Code
Environment
- Platform (select one):
- [x] Anthropic API (login MAX plan)
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.81 (Claude Code)
- Operating System: macOS (Darwin 24.6.0)
- Terminal: iTerm2
Bug Description
The statusline does not appear when starting Claude Code with command-line flags, but works correctly when starting with just claude.
Steps to Reproduce
- Configure a statusline script at
~/.claude/statusline.shwith proper executable permissions - Start Claude Code using
claude --add-dir ~/claude-workspace --continue - Observe that no statusline appears at the bottom of the interface
- Exit and restart using just
claude - Observe that the statusline now appears correctly
Expected Behavior
The statusline should appear consistently regardless of which command-line flags are used to start Claude Code.
Actual Behavior
- Statusline appears when starting with
claude - Statusline does not appear when starting with
claude --add-dir ~/claude-workspace --continue
Additional Context
- The statusline script is properly configured and executable
- Settings.json is configured correctly with the statusline path
- The issue appears to be related to how the statusline is initialized when additional flags are passed during startup
- This affects users who regularly use workspace directories or session continuation flags
This issue has 12 comments on GitHub. Read the full discussion on GitHub ↗