Repository navigation
Drop the dead origin option from a thread surface's open() - #2579
Merged
Merged
Conversation
`placeThreads(...).open(node, { origin })` passed `origin` to the
composition surface's `open`, which forwards to `commentOnTarget` and
reads only its first argument. #2020 removed `origin` there on purpose so
Escape resolves the same structural parent for every route into a comment.
The option, lf-diff's two `{ origin: ... }` arguments and module-authoring's
sentence promising Escape returns to that control were all left behind.
No behaviour changes: Escape from a widget datum's draft still returns
focus to the datum element when it can take focus, otherwise to the page
(probed on pr-walkthrough's file comment, base and worktree alike).
module-authoring now states that contract instead.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 12, 2026
# Conflicts: # skills/leaf/packages/diff/widgets/lf-diff.js # skills/leaf/references/module-authoring.md
leaf-agent
approved these changes
Oct 12, 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.
A widget's thread surface
open(node, { origin })passedoriginto the composition surface, whoseopenforwards tocommentOnTargetand reads only its first argument. #2020 (b11e278) removedoriginthere on purpose, so Escape resolves the same structural parent for every route into a comment. This deletes what that left behind: the option on the registration'sopen()and on thethreadSurface(owner)wrapper #2571 added, lf-diff's two{ origin: ... }arguments, the module-authoring sentence promising Escape returns to that control, and the{origin}that #2571 wrote into thesurfaces.jsheader and thex-thread-surfaceregistry entry (withdocs/registry.html, whichleaf-dev keydocsderives from it). Module-authoring now states the contract that holds instead: Escape from a datum's draft returns focus to the datum element when it can take focus, otherwise to the page.Lit follow-up review item 76 (the review's own numbering, not a GitHub issue):
.lf-diff-fileelement on both the merge base and this branch.surfaces.js+4/−5,lf-diff.js+2/−2), net −1.Ran:
test_render_diff_controls.py, the inline-diff comment test intest_render_widgets.py, the two diff thread tests intest_render_threads.py, the data-bound diff aim test intest_render_anchors.py, the panel-cover navigation test, the registry/keydocs product tests, andtests/runtime/thread-surfaces.test.mjs.