Right-clicking on tab closes it #23781

Closed
opened 2026-01-31 08:52:18 +00:00 by claunia · 8 comments
Owner

Originally created by @dmitrykobets-msft on GitHub (Nov 6, 2025).

Windows Terminal version

1.23.12811.0

Windows build number

10.0.22631.6060

Other Software

No response

Steps to reproduce

Right-click on a tab in windows terminal preview
Previously this allowed me to rename / do actions with the tab.
Now it closes the tab.

Expected Behavior

The tab should not get closed when right-clicking on it. Right-click is never a close behavior in any other Windows UI.

Actual Behavior

The tab gets closed when right-clicking on it

Originally created by @dmitrykobets-msft on GitHub (Nov 6, 2025). ### Windows Terminal version 1.23.12811.0 ### Windows build number 10.0.22631.6060 ### Other Software _No response_ ### Steps to reproduce Right-click on a tab in windows terminal preview Previously this allowed me to rename / do actions with the tab. Now it closes the tab. ### Expected Behavior The tab should not get closed when right-clicking on it. Right-click is never a close behavior in any other Windows UI. ### Actual Behavior The tab gets closed when right-clicking on it
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 08:52:18 +00:00
Author
Owner

@rijo7 commented on GitHub (Nov 7, 2025):

Hi! I’d love to work on this issue as my first contribution to Windows Terminal.

@rijo7 commented on GitHub (Nov 7, 2025): Hi! I’d love to work on this issue as my first contribution to Windows Terminal.
Author
Owner

@zadjii-msft commented on GitHub (Nov 7, 2025):

@rijo7 We don't typically assign out issues on this repo (unless it is to a core maintainer).

We'll review the PRs as we see them. Code Wins.

How would you go about fixing this?

@zadjii-msft commented on GitHub (Nov 7, 2025): @rijo7 We don't typically assign out issues on this repo (unless it is to a core maintainer). We'll review the PRs as we see them. Code Wins. How would you go about fixing this?
Author
Owner

@zadjii-msft commented on GitHub (Nov 7, 2025):

@dmitrykobets-msft Does this repro with Terminal Canary? This is most definitely not by design. But I can't repro this, so it'd be good to try and narrow down the root cause.

Did this regress recently for you/?

@zadjii-msft commented on GitHub (Nov 7, 2025): @dmitrykobets-msft Does this repro with [Terminal Canary](https://github.com/microsoft/terminal/discussions/16121)? This is most definitely not by design. But I can't repro this, so it'd be good to try and narrow down the root cause. Did this regress recently for you/?
Author
Owner

@rijo7 commented on GitHub (Nov 7, 2025):

I tested this on Windows Terminal Preview / Canary version 1.25.3101.0 on Windows 10 22H2.
Right-clicking on a tab now opens the context menu as expected, so this issue appears to be fixed in Canary.

@rijo7 commented on GitHub (Nov 7, 2025): I tested this on Windows Terminal Preview / Canary version 1.25.3101.0 on Windows 10 22H2. Right-clicking on a tab now opens the context menu as expected, so this issue appears to be fixed in Canary.
Author
Owner

@dmitrykobets-msft commented on GitHub (Nov 7, 2025):

@zadjii-msft, @rijo7 I installed Canary (1.25.3101.0) and it does not repro.

The issue only repros on my Microsoft Devbox, windows version 10.0.22631.6060, terminal version 1.23.12811.0.
Video:
https://github.com/user-attachments/assets/645cdd5b-1304-4075-a771-5065d17c8f89

On my laptop10.0.26100.4061, same terminal version (1.23.12811.0) this never repros.
Video:
https://github.com/user-attachments/assets/40c62a79-6a45-4689-bdc8-0310a99dbd0c

In the above videos:

  • left-click = yellow
    Image

  • right-click = red
    Image

  • middle-click = cyan
    Image

Repro is when a red right-click results in a tab being closed.

@dmitrykobets-msft commented on GitHub (Nov 7, 2025): @zadjii-msft, @rijo7 I installed Canary (`1.25.3101.0`) and it does not repro. The issue only repros on my Microsoft Devbox, windows version `10.0.22631.6060`, terminal version `1.23.12811.0`. Video: https://github.com/user-attachments/assets/645cdd5b-1304-4075-a771-5065d17c8f89 On my laptop`10.0.26100.4061`, same terminal version (`1.23.12811.0`) this never repros. Video: https://github.com/user-attachments/assets/40c62a79-6a45-4689-bdc8-0310a99dbd0c In the above videos: - left-click = yellow <img width="54" height="64" alt="Image" src="https://github.com/user-attachments/assets/b2098fed-866b-4a8d-ac78-041476d6595f" /> - right-click = red <img width="56" height="59" alt="Image" src="https://github.com/user-attachments/assets/fcd8d8a7-e2de-4c0a-b4b8-345e86b43678" /> - middle-click = cyan <img width="61" height="69" alt="Image" src="https://github.com/user-attachments/assets/65e99b10-5a51-4548-9569-e9dfac86897c" /> Repro is when a red right-click results in a tab being closed.
Author
Owner

@St-LF commented on GitHub (Nov 10, 2025):

And it only happens on the first click. After the tab is closed, right-click on other tabs will open the menu as expected.

@St-LF commented on GitHub (Nov 10, 2025): And it only happens on the first click. After the tab is closed, right-click on other tabs will open the menu as expected.
Author
Owner

@lhecker commented on GitHub (Nov 11, 2025):

This was fixed in #19273.

@lhecker commented on GitHub (Nov 11, 2025): This was fixed in #19273.
Author
Owner

@lhecker commented on GitHub (Nov 24, 2025):

I'll close this issue for now (for bookkeeping). As always, you can use our Canary release for the latest fixes.

@lhecker commented on GitHub (Nov 24, 2025): I'll close this issue for now (for bookkeeping). As always, you can use [our Canary release](https://aka.ms/terminal-canary-installer) for the latest fixes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23781