[BUG] Custom statusLine command not rendered on resumed sessions

Resolved 💬 6 comments Opened Feb 27, 2026 by mattleong Closed Apr 22, 2026

Bug Report

Custom statusLine with type: "command" renders correctly on new sessions but does not render when resuming an existing session (via claude --resume or session picker).

Configuration

"statusLine": {
    "type": "command",
    "command": "bash ~/.claude/statusline-command.sh"
}

in ~/.claude/settings.json.

Steps to Reproduce

  1. Configure a custom statusLine command in ~/.claude/settings.json
  2. Start a new Claude Code session — custom statusline renders correctly
  3. Exit the session
  4. Resume the session — custom statusline is absent, default statusline shown instead

Expected Behavior

Custom statusLine command should render on both new and resumed sessions.

Actual Behavior

Custom statusLine only renders on new sessions. Resumed sessions fall back to the default built-in statusline.

Debugging Done

  • Confirmed hasTrustDialogAccepted: true for all projects in ~/.claude.json (per #28526)
  • The script runs correctly when invoked manually
  • No changes to settings.json between new and resumed sessions
  • New sessions on the same project in the same terminal render the statusline fine

Environment

  • Claude Code: 2.1.62
  • macOS 26.3 (Darwin 25.3.0, Apple Silicon)
  • Shell: zsh

View original on GitHub ↗

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