Repository navigation
Keep a dark, clickable spacer above the Sessions composer - #120
Merged
Merged
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
Human confirmation is warranted because the change affects terminal geometry and hit testing across many display modes, with potential narrow-pane and wrapped-metadata edge cases that require validating screenshot and race-suite behavior.
No open issues 🎉
What changed in this PR
Updates the terminal Sessions composer layout so the row above it remains a dark, clickable spacer that focuses the editor without submitting text. The change keeps composer geometry and hit targets aligned across full-detail, wide-row, queued, scheduled, and compact-popup views.
Changes:
- Adds a dedicated spacer row above composer input and updates editor sizing.
- Extends click handling and layout calculations for wide rows and the scheduler composer.
- Adjusts compact slash-popup rendering and expands regression coverage for rendering, hit targets, queues, and scheduling.
| File | Description |
|---|---|
| README.md | Documents the dark spacer row and composer click behavior. |
| internal/ui/monitor_turn_test.go | Updates working-composer row-count expectations. |
| internal/ui/monitor_schedule.go | Accounts for the spacer in scheduler sizing and hit testing. |
| internal/ui/monitor_schedule_toggle_test.go | Updates scheduler toggle placement expectations. |
| internal/ui/monitor_schedule_pane.go | Positions the scheduler spacer and composer together. |
| internal/ui/monitor_schedule_pane_test.go | Verifies scheduler spacer rendering and focus behavior. |
| internal/ui/monitor_queue_test.go | Verifies queue placement does not intercept the spacer. |
| internal/ui/monitor_prompt.go | Defines spacer geometry, hit testing, sizing, and rendering. |
| internal/ui/monitor_prompt_test.go | Covers spacer styling, clicks, wrapping, and detail-panel targets. |
| internal/ui/monitor_inline_prompt_test.go | Covers spacer clicks in selected wide rows. |
| internal/ui/monitor_history.go | Preserves reply visibility when compact slash menus open. |
| internal/ui/monitor_context.go | Routes detail-panel prompt hits through shared geometry. |
| internal/ui/monitor_context_modes.go | Applies spacer-aware wide-row rendering and hit testing. |
| internal/ui/monitor_command_popup_test.go | Verifies context remains visible with command popups. |
Review effort: Lite
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 changes
Verification
No version bump in this PR.