[PR #5856] [MERGED] Teach TerminalPage to handle exceptions that happen during paste #26507

Open
opened 2026-01-31 09:16:29 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/5856
Author: @DHowett-MSFT
Created: 5/12/2020
Status: Merged
Merged: 5/12/2020
Merged by: @DHowett-MSFT

Base: masterHead: dev/duhowett/toe_tag


📝 Commits (1)

  • 42848cc Stop eating it on exceptions during paste

📊 Changes

1 file changed (+8 additions, -4 deletions)

View changed files

📝 src/cascadia/TerminalApp/TerminalPage.cpp (+8 -4)

📄 Description

Summary of the Pull Request

Terminal should try not to join the choir invisible when the clipboard
API straight up horks it.

This accounts for ~3% of the crashes seen in 1.0RC1 and ~1% of the crashes
seen all-up in the last 14 days.

Fixes #4906.

PR Checklist

Validation Steps Performed

Found out a surefire way to repro it!

"copyOnSelect": true

Copy something small.

Hold down Ctrl+Shift+V

Double-click like your life depends on it. Double-click like you're
playing cookie clicker again. 2013 called, it wants its cookies back.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/5856 **Author:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Created:** 5/12/2020 **Status:** ✅ Merged **Merged:** 5/12/2020 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `dev/duhowett/toe_tag` --- ### 📝 Commits (1) - [`42848cc`](https://github.com/microsoft/terminal/commit/42848cccf13640873965bc546b373f9dc41975fa) Stop eating it on exceptions during paste ### 📊 Changes **1 file changed** (+8 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+8 -4) </details> ### 📄 Description ## Summary of the Pull Request Terminal should try not to join the choir invisible when the clipboard API straight up horks it. This accounts for ~3% of the crashes seen in 1.0RC1 and ~1% of the crashes seen all-up in the last 14 days. Fixes #4906. ## PR Checklist * [x] Closes #4906 * [x] CLA'd * [ ] Tests passed/do not exist * [ ] Requires documentation to be updated * [x] Meh ## Validation Steps Performed Found out a surefire way to repro it! `"copyOnSelect": true` Copy something small. Hold down <kbd>Ctrl+Shift+V</kbd> Double-click like your life depends on it. Double-click like you're playing cookie clicker again. 2013 called, it wants its cookies back. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:16:29 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#26507