--window or -w sometimes creates multiple windows with same id #22155

Open
opened 2026-01-31 08:04:56 +00:00 by claunia · 0 comments
Owner

Originally created by @minimusubi on GitHub (Aug 25, 2024).

Originally assigned to: @lhecker on GitHub.

Windows Terminal version

1.19.11213.0

Windows build number

10.0.19045.4651

Other Software

No response

Steps to reproduce

  1. Open a new tab in a new named window (wt.exe --window fancy-window-id new-tab)
  2. Don't close the new window for a month (???) (I'm not sure what's actually required here, but it usually seems to stop working after some time)
  3. Open a new tab in the same named window (wt.exe --window fancy-window-id new-tab)
  4. Observe a new, separate window has opened, instead of a new tab in the existing window

Expected Behavior

A new tab should have opened in the window we opened in step 1.

Actual Behavior

A new window with our new tab opens instead.

Here is a screenshot of two processes in ProcessExplorer. You can see that they have been started nearly a month apart, and that they have the same window ID specified.
image
Both windows are not elevated (note the absence of shield icons for each window)
image

Originally created by @minimusubi on GitHub (Aug 25, 2024). Originally assigned to: @lhecker on GitHub. ### Windows Terminal version 1.19.11213.0 ### Windows build number 10.0.19045.4651 ### Other Software _No response_ ### Steps to reproduce 1. Open a new tab in a new named window (`wt.exe --window fancy-window-id new-tab`) 2. Don't close the new window for a month (???) (I'm not sure what's actually required here, but it usually seems to stop working after some time) 4. Open a new tab in the same named window (`wt.exe --window fancy-window-id new-tab`) 5. Observe a new, separate window has opened, instead of a new tab in the existing window ### Expected Behavior A new tab should have opened in the window we opened in step 1. ### Actual Behavior A new window with our new tab opens instead. Here is a screenshot of two processes in ProcessExplorer. You can see that they have been started nearly a month apart, and that they have the same window ID specified. ![image](https://github.com/user-attachments/assets/3683deb7-ed38-4cda-bf8f-d542ddcc8669) Both windows are not elevated (note the absence of shield icons for each window) ![image](https://github.com/user-attachments/assets/cc65a055-5448-4af9-a897-5f9b46cfa206)
claunia added the Needs-TriageIssue-BugIn-PRNeeds-Attention labels 2026-01-31 08:04:56 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22155