Repository navigation
Give the shown extent, the coarse-pointer query, and the text keeper one owner each - #1277
Merged
Merged
Conversation
…one owner each - `rect.js` owns `union`, the box that covers some boxes, and `geometry.js` owns `shownExtent(el)`, the box an element's shown parts cover. Margin pin placement and the response field's room both read it; the private copies in `margin-layout.js` and `composing/surface.js` are gone, and the surface's clipped unions use `union`. - `pointer.js` owns `coarsePointer`, the one `(pointer: coarse)` query that the soft-keyboard submit binding, the response surface, and the target chooser read. The keyboard dispatcher's closure now includes `pointer.js`, which imports nothing. - `passages.js` exports `GENERATED`; `target-references.js` imports it. - `margin-entries.js` asks `motion.js` `reducedMotion()` for the agent-arrival cue. - `widget-elements.js` adds `keepsText(node, text)`, the text half of `keeps`, and `relabel` now keeps its words and `data-lf-gen` instead of rewriting them. Widgets get `el` and `keepsText` through `widget-api.js`. Every "set the text only if it changed" copy in the kernel and packages calls it instead, and `pr-review` drops its `setText`/`make` copies of `keepsText`/`el`. Behaviour that moved: `relabel` given the words a node already says writes nothing, so it no longer replaces that node's children, and the relabel guards in `lf-command` and `lf-visual-review` are gone. `keepsText` compares the stringified value, as `keeps` does, so a caller may pass a count. `presentation.js` keeps its inline guard, since importing `widget-elements.js` would pull that module's graph into the presentation module's startup imports. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Sep 27, 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.
rect.jsownsunion, the box that covers some boxes, andgeometry.jsownsshownExtent(el), the box an element's shown parts cover. Margin pin placement andthe response field's room both read it; the private copies in
margin-layout.jsand
composing/surface.jsare gone, and the surface's clipped unions useunion.pointer.jsownscoarsePointer, the one(pointer: coarse)query that thesoft-keyboard submit binding, the response surface, and the target chooser read.
The keyboard dispatcher's closure now includes
pointer.js, which imports nothing.passages.jsexportsGENERATED;target-references.jsimports it.margin-entries.jsasksmotion.jsreducedMotion()for the agent-arrival cue.widget-elements.jsaddskeepsText(node, text), the text half ofkeeps, andrelabelnow keeps its words anddata-lf-geninstead of rewriting them. Widgetsget
elandkeepsTextthroughwidget-api.js. Every "set the text only if itchanged" copy in the kernel and packages calls it instead, and
pr-reviewdrops itssetText/makecopies ofkeepsText/el.Behaviour that moved:
relabelgiven the words a node already says writes nothing,so it no longer replaces that node's children, and the relabel guards in
lf-commandandlf-visual-revieware gone.keepsTextcompares the stringifiedvalue, as
keepsdoes, so a caller may pass a count.presentation.jskeeps its inline guard, since importingwidget-elements.jswouldpull that module's graph into the presentation module's startup imports.
Collisions: the uncommitted Codex thread-general-interface tree edits
composing/surface.js(itscreateResponseSurfaceparameters and athread/panel-elements.jsimport),geometry.js(declareOccluder), andwidget-api.js(the Thread exports). This change touches other hunks in each.Left as they are:
lf-targeting's ownGENERATED = "[data-lf-gen]"asks a narrower, package-local question.lf-agent'swordhelper stays because that file useselas a parameter name throughout.lf-visual-review'smakewrites throughrelabelwith asayschoice, so it is not a copy ofel.🤖 Generated with Claude Code