Wt window being visible when spawning wt -w 0 -p profile_name #19093

Closed
opened 2026-01-31 06:33:32 +00:00 by claunia · 1 comment
Owner

Originally created by @brupelo on GitHub (Dec 18, 2022).

Windows Terminal version

1.15.3465.0

Windows build number

Microsoft Windows [Version 10.0.19045.2364]

Other Software

No response

Steps to reproduce

When you run the command wt -w 0 -p profile_name you can see each time a new wt process is spawned a new terminal subwindow will appear very fast and then will be attached/docked to the master window.

Is this behaviour intended? If not, is there any existing way to prevent this behaviour and make it more clean without the user being aware how this temporary subwindow is being created "behind the curtains"?

References:

Expected Behavior

Similar clean/non-intrusive behaviour of spawning wt -w 0 -p profile_name than pressing the + button

image

Actual Behavior

Here's an example of what I mean:

https://user-images.githubusercontent.com/18058492/208300229-4903e6e5-7aa8-40ca-b69f-1ba18c81b4bc.mp4

Originally created by @brupelo on GitHub (Dec 18, 2022). ### Windows Terminal version 1.15.3465.0 ### Windows build number Microsoft Windows [Version 10.0.19045.2364] ### Other Software _No response_ ### Steps to reproduce When you run the command `wt -w 0 -p profile_name` you can see each time a new wt process is spawned a new terminal subwindow will appear very fast and then will be attached/docked to the master window. Is this behaviour intended? If not, is there any existing way to prevent this behaviour and make it more clean without the user being aware how this temporary subwindow is being created "behind the curtains"? References: - [https://learn.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows#target-a-specific-window](https://learn.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows#target-a-specific-window) - [https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/ns-processthreadsapi-startupinfoa#syntax](https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/ns-processthreadsapi-startupinfoa#syntax) ### Expected Behavior Similar clean/non-intrusive behaviour of spawning `wt -w 0 -p profile_name` than pressing the + button ![image](https://user-images.githubusercontent.com/18058492/208300368-731681cb-c0c6-4634-a2af-e4720c3095c6.png) ### Actual Behavior Here's an example of what I mean: https://user-images.githubusercontent.com/18058492/208300229-4903e6e5-7aa8-40ca-b69f-1ba18c81b4bc.mp4
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 06:33:32 +00:00
Author
Owner

@brupelo commented on GitHub (Dec 18, 2022):

False positive, the behaviour was on my end caused by using an old sublime package https://github.com/codexns/newterm. When spawning wt with python's subprocess.run or spawning the process directly from a normal shell everything works fine

@brupelo commented on GitHub (Dec 18, 2022): False positive, the behaviour was on my end caused by using an old sublime package [https://github.com/codexns/newterm](https://github.com/codexns/newterm). When spawning `wt` with python's subprocess.run or spawning the process directly from a normal shell everything works fine
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19093