Repository navigation
Release removed markup after a Copy pointer press - #2708
Merged
Merged
Conversation
The Copy control kept the last pointerdown composed path in a module-level array. A click on served markup could therefore keep an entire removed section alive after a live revision. Keep path membership in a WeakSet so the following click can still verify its source while detached nodes can be collected. The link and selection release cases failed before this change and pass after it.
max-sixty
added a commit
that referenced
this pull request
Oct 13, 2026
main gained #2697, #2700 and #2708. The three files that conflicted (event_contracts.py, findings.py, work.py) take main's content with the sweep's edits re-applied by .tmp/standing/apply.py; the "not visible under the page's standing outcomes" message moved from work.py to findings.py, and the script now edits it there. main added no other non-glossary "standing". Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.
Cause
The Copy control stored the latest
pointerdowncomposedPath()in a module-level array. A click on markup later removed by a live revision kept the clicked node and its section alive until another pointer press. Two forced-GC cases in the failed main run exposed this retention.Change
Store path membership in a
WeakSet. The Copy control can still decide whether its click began on the shown control, while the path does not keep removed nodes alive.Verification
linkandselectioncases oftest_a_revision_releases_the_served_markup_it_removesfailed before the change and all three cases pass after it.pnpm run test:runtime: 392 tests passed.