Skip to content

TUI: Bottom status line readability degrades in crowded multi-pane layouts #3

Done

Description

@KooshaPari

Problem

In crowded terminal layouts with multiple panes (3-6 agent sessions visible), the bottom status line is difficult to parse at a glance. The status area uses dim_color() for most text, making it visually compete with transcript content above it rather than forming a distinct information tier.

Observed behavior (from a real multi-pane session)

The status line blends into the transcript because:

  1. State labels are implicit, not explicit - sending context..., thinking..., waiting for response... are free-form text that requires reading to distinguish. In ForgeCode's equivalent, Reason 54:50m - Ctrl+C to interrupt uses a recognizable STATE TIME - CONTROL structure.
  2. dim_color() status text has insufficient contrast - the gray status text is close enough to transcript dim text that the two merge in peripheral vision, especially in narrow panes.
  3. Spinner is tiny and alone - the braille spinner at the start is the only visual signal of activity, but it is small and uses the same ai_color() as tool call highlights, so it does not form a visual anchor.
  4. All status info is in a single unstructured run - state, timing, and transport info are in one string separated only by middle dots. When the pane is narrow, this wraps or truncates unpredictably.

Comparison

ForgeCode (text-oriented, similar to Jcode's pane layout) handles this better (~50-75% there):

  • Reason 54:50m - Ctrl+C to interrupt - state is labeled, time is readable, control hint is present
  • Its status text is slightly bolder and more distinct from transcript content

Codex (TUI-heavy) is different enough that direct comparison is less useful, but its Working (6s - esc to interrupt) has clear structural separation from the transcript.

Proposed improvements

1. New status_text palette role with higher contrast

Add a dedicated palette role for status text (distinct from dim) that provides enough contrast to form a separate visual tier without competing with message text. This keeps the property that every status color is user-configurable.

2. Explicit bracketed state labels

Replace free-form status text with structured, scannable labels:

  • [sending] 4s instead of sending... 4s
  • [thinking] 12s instead of thinking... 12s
  • [streaming] 2.1s - 3.2 tps instead of 2.1s - 3.2 tps
  • [tool: bash] - cargo test - 8s instead of running bash - cargo test - 8s
  • [rate limited] auto-retry in 4m 30s instead of Rate limited. Auto-retry in 4m 30s

The bracketed prefix creates a fixed-width visual anchor that the eye can scan vertically across panes.

3. Sub-10s elapsed precision

Show tenths of a second below 10s (4.2s instead of 4s) so operators can distinguish fast vs slow tool calls without mental math.

4. Optional: status line background tint

A very subtle background tint on the status line (via the palette system, user-configurable) would physically separate it from the transcript area above. Lower priority but would complete the visual hierarchy.

Files affected

  • crates/jcode-tui-style/src/palette.rs - new status_text role
  • crates/jcode-tui/src/tui/ui_input.rs - draw_status(), format_elapsed(), helpers
  • crates/jcode-tui/src/tui/ui_inline_interactive.rs - format_elapsed() precision

Acceptance criteria

  • Status text uses a higher-contrast color than current dim_color() by default
  • Each processing state has a recognizable bracketed prefix
  • Elapsed time shows tenths below 10s
  • Existing status tests still pass (golden files may need updating)
  • All status colors remain user-configurable via [display.colors]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions