Skip to main content

Module status

Module status 

Source
Expand description

Bottom status-bar renderer.

The status bar is the dense one-liner that summarises the agent’s current connection, model, token usage, cost, turn counter and per-turn elapsed time. It is rendered below the transcript on the chat screen.

Format (segments separated by ):

 local │ deepseek-chat │ ↑1.2k ↓342  $0.0024 │ turn 3 │ ⏱ 2.3s

Cost is omitted when the model has no pricing entry in providers.toml; elapsed time is shown only while a turn is running.

Functions§

build_line
Public for tests — produces the styled Line without rendering.
render
Build the styled status-bar paragraph for the given App.