Skip to content

fix(tui): move the status line out of the conversation column - #719

Merged
mohitranka merged 1 commit into
mainfrom
fix/status-line-out-of-conversation
Sep 18, 2026
Merged

mohitranka merged 1 commit into
mainfrom
fix/status-line-out-of-conversation

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

What

The status line (the feedback strip, widgets/feedback.rs) was the first row of the sidebar's stack — directly under the transcript, inside the conversation column.

It is 0 or 1 rows tall and expires 7s after it is written, so every status message appearing and expiring shifted the conversation by a line, and it put file-save confirmations and refusals like No file open to save inside the column the operator is reading.

It is shell chrome, not conversation. It now renders as a full-width row directly above the footer, alongside the other chrome rows.

How

  • layout.rs: the feedback row moves from the sidebar split into the top-level stack, above the footer. The sidebar becomes [transcript, queue, background, gutter, input].
  • fixed_h accounts for the new row so the bottom panel's height budget stays correct; the sidebar's background-strip clamp drops the fb term it no longer reserves.
  • feedback.rs: the single-row form pads to PANE_PAD_X — the origin it now shares with the footer — instead of the sidebar's TEXT_INSET.
  • render.rs is unchanged: it already painted FeedbackBar into regions.feedback, so only the rect moved.

All 187 set_feedback call sites are untouched. This moves where the row renders, not what writes to it — so the relocation costs a layout split rather than 187 edits.

Verification

  • New status_line_reserved_above_the_footer asserts the row is full content width, sits directly on top of the footer, and starts below everything the conversation column occupies.
  • New status_line_does_not_enter_the_sidebar_split pins that it costs the conversation nothing inside the sidebar.
  • layout 23 passed, feedback 14, conversation 123, visual_test 24, theme 71, multi_task 56, toast 9.
  • Updated tui08_feedback_strip_visible_on_frame, which asserted the old placement (feedback.y < input.y).
  • cargo fmt --all -- --check clean, cargo clippy --package forge-tui --all-targets --locked -- -D warnings clean.
  • Docs: FORGE-DESIGN.md §7 diagram, §7.1 block list, §7.4 text origin, §9.10.

Two things worth reviewing

  • The theme::panel() fill is unchanged. It now sits above a footer that fills with theme::canvas(), so the row reads as a distinct band. That is likely right, but it is the one detail I could not verify without looking at a rendered frame.
  • Not caused here, but present: app::tests::chrome::completed_turn_renders_unfinished_checks_without_claiming_failure is flaky locally (fails Waiting vs Completed, ~1 run in 3) and cargo test --package forge-tui hangs in app::tests::editor. Both reproduce on a pristine tree with these changes stashed.

The feedback strip was the first row of the sidebar's stack, directly under the transcript. It is 0 or 1 rows tall and expires 7s after it is written, so every status message appearing and expiring shifted the conversation by a line — and put file-save confirmations and refusals like "No file open to save" inside the column the operator is reading.

It is shell chrome, not conversation. It now renders as a full-width row directly above the footer, alongside the other chrome rows, and pads to `PANE_PAD_X` — the origin it shares with the footer beneath it — rather than the sidebar's `TEXT_INSET`.

All 187 `set_feedback` call sites are untouched: this moves where the row renders, not what writes to it.

Docs: FORGE-DESIGN.md §7 layout diagram and block list, §7.4 text origin, §9.10.
@mohitranka
mohitranka merged commit 620ae52 into main Sep 18, 2026
3 checks passed
@mohitranka
mohitranka deleted the fix/status-line-out-of-conversation branch September 18, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant