Skip to content

Report tab-strip overflow and the count-cell anchor - #10

Merged
BenevolentFutures merged 2 commits into
mainfrom
c11-245-count-cell-anchor
Oct 1, 2026
Merged

BenevolentFutures merged 2 commits into
mainfrom
c11-245-count-cell-anchor

Conversation

@BenevolentFutures

Copy link
Copy Markdown
Contributor

What

Two host callbacks on BonsplitController, plus the tab bar reporting into them:

  • onTabStripOverflow: a pane's strip can scroll, or it has folded into the solid block. False while that pane's rail is open. Edge-triggered.
  • onCountCellAnchor: the count cell's NSView, so a host can anchor a popover under it. The same view is not reported twice, and the view is not retained. A reader whose view has left its window does not clear a different view that is still on screen.
  • onTabSheetOpenChanged: the pane's tab sheet opened or closed.

The count cell reports from the scrolling strip, the folded block, and the rail bar. The reader does not hit-test, so it does not take the cell's click. Nothing here runs on the typing path.

Why

c11's rail tip (C11-245) has to sit under the count cell and know when the strip overflows. Both facts live in the tab bar. The host keeps the tip copy, the trigger policy, and the defaults.

How validated

Not built locally (laptop build lock). CI on this PR is the compile check. c11's logic tests cover the trigger policy; they do not link this UI.

The c11 PR will pin this SHA until it is on main. Please merge with a merge commit so that pin can move to the merge commit.

BenevolentFutures and others added 2 commits October 1, 2026 00:10
The host can tell when a pane's strip is scrolling or folded, and can anchor a popover on that pane's count cell. Reports are edge-triggered. The anchor view is not retained, and a reader that is leaving the window does not clear a live replacement.

Co-Authored-By: Grok 4.7 <noreply@x.ai>
A closed pane no longer keeps its overflow bit, count-cell anchor, or sheet flag. The collapsed header comment matches the anchor reader: that view's hitTest returns nil, so the bar's tap still fires.

Co-Authored-By: Grok 4.7 <noreply@x.ai>
@BenevolentFutures
BenevolentFutures force-pushed the c11-245-count-cell-anchor branch from cc72cff to ba5bb79 Compare October 1, 2026 07:12
@BenevolentFutures
BenevolentFutures merged commit d20db06 into main Oct 1, 2026
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