Put the modifiers back, so unspooling repeats - #19
Merged
Merged
Conversation
Releasing the held modifiers before synthesizing Ctrl+V fixed the paste and broke the gesture the feature exists for. Windows was left believing Win and Alt were up while the user was still physically holding them, so the next U arrived as a bare u and was typed into their document: unspool worked once, then printed uuuu. Waiting several seconds appeared to help only because the user let go and pressed again, which re-registered the modifiers. Every modifier that was down is now pressed again after the paste. Hold Win+Alt, tap U as often as you like, and each tap serves and pastes the next clip. Restoring Win threatens a Start menu, since Windows opens it on a Win release with no other key in between and a restored Win looks exactly like that. An unassigned virtual key sent straight afterwards marks the chord as used. Measured against a real window with the modifiers held throughout: three taps, three distinct clips, no stray characters, and the foreground unchanged after release. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This was referenced Sep 11, 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.
Unspooling worked once and then typed
uuuu.The cause was the previous fix
Releasing the held modifiers before synthesizing
Ctrl+Vfixed the paste and broke the gesture the feature exists for. Windows was left believingWinandAltwere up while the user was still physically holding them, so the nextUarrived as a bareuand was typed into their document.Waiting several seconds appeared to help, but only because the user let go and pressed again, which re-registered the modifiers. That is not a workaround anyone should accept — the whole point of the design is: hold
Win+Alt, tapUas often as you like.The fix
Every modifier that was down is pressed again after the paste, so the OS state matches the user's hands again.
Restoring
Winthen threatens a Start menu, because Windows opens it on aWinrelease with no other key in between — and a restoredWinlooks exactly like that. An unassigned virtual key sent straight afterwards marks the chord as used.Measured
Win+Altheld down throughout,Utapped three separate times, against a real window:Three distinct clips, no stray characters, and the foreground unchanged on release — no Start menu.
369 tests, typecheck, lint, and the zero-network gate pass.
Known, not addressed here
Two tests in
session.test.tssit right at the 5s timeout and fail intermittently. The cause is real and measured:looksLikeSecrettakes 147ms per 1 MiB clip, because the key-prefix and connection-keyword needles each walk the whole buffer separately. That is a user-visible hitch on large copies. The fix is a single pass checking every needle at each position — same detection semantics, no narrowing of what counts as a secret — and it belongs in its own change.🤖 Generated with Claude Code