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
Flaky test: terminal-copy-regression.ts finds no clipboard write inside mouseup after a plain drag #551
scripts/terminal-copy-regression.ts, the plain drag step, failed once in the browser lane of "Integration and browser" on a PR that touches no terminal code (#544, CI scripts only), and passed on the next run of the same branch.
AssertionError: drag copy must begin inside mouseup, before timers or server responses lose the gesture
+ []
- [
- true
- ]
at scripts/terminal-copy-regression.ts:86
window.clipboardGesture.writes was empty: by the time the step read it, no clipboard write had been recorded. The two assertions before it had passed (the clipboard held the dragged text, and no mouse report reached the pane), and the "copied to clipboard" banner was showing.
Why
Not looked into. The step reads clipboardGesture.writes right after the banner appears, so either the write that the recorder counts had not begun inside mouseup in that run (the product copying later, from a timer, which is what the assertion is there to catch), or the recorder and the copy the banner reports are not the same event under load.
A drag step of this script is also in the maintainer's notes as a timing failure seen on #402's CI (2026-10-04); whether it was this assertion is not recorded.
Until it is fixed
A rerun of the failed job has passed each time. This is not one of the two failures fixed on 2026-10-07 (#536, the alert lost to a roster frame; #537, the roster naming a new agent late).
Activity
test(terminal): a drag in the copy regression waits for its own viewp…