[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

  1. Configure a statusline script at ~/.claude/statusline.sh with proper executable permissions
  2. Start Claude Code using claude --add-dir ~/claude-workspace --continue
  3. Observe that no statusline appears at the bottom of the interface
  4. Exit and restart using just claude
  5. 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

View original on GitHub ↗

This issue has 12 comments on GitHub. Read the full discussion on GitHub ↗