Skip to content

refactor(tui): read zone rects from Yoga instead of stacking them - #1466

Merged
TheGreatAxios merged 3 commits into
mainfrom
cl-10650-tui-adopt-native-layout-primitives
Oct 16, 2026
Merged

TheGreatAxios merged 3 commits into
mainfrom
cl-10650-tui-adopt-native-layout-primitives

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Zone rects come from a Yoga column (padding gutters, locked flex basis/min/max) and assignRects is gone.
  • COLLAPSE_ORDER, transcript/overlay floors, overlay in-flow relayout, and the shell paste router stay in TypeScript because Yoga flex shrink and onPaste cannot keep those contracts.
  • Prompt wheel forwarding uses onMouseScroll.

Verification

  • Message-only amend ran the pre-commit hook: tsc --noEmit and bun build passed.
  • bun run test was not re-run for this open.

Refs CL-10650

Ordered collapse stays in the resolver: unequal flexShrink weights make
this Yoga build overflow the column, and equal weights ignore
COLLAPSE_ORDER. Prompt wheel forwarding uses onMouseScroll.

Refs CL-10650
@linear-code

linear-code Bot commented Oct 16, 2026

Copy link
Copy Markdown

CL-10650

@corbits-triage

corbits-triage Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

A wheel over the focused prompt replaces onMouseEvent, so the textarea viewport does not scroll with the transcript.

Refs CL-10650
Prompt wheel routing stays on the transcript handler already on main.
This slice only reads zone rects from Yoga.

Refs CL-10650
@TheGreatAxios
TheGreatAxios merged commit 1b07411 into main Oct 16, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant