[PR #2486] [MERGED] Bugfix: Copy data should persist after Windows Terminal Closes #24941

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/2486
Author: @carlos-zamora
Created: 8/20/2019
Status: ✅ Merged
Merged: 8/20/2019
Merged by: @carlos-zamora

Base: master ← Head: dev/cazamor/bugfix-1644


📝 Commits (1)

  • be2f220 Add Clipboard::Flush() to allow copy data to persist after Windows Terminal closes

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 src/cascadia/TerminalApp/App.cpp (+1 -0)

📄 Description

Summary of the Pull Request

Turns out, you need to call Clipboard::Flush(). This is apparently a very common issue with the UWP Clipboard (link).

PR Checklist

Detailed Description of the Pull Request / Additional comments

N/A

Validation Steps Performed

Manual test of repro defined in bug report.


🔄 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/2486 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 8/20/2019 **Status:** ✅ Merged **Merged:** 8/20/2019 **Merged by:** [@carlos-zamora](https://github.com/carlos-zamora) **Base:** `master` ← **Head:** `dev/cazamor/bugfix-1644` --- ### 📝 Commits (1) - [`be2f220`](https://github.com/microsoft/terminal/commit/be2f2208fd084aef62ad779c9ca8463756f7acd8) Add Clipboard::Flush() to allow copy data to persist after Windows Terminal closes ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/App.cpp` (+1 -0) </details> ### 📄 Description ## Summary of the Pull Request Turns out, you need to call `Clipboard::Flush()`. This is apparently a very common issue with the UWP Clipboard ([link](https://stackoverflow.com/questions/31781019/clipboard-content-of-closed-windows-universal-app)). ## PR Checklist * [x] Closes #1644 * [x] CLA signed * [x] ~Tests added/passed~ * [x] ~Requires documentation to be updated~ * [x] I am a core contributor <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments N/A ## Validation Steps Performed Manual test of repro defined in bug report. --- <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:06:16 +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#24941