fix(tui): show the queued-message preview above the composer, not below - #361
Conversation
A message typed while a run is active is queued for the next turn. Its "[queued] …" preview rendered on the line BELOW the input box; move it to directly ABOVE the box so it reads as "waiting to send," sitting on top of what you're currently typing, and doesn't get visually detached from the composer by the status line beneath it. Footer height is unchanged (the preview line just moves from below to above the box). New test: TestQueuedPromptPreviewSitsAboveComposer asserts the preview line index is above the composer box top border.
Zero automated PR reviewVerdict: No blockers found Blockers
Validation
ScopeHead: This deterministic review checks validation status and basic diff hygiene. A human reviewer still owns product judgment and design quality. |
|
@CodeRabbit review |
✅ Action performedReview finished.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThe queued-message "waiting to send" preview in ChangesQueued Preview Ordering
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
Summary
A message typed while a run is active is queued for the next turn. Its
[queued] …preview rendered on the line below the input box; this moves it to directly above the box so it reads as "waiting to send," sitting on top of what you're currently typing, instead of being visually detached from the composer by the status line beneath it. Footer height is unchanged — the preview line just relocates from below to above the box.Test plan
go build ./...go vet ./internal/tui/go test ./internal/tui/ -count=1(new:TestQueuedPromptPreviewSitsAboveComposerasserts the preview line index is above the composer box top border)Summary by CodeRabbit