You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4f9cb7a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(web): terminal paste no longer lands twice in Chromium
The paste shortcut races navigator.clipboard.readText() against the
browser's native paste event. The token only covered the native event
landing first. When Chromium routes the paste through its menu
(installed web apps, Electron), the read resolves first and the native
paste that follows was also sent.
The read now records the text it sent on the shortcut's gesture, and
onPaste drops the one matching native paste. The gesture ends on the
shortcut key's keyup, the next shortcut, blur, or that paste, so a later
Edit > Paste of the same text still lands. Design from r4iju's #13357
and the #13346 triage.
Fixes#13346
Co-Authored-By: Claude Opus 5.5 <[email protected]>
0 commit comments