The TUI should reserve a small active-turn affordance and context meter row
below the prompt input frame. While the agent is working, the line shows the
same braille spinner used beside Thinking, followed by
esc to interrupt on the left, and the current context meter on the right. When
the turn settles, the active hint disappears; if context usage is known, the
right-side context meter may remain visible on the same row. If neither the
active hint nor context meter is available, the row remains mounted as an empty
one-row spacer so the composer height does not flash.
busy state as the active hint source of truth and the
existing TUI session projection as the context meter source of truth.current
turn running, and it must not render esc to interrupt inside the border.The active hint is part of a one-line OpenTUI presentation component:
busy is false and no context
meter is available.busy is
true.esc to interrupt.<used> (<percent>), for example 24.1K (2%).tui-input-session-panel.md.The spinner is a
single-cell braille spinner cycling through ⠋, ⠙, ⠹, ⠸, ⠼, ⠴,
⠦, ⠧, ⠇, and ⠏. The animation may use component-local timer state.
That state is purely presentational: it must not own session state, perform I/O,
call providers, or mutate runtime status. The timer is disposed when the active
spinner content unmounts after the turn ends.
The row should reserve only one terminal row outside the input frame whether it is empty, showing the active hint, showing the context meter, or showing both. It should not add another border or panel chrome, because the input box already owns the composer frame. The input metadata width budget must not include the active hint or context meter, because neither is rendered inside that row.
If the turn fails, is cancelled, or completes, the same cleanup path that clears
busy removes the active hint. If the animation timer cannot tick, the hint may
keep a static spinner frame while still showing the interrupt label.
esc to interrupt while busy.