Skip to content

Keep a dark, clickable spacer above the Sessions composer - #120

Merged
merefield merged 2 commits into
mainfrom
fix/session-composer-spacer
Nov 27, 2026
Merged

merefield merged 2 commits into
mainfrom
fix/session-composer-spacer

Conversation

@merefield

Copy link
Copy Markdown
Owner

What changes

  • Keep the row immediately above the terminal Sessions composer blank and on the normal dark panel background. Clicking it focuses the composer without sending, including for the selected wide row and the anchored scheduler composer.
  • Keep the existing hint, button and footer hit targets. Activity dots and follow-ups stay above the spacer; compact slash menus still leave the current reply visible.

Verification

  • Go vet and complete Go suite, including all locales
  • Targeted race tests for composer, queue, scheduler and slash menus
  • Seven screenshot integrity checks and the duplication gate

No version bump in this PR.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@merefield
merefield merged commit 15b61dc into main Nov 27, 2026
13 of 14 checks passed
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.

2 participants