Repository navigation
fix(tui): move the status line out of the conversation column - #719
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 saveinside 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_haccounts for the new row so the bottom panel's height budget stays correct; the sidebar's background-strip clamp drops thefbterm it no longer reserves.feedback.rs: the single-row form pads toPANE_PAD_X— the origin it now shares with the footer — instead of the sidebar'sTEXT_INSET.render.rsis unchanged: it already paintedFeedbackBarintoregions.feedback, so only the rect moved.All 187
set_feedbackcall 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
status_line_reserved_above_the_footerasserts the row is full content width, sits directly on top of the footer, and starts below everything the conversation column occupies.status_line_does_not_enter_the_sidebar_splitpins that it costs the conversation nothing inside the sidebar.layout23 passed,feedback14,conversation123,visual_test24,theme71,multi_task56,toast9.tui08_feedback_strip_visible_on_frame, which asserted the old placement (feedback.y < input.y).cargo fmt --all -- --checkclean,cargo clippy --package forge-tui --all-targets --locked -- -D warningsclean.FORGE-DESIGN.md§7 diagram, §7.1 block list, §7.4 text origin, §9.10.Two things worth reviewing
theme::panel()fill is unchanged. It now sits above a footer that fills withtheme::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.app::tests::chrome::completed_turn_renders_unfinished_checks_without_claiming_failureis flaky locally (failsWaitingvsCompleted, ~1 run in 3) andcargo test --package forge-tuihangs inapp::tests::editor. Both reproduce on a pristine tree with these changes stashed.