Forced default profile tab, no matter what (when wt is the default terminal application) #23390

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

Originally created by @AbraxasDMG on GitHub (Jun 25, 2025).

Hi everyone,

This might be intended behavior but I need to ask anyway.

Whenever I start wt (preview) from the command line, if there is no wt already running, a window will be created with an empty default profile, irrelevant of what was supplied at the command line.

This is happening in case that the wt is set as the default terminal application.

So, if I execute wt -p cmd (for command prompt), a window will pop up with a default tab (for pwsh in my case0 and with cmd tab.
Even if I execute wt -p pwsh (which is a default profile), there will be 2 pwsh tabs.

If this is indeed an intended behavior, is there a workaround to avoid the creation of this default profile tab?

Thanks in advance!

Originally created by @AbraxasDMG on GitHub (Jun 25, 2025). Hi everyone, This might be intended behavior but I need to ask anyway. Whenever I start wt (preview) from the command line, if there is no wt already running, a window will be created with an empty default profile, irrelevant of what was supplied at the command line. This is happening in case that the wt is set as the default terminal application. So, if I execute wt -p cmd (for command prompt), a window will pop up with a default tab (for pwsh in my case0 and with cmd tab. Even if I execute wt -p pwsh (which is a default profile), there will be 2 pwsh tabs. If this is indeed an intended behavior, is there a workaround to avoid the creation of this default profile tab? Thanks in advance!
Author
Owner

@DHowett commented on GitHub (Jul 2, 2025):

Interesting!

  • What version of Terminal are you using? You can check with wt -v.
  • Are you by chance using one of the persistence options such as "restore windows from last session"?
  • If you open the folder containing settings.json, do you have a bunch of buffer state files laying around/?

Image

@DHowett commented on GitHub (Jul 2, 2025): _Interesting!_ - What version of Terminal are you using? You can check with `wt -v`. - Are you by chance using one of the persistence options such as "restore windows from last session"? - If you open the folder containing settings.json, do you have a bunch of buffer state files laying around/? ![Image](https://github.com/user-attachments/assets/c65bcdfc-0844-435d-aec3-48aaa7893094)
Author
Owner

@AbraxasDMG commented on GitHub (Jul 2, 2025):

Hi.

  • It's the WT Preview v1.23.11752.0 on Windows 11.
  • The "When terminal starts" option is set to "Open tab with the default profile" (it's the only other available option aside from "Open windows from a previous session").
  • Aside from the settings.json, there is one state.json file in that folder. File modification time differs by 1 second (state.json +1 second).
@AbraxasDMG commented on GitHub (Jul 2, 2025): Hi. - It's the WT Preview v1.23.11752.0 on Windows 11. - The "When terminal starts" option is set to "Open tab with the default profile" (it's the only other available option aside from "Open windows from a previous session"). - Aside from the settings.json, there is one state.json file in that folder. File modification time differs by 1 second (state.json +1 second).
Author
Owner

@carlos-zamora commented on GitHub (Aug 13, 2025):

Thanks for getting back to us. A fix should be available on the Canary channel, which can be found here: https://github.com/microsoft/terminal?tab=readme-ov-file#installing-windows-terminal-canary

We also backported the fixes to v1.23, so it should be available on the lastest v1.23 release.

Can you confirm if that fixed your issue/?

@carlos-zamora commented on GitHub (Aug 13, 2025): Thanks for getting back to us. A fix should be available on the Canary channel, which can be found here: https://github.com/microsoft/terminal?tab=readme-ov-file#installing-windows-terminal-canary We also backported the fixes to v1.23, so it should be available on the lastest v1.23 release. Can you confirm if that fixed your issue/?
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Aug 18, 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 18, 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#23390