Repository navigation
Open the comment box where a panel beside the page leaves it in sight - #1927
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…footprint Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 6, 2026
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.
With Threads open beside
annotation-workspace,con a selection used to open the comment box in the annotation rail under the panel, so the user typed into a box they could barely see. Now the box opens in the panel's foot, and returns to the rail when the panel closes. This is the part of Max's rule from the #1897 audit ("the panels should dominate whatever focus changes we have, focus should not be able to affect panels") that the repo already settles.How
geometry.jsgainsunderOccluder(where): whether any standing panel or drawerhidesit, which is the measure travel already uses.seatFab(composing/surface.js) refuses a seat a panel stands over, so the box stays at its home. Without the overlay, that home is the Threads panel's foot; with it, the box floats beside the selection. The check reads the seat, not the editor moved into it, because an outlet that hasn't rendered the editor yet measures it as zero width. A boxless outlet is judged by the element that lays out its contents.reachChanged→invalidateDom, at most once a frame), so the box moves to whichever seat it can now use. Dragging the Threads edge over an inline diff comment onpr-walkthroughnow moves the box clear of the panel with its words.Left for Max: Tab under a panel beside the page
Tab still walks onto the rail's controls under Threads at 1440×900, and onto an Ask's option marks under the Queue panel at 1200px. I first made everything a panel covers by more than half its width
inert. That kept Tab off it, but an independent review found two problems:corpusat 1100px with Threads open, 145 such elements still showed beside the panel.I withdrew it. TODO.md records the decision this needs:
skills/leaf/assets/AGENTS.md.hidessays it covers. The overlay stays, but Leaf takes over sequential order from the browser, including stops inside shadow trees.Tests
test_a_comment_box_opens_where_a_panel_beside_the_page_leaves_it_in_sightis new. It covers the rail under Threads, the box's return when the panel closes, and a slow edge drag. It fails on main, and it fails when the seat check or the re-seat is removed, or when the re-seat runs only on open and close.