Make tabs "lockable" so they can't be accidentally closed by a mis-click #23583

Closed
opened 2026-01-31 08:46:25 +00:00 by claunia · 4 comments
Owner

Originally created by @5ocworkshop on GitHub (Sep 3, 2025).

Description of the new feature

I have been doing a lot of AI agentic coding lately and I often have multiple CLI coding tools open as well as shells and server output etc. at the same time. So I'm switching back and forth between tabs frequently. more than once a minor mis-click has resulted in the very important active CLI tool window being closed mid-job, which is not always easy to recover.

It would be really nice if there was a right click option on a tab to "Lock" the tab so that it removes the "x" close and won't let you close the app overall until you unlock the tab(s).

Proposed technical implementation details

No response

Originally created by @5ocworkshop on GitHub (Sep 3, 2025). ### Description of the new feature I have been doing a lot of AI agentic coding lately and I often have multiple CLI coding tools open as well as shells and server output etc. at the same time. So I'm switching back and forth between tabs frequently. more than once a minor mis-click has resulted in the very important active CLI tool window being closed mid-job, which is not always easy to recover. It would be really nice if there was a right click option on a tab to "Lock" the tab so that it removes the "x" close and won't let you close the app overall until you unlock the tab(s). ### Proposed technical implementation details _No response_
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-FixNeeds-Author-Feedback labels 2026-01-31 08:46:26 +00:00
Author
Owner

@similar-issues-ai[bot] commented on GitHub (Sep 3, 2025):

We've found some similar issues:

  • #8007 , similarity score: 82%

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@similar-issues-ai[bot] commented on GitHub (Sep 3, 2025): We've found some similar issues: - #8007 , similarity score: 82% If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue. > Note: You can give me feedback by 👍 or 👎 this comment.
Author
Owner

@zadjii-msft commented on GitHub (Sep 3, 2025):

Have you tried marking the tab as read-only? That will prevent you from closing the tab accidentally.

Image Image
@zadjii-msft commented on GitHub (Sep 3, 2025): Have you tried marking the tab as read-only? That will prevent you from closing the tab accidentally. <img width="548" height="228" alt="Image" src="https://github.com/user-attachments/assets/9953d141-db3c-45b4-a8a9-24a21195e8b4" /> <img width="869" height="537" alt="Image" src="https://github.com/user-attachments/assets/b076a73a-7c32-4027-be78-76f485803a2c" />
Author
Owner

@ars-celare commented on GitHub (Jan 28, 2026):

With all respect, this is schoolboy-level UX.

Can I point out the amazing prowess of fundamental things like this nudging the user gently towards Linux?

Not a completed issue btw.

@ars-celare commented on GitHub (Jan 28, 2026): With all respect, this is schoolboy-level UX. Can I point out the amazing prowess of fundamental things like this nudging the user gently towards Linux? Not a completed issue btw.
Author
Owner

@zadjii-msft commented on GitHub (Jan 28, 2026):

@ars-celare If you have constructive feedback to provide, you're more than welcome to open a new thread for your suggestion.

We closed this thread because after we provided a pointer at a working solution, OP had no further feedback to provide.

But there's always more room for improvement ☺️

@zadjii-msft commented on GitHub (Jan 28, 2026): @ars-celare If you have constructive feedback to provide, you're more than welcome to open a new thread for your suggestion. We closed this thread because after we provided a pointer at a working solution, OP had no further feedback to provide. But there's always more room for improvement ☺️
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23583