Repository navigation
Conversation
…eraction-sessions # Conflicts: # docs/src/generated/docs-contract.json # scripts/public-api-baseline.json
…eraction-sessions # Conflicts: # docs/src/generated/docs-contract.json # scripts/public-api-baseline.json
chh-ay
added this pull request to stack #69
October 9, 2026 01:33
…eraction-sessions
…eraction-sessions
Owner
Author
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.
Summary
Architecture layer: one private owner for pointer, editor and context-menu sessions.
The grid spread pointer, editor and context-menu ownership across
GridImpland a loose input controller, so gestures, editors and context menus could outlive the state they were captured against. A singleInteractionSessionControllernow owns all three. The review's five defects are fixed as one change, and the hot paths the review touched were measured:Gate: baseline
4997890, five A/A control rounds and five alternating rounds, each scenario in a fresh Bun process pinned to CPU 4 under the shared lock. Every changed path is at or better than its A/A band and no untouched workload is slower. Owned cold long task stays at zero, under the 50 ms ceiling; the inverse index and dirty-100 bytes stay at their ceilings.The layer also adds the interaction benchmark producer (
bench/src/interaction-sessions-bench.ts) and documents its paired-noise protocol, so the release capture regenerates theinteraction-current-v2evidence from the checked-in producer.Changesets
interaction-sessions:@sheetwrite/corepatch.Verification
api:checkanddocs:checkpass.input.test.tscovers cancellation and resize-history contracts;semantic-grid.test.tscovers the editor-target and selection contracts;examples.spec.tsdrives the browser paths.