wt -w 0 -p "MyProfile" No Longer Opens New Tab #23309

Closed
opened 2026-01-31 08:38:27 +00:00 by claunia · 2 comments
Owner

Originally created by @PaulCoddington on GitHub (May 28, 2025).

Windows Terminal version

1.22.11141.0

Windows build number

10.0.26100.0

Other Software

Powershell 7.5.1

Steps to reproduce

In recent versions of Windows Terminal, the following Powershell script command:

wt -w 0 -p "MyProfile"

no longer opens a new tab in the target window, as it used to.

Instead, it executes in the current tab, causing the calling script to block
until the MyProfile process exits.

This breaks existing workflows and scripts that rely on the previous behavior
to launch services in background tabs and continue execution asynchronously.

Expected Behavior

A Powershell script containing the command:

wt -w 0 -p "MyProfile"

should:

  • Open a new tab in the current window
  • Launch the specified profile
  • Return control immediately to the script that launched it

This allows launching multiple server applications in parallel, and/or in
sequence after availability checks (e.g. Test-NetConnection or Start-Sleep),
each in its own customized terminal environment.

Actual Behavior

The first profile launched now:

  • Runs in the current tab

  • Blocks the script until it exits

  • Ignores new-tab behavior implicitly expected by -p

  • Ignores new-tab behavior explicitly expected by new-tab or by wrapping the command in start-process.

This change breaks automation scripts that:

  • Launch local services in isolated profiles

  • Use Windows Terminal as a service supervisor

Originally created by @PaulCoddington on GitHub (May 28, 2025). ### Windows Terminal version 1.22.11141.0 ### Windows build number 10.0.26100.0 ### Other Software Powershell 7.5.1 ### Steps to reproduce In recent versions of Windows Terminal, the following Powershell script command: ``` wt -w 0 -p "MyProfile" ``` no longer opens a new tab in the target window, as it used to. Instead, it executes in the current tab, causing the calling script to block until the MyProfile process exits. This breaks existing workflows and scripts that rely on the previous behavior to launch services in background tabs and continue execution asynchronously. ### Expected Behavior A Powershell script containing the command: ``` wt -w 0 -p "MyProfile" ``` should: * Open a new tab in the current window * Launch the specified profile * Return control immediately to the script that launched it This allows launching multiple server applications in parallel, and/or in sequence after availability checks (e.g. Test-NetConnection or Start-Sleep), each in its own customized terminal environment. ### Actual Behavior The first profile launched now: * Runs in the current tab * Blocks the script until it exits * Ignores new-tab behavior implicitly expected by `-p` * Ignores new-tab behavior explicitly expected by `new-tab` or by wrapping the command in `start-process`. This change breaks automation scripts that: * Launch local services in isolated profiles * Use Windows Terminal as a service supervisor
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:38:27 +00:00
Author
Owner

@PaulCoddington commented on GitHub (May 28, 2025):

Solved it: problem between chair and desk. Apologies for letting loose a wild goose. It's been one of those days.

@PaulCoddington commented on GitHub (May 28, 2025): Solved it: problem between chair and desk. Apologies for letting loose a wild goose. It's been one of those days.
Author
Owner

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

Untamed ornithoids, in my repository?

Thanks for following up. We run triage every Wednesday, and you beat us to asking additional questions. 🙂

@DHowett commented on GitHub (May 28, 2025): Untamed ornithoids, in _my_ repository? Thanks for following up. We run triage every Wednesday, and you beat us to asking additional questions. 🙂
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23309