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
- Configure a custom status line command in
.claude/settings.json:
``json``
{
"statusLine": {
"type": "command",
"command": "my-status-line"
}
}
- Start a Claude Code session (no output style set)
- Run
/output-style tts-summaryto set an output style - Observe that the status line command still receives no
output_stylein its JSON input - Restart Claude Code
- 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)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗