Option to display confirm dialog on CloseTab #23236

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

Originally created by @bartlomiejcieszkowski on GitHub (May 5, 2025).

Description of the new feature

Quite often when changing the tabs with mouse i accidentaly close the tab.
While similar things is not a problem when using a browser, as i can reopen the tab, in terminal it is a hassle, as we dont restore the state when we reopen it ;)

This becomes more of a problem when a user has multiple tabs, as the tabs get smaller.
Also with touch screen its easy to close a tab by accident.

Proposed technical implementation details

Option in settings to enable "Confirm to close", and then display a confirmation window on close, or something similar, eventually option to make specific profile as "confirm to close"

Originally created by @bartlomiejcieszkowski on GitHub (May 5, 2025). ### Description of the new feature Quite often when changing the tabs with mouse i accidentaly close the tab. While similar things is not a problem when using a browser, as i can reopen the tab, in terminal it is a hassle, as we dont restore the state when we reopen it ;) This becomes more of a problem when a user has multiple tabs, as the tabs get smaller. Also with touch screen its easy to close a tab by accident. ### Proposed technical implementation details Option in settings to enable "Confirm to close", and then display a confirmation window on close, or something similar, eventually option to make specific profile as "confirm to close"
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 08:36:15 +00:00
Author
Owner

@j4james commented on GitHub (May 5, 2025):

I think this feature is broadly covered in issue #6549. The different use cases are listed in https://github.com/microsoft/terminal/issues/6549#issuecomment-675494526.

Also note that there's an option to hide the close button that can help avoid closing a tab by accident.

@j4james commented on GitHub (May 5, 2025): I think this feature is broadly covered in issue #6549. The different use cases are listed in https://github.com/microsoft/terminal/issues/6549#issuecomment-675494526. Also note that there's an [option to hide the close button](https://learn.microsoft.com/en-us/windows/terminal/customize-settings/themes#show-close-button) that can help avoid closing a tab by accident.
Author
Owner

@bartlomiejcieszkowski commented on GitHub (May 6, 2025):

unfortunately there seems to be some regression with
"showCloseButton": "never",
i dont see a close button, but also can't close any tab with middle mouse button or ctrl+w

@bartlomiejcieszkowski commented on GitHub (May 6, 2025): unfortunately there seems to be some regression with `"showCloseButton": "never",` i dont see a close button, but also can't close any tab with middle mouse button or ctrl+w
Author
Owner

@j4james commented on GitHub (May 6, 2025):

unfortunately there seems to be some regression with
"showCloseButton": "never",

It works for me on version 1.23.11132.0. Would probably be best to file a separate bug report for that, and provide more details on how you reproduce the problem.

@j4james commented on GitHub (May 6, 2025): > unfortunately there seems to be some regression with > `"showCloseButton": "never",` It works for me on version 1.23.11132.0. Would probably be best to file a separate bug report for that, and provide more details on how you reproduce the problem.
Author
Owner

@DHowett commented on GitHub (May 7, 2025):

Yes please - if you'r eexperiencing an issue with the showCloseButton feature, please file it!

For the rest, this is a /duplicate of #6549. Thanks (and thanks James!)

@DHowett commented on GitHub (May 7, 2025): Yes please - if you'r eexperiencing an issue with the `showCloseButton` feature, please file it! For the rest, this is a /duplicate of #6549. Thanks (and thanks James!)
Author
Owner

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

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service[bot] commented on GitHub (May 7, 2025): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! <!-- 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#23236