HorizontalStatus bar showing mode, auto-approve, cwd, git branch, tokens, and model.
Current working directory to display
Additional arguments passed to parent
Mode badges and auto-approve pills use distinct colors for at-a-glance status.
Compose the status bar layout.
Manage visibility of status items based on terminal width.
Priority (highest first): model, cwd, git branch.
Set reactive values after mount to trigger watchers safely.
Update mode indicator when mode changes.
Update auto-approve indicator when state changes.
Update cwd display when it changes.
Update branch display when it changes.
Update status message display.
Set the current input mode.
Set the auto-approve state.
Set the status message.
Update token display when count changes.
Set the token count.
Forces a display refresh even when the value is unchanged. During
streaming, show_pending_tokens replaces the widget text without
changing the reactive token value, so a later update with the same
count still needs to re-render the exact count.
Show an unknown token count placeholder during streaming.
Update the model display text.