Repository navigation
Give a thread record its turns, say a seat change with lf-layout, and release an outlet through the surface handle - #6995
Merged
Merged
Conversation
… an outlet through the surface handle One group of step six of the package-interface redesign. A thread's record carries `turns`, so a package stops importing the turn rule (`threadTurns`). A widget that seats threads says its seats changed with `lf-layout`, which already asks for a thread pass, so `threadSurface(owner).update()` goes. `releaseOutlets(node)` becomes `threadSurface(owner).release(node)`, on the handle its caller holds, and answers for that widget's outlets only. `threadInput` stays: folded into `landInThread(node)`, the option group's Enter row can only ask whether it stands in chrome, which is true in the On view, where the thread draws no reply box.
# Conflicts: # skills/leaf/references/module-plain-elements.md
…yout rule once, and check stranding without focusout The seat rule for `lf-layout` lives in module-annotations.md, and the event's entry in module-plain-elements.md only names outlets among what Leaf reads again. The removal test reads focus in the task after the removal, since Firefox fires no `focusout` for a removed node, and first shows that the removal dropped focus.
# Conflicts: # browser/runtime/widget-api.js # examples/developer/feature-gallery.page/widgets/lf-conversation-workspace.js # skills/leaf/references/module-annotations.md # tests/browser/test_render_application_boundary.py
leaf-agent
previously approved these changes
Nov 24, 2026
leaf-agent
approved these changes
Nov 24, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 24, 2026
Brings in main's six newer commits, through e7d5808 (#6998). One conflict, in the imports of browser/runtime/annotation-overlay/margin-projection.js. This branch imports `focusByKey` and `focusKey` from carry.js, so that Back returns the user to where they were in a card. #6998 moved `rove` out of focus.js into lib/roving.js and imports it from there. The resolution keeps both imports. The rest of the file merged cleanly, as main plus this branch's card changes. None of the incoming commits touches history.js, version.js, prepaint.js, bootstrap.js, carry.js, document-inputs.js or leaf.js. Their thread changes are these: - #6995 changes how a widget says its seats changed (`lf-layout`) and releases an outlet through the surface handle. - #6997 changes how a live sample's growth is held. - #6998 moves `el` and `rove` into the library. None of them changes thread destinations, the entry's record or the handoff. > _This was written by Claude Code on behalf of max-sixty_
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.
One group (
threads) of step six of the package-interface redesign. A thread's record carriesturns, so a package stops importing the turn rule (threadTurns). A widget that seats threads says its seats changed withlf-layout, which already asked for a thread pass, sothreadSurface(owner).update()goes and no event name is added.releaseOutlets(node)becomesthreadSurface(owner).release(node). The package API goes from 112 names to 110.To weigh:
releaseanswers only for the calling widget's own outlets, wherereleaseOutletsscanned every surface.lf-diffdispatcheslf-layoutas a file folds; with sixty open files it asks for as many thread passes as onmain, and the event's listeners add under 11 ms across the sixty.threadInputstays: folded intolandInThread(node), the option group's Enter row could only ask whether it stands in chrome, which is also true in the On view, where no reply box is drawn, so the command reference would list a dead key there.Ran
pnpm run check, pre-commit, the browser tests that cover this by node id, base-versus-head probes in Chromium and Firefox, and the outlets eval case on both arms. Thetestjob fails ontest_a_data_bound_diff_aims_and_selects_one_source_line, which this change edits and which fails at the same line onmain.