Status line command doesn't receive updated output_style until session restart

Resolved 💬 3 comments Opened Dec 4, 2025 by alexeyv Closed Dec 8, 2025

Description

When changing the output style mid-session (via /output-style command), the output_style field passed to custom status line commands remains stale until Claude Code is restarted.

Steps to reproduce

  1. Configure a custom status line command in .claude/settings.json:

``json
{
"statusLine": {
"type": "command",
"command": "my-status-line"
}
}
``

  1. Start a Claude Code session (no output style set)
  2. Run /output-style tts-summary to set an output style
  3. Observe that the status line command still receives no output_style in its JSON input
  4. Restart Claude Code
  5. Now status line command correctly receives output_style: { "name": "tts-summary" }

Expected behavior

The output_style field should update immediately when changed mid-session, so status line commands can reflect the current state without requiring a restart.

Actual behavior

The output_style value appears to be cached at session start and doesn't update until the session is restarted.

Environment

  • macOS
  • Claude Code (latest)

View original on GitHub ↗

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