Skip to content

Fix 5s lags when using OSC 52 clipboard copy - #20728

Merged
Leonard Hecker (lhecker) merged 3 commits into
mainfrom
dev/lhecker/clipboard-lag
Sep 28, 2026
Merged

Leonard Hecker (lhecker) merged 3 commits into
mainfrom
dev/lhecker/clipboard-lag

Conversation

@lhecker

Copy link
Copy Markdown
Member

Hilarious repro: printf "\e]0;A\a\e]52;c;Qg==\a"

This issue is exactly what happens when you Ctrl+X in a clean file in
msedit and it freezes Windows Terminal. It's because it puts a "•" in
the title and copies the text.

It triggers a title and clipboard change in the same frame which causes
the UI and VT thread to deadlock trying to get the console lock.

@lhecker
Leonard Hecker (lhecker) marked this pull request as draft September 26, 2026 23:49
@lhecker
Leonard Hecker (lhecker) marked this pull request as ready for review September 28, 2026 14:29
@lhecker

Copy link
Copy Markdown
Member Author

Tested locally - works perfectly.

@github-project-automation github-project-automation Bot moved this to To Cherry Pick in 1.25 Servicing Pipeline Sep 28, 2026
@github-project-automation github-project-automation Bot moved this to To Cherry Pick in 1.24 Servicing Pipeline Sep 28, 2026
@lhecker
Leonard Hecker (lhecker) merged commit 0626dc1 into main Sep 28, 2026
18 of 20 checks passed
@lhecker
Leonard Hecker (lhecker) deleted the dev/lhecker/clipboard-lag branch September 28, 2026 15:11
Dustin L. Howett (DHowett) pushed a commit that referenced this pull request Sep 29, 2026
Hilarious repro: `printf "\e]0;A\a\e]52;c;Qg==\a"`

This issue is exactly what happens when you Ctrl+X in a clean file in
msedit and it freezes Windows Terminal. It's because it puts a "•" in
the title and copies the text.

It triggers a title and clipboard change in the same frame which causes
the UI and VT thread to deadlock trying to get the console lock.

(cherry picked from commit 0626dc1)
Service-Card-Id: PVTI_lADOAF3p4s4BQX0-zg9O_QY
Service-Version: 1.25
Dustin L. Howett (DHowett) pushed a commit that referenced this pull request Oct 1, 2026
Hilarious repro: `printf "\e]0;A\a\e]52;c;Qg==\a"`

This issue is exactly what happens when you Ctrl+X in a clean file in
msedit and it freezes Windows Terminal. It's because it puts a "•" in
the title and copies the text.

It triggers a title and clipboard change in the same frame which causes
the UI and VT thread to deadlock trying to get the console lock.

(cherry picked from commit 0626dc1)
Service-Card-Id: PVTI_lADOAF3p4s4BBcTlzg9O_Qs
Service-Version: 1.24
@DHowett Dustin L. Howett (DHowett) moved this from Cherry Picked to Validated in 1.24 Servicing Pipeline Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Validated

Development

Successfully merging this pull request may close these issues.

3 participants