Skip to content

Grant an open overlay its minimum even below the prompt floor - #927

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-6986-resolvegeometrys-best-effort-fallback-can-size-an-overlay
Sep 12, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-6986-resolvegeometrys-best-effort-fallback-can-size-an-overlay

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Best-effort overlay geometry re-checks the overlay minimum after collapse and may take rows from below the prompt floor so an open overlay is never sized under minOverlay when any terminal rows exist.
  • Approval overlays on 6-, 7-, and 9-row terminals keep a closed border and paint at least one choice in the frame. An unanswerable approval deadlocks the session; a cramped prompt does not.

Verification

  • bun run typecheck, bun run build, and bun run test pass
  • bun run check passes (6972 tests)

Fixes CL-6986

An unanswerable approval deadlocks the session; a cramped prompt does
not. Best-effort geometry re-checks the overlay minimum and may take
rows from below the prompt floor so the border still closes and at
least one choice remains painted.
@linear-code

linear-code Bot commented Sep 12, 2026

Copy link
Copy Markdown

CL-6986

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Critic · Approve

The overlay takes prompt rows as needed while preserving a closed, bounded frame and a visible approval choice at 6, 7, and 9 terminal rows.

No findings.

Notes

  • bun test src/tui/overlay-min-geometry.test.ts src/tui/decision-truncation.test.ts src/tui/palette-paint.test.ts passes 30 tests, including rendered-frame assertions for all three target heights.
  • bun run typecheck passes.

@TheGreatAxios
TheGreatAxios merged commit a61cd76 into main Sep 12, 2026
9 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-6986-resolvegeometrys-best-effort-fallback-can-size-an-overlay branch September 12, 2026 04:06
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