Terminal sometimes sends Ctrl+C to the shell when moving tabs #23452

Closed
opened 2026-01-31 08:42:41 +00:00 by claunia · 5 comments
Owner

Originally created by @apromenschenkel on GitHub (Jul 17, 2025).

Windows Terminal version

1.22.11141.0

Windows build number

10.0.22621.5472

Other Software

I use terminal with WSL 2.3.26.0 almost exclusively. I'm not sure if this effects other shells such as PowerShell or Command Prompt.

Steps to reproduce

This is an intermittent issue. It is unknown what causes it to occur or not.

Click and hold a Terminal tab and then either drag it to a different position in the tab bar, or drag it away from the tab bar to detach it in its own window.

Expected Behavior

Rearranging tabs shouldn't send any text input to the shell.

Actual Behavior

Occasionally, rearranging tabs causes a Ctrl+C character to be sent to the shell. This is particularly problematic in bash if the shell is running an application, because this sends SIGINT to the running program and causes it to stop.

A screen capture of this occuring:

https://github.com/user-attachments/assets/e1cc049e-229f-4715-8c56-0b3f686e2e3f

Originally created by @apromenschenkel on GitHub (Jul 17, 2025). ### Windows Terminal version 1.22.11141.0 ### Windows build number 10.0.22621.5472 ### Other Software I use terminal with WSL 2.3.26.0 almost exclusively. I'm not sure if this effects other shells such as PowerShell or Command Prompt. ### Steps to reproduce This is an intermittent issue. It is unknown what causes it to occur or not. Click and hold a Terminal tab and then either drag it to a different position in the tab bar, or drag it away from the tab bar to detach it in its own window. ### Expected Behavior Rearranging tabs shouldn't send any text input to the shell. ### Actual Behavior Occasionally, rearranging tabs causes a Ctrl+C character to be sent to the shell. This is particularly problematic in bash if the shell is running an application, because this sends SIGINT to the running program and causes it to stop. A screen capture of this occuring: https://github.com/user-attachments/assets/e1cc049e-229f-4715-8c56-0b3f686e2e3f
claunia added the Needs-TriageIssue-BugNeeds-Author-FeedbackNo-Recent-Activity labels 2026-01-31 08:42:42 +00:00
Author
Owner

@lhecker commented on GitHub (Jul 21, 2025):

Interesting... That's not something I've experienced before. Or even seen before.

It may be helpful to record a trace like this: https://github.com/microsoft/terminal/wiki/Troubleshooting-Tips#capturing-a-debug-etl-trace

@lhecker commented on GitHub (Jul 21, 2025): Interesting... That's not something I've experienced before. Or even seen before. It may be helpful to record a trace like this: https://github.com/microsoft/terminal/wiki/Troubleshooting-Tips#capturing-a-debug-etl-trace
Author
Owner

@apromenschenkel commented on GitHub (Jul 21, 2025):

Thanks for your response. Here is a terminal tap of the issue (in both text and screenshot form), as well as the output of the linux "script" command in the file "term2". I am unable to capture an ETL trace because this is occurring on a work machine where I do not have the ability to start an elevated terminal. I can try and recreate this issue on a personal machine if these files don't provide enough information.

term2.txt
Terminal Debug Tap.txt
Image

@apromenschenkel commented on GitHub (Jul 21, 2025): Thanks for your response. Here is a terminal tap of the issue (in both text and screenshot form), as well as the output of the linux "script" command in the file "term2". I am unable to capture an ETL trace because this is occurring on a work machine where I do not have the ability to start an elevated terminal. I can try and recreate this issue on a personal machine if these files don't provide enough information. [term2.txt](https://github.com/user-attachments/files/21351521/term2.txt) [Terminal Debug Tap.txt](https://github.com/user-attachments/files/21351520/Terminal.Debug.Tap.txt) <img width="1915" height="405" alt="Image" src="https://github.com/user-attachments/assets/66844c3e-76eb-4832-9d24-17b29e847f9a" />
Author
Owner

@DHowett commented on GitHub (Aug 6, 2025):

Alas, the debug tap does make it look like there's a ^C coming from somewhere. It looks like a legitimate keyboard event... but we are absolutely not emitting it.

Expanding the search a little bit, do you have any software that might try to interact with the clipboard (such as, by trying to force a copy with Ctrl+C) on every new window?

@DHowett commented on GitHub (Aug 6, 2025): Alas, the debug tap does make it look like there's a `^C` coming from _somewhere_. It looks like a legitimate keyboard event... but we are absolutely not emitting it. Expanding the search a little bit, do you have any software that might try to interact with the _clipboard_ (such as, by trying to force a copy with <kbd>Ctrl+C</kbd>) on every new window?
Author
Owner

@DHowett commented on GitHub (Aug 6, 2025):

(Or other window management software?)

@DHowett commented on GitHub (Aug 6, 2025): (Or other window management software?)
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Aug 10, 2025):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service[bot] commented on GitHub (Aug 10, 2025): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**. <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23452