Open minimusubi opened 1 month ago
I'm really glad you mention the "Don't close the new window for a month (???)". I've got a kooky guess. I suspect that this is due to the app platform staging an update to the Terminal. 1.19 is super old at this point - 1.20 has been stable since May.
I fully suspect that because the package is half-updated, the COM object that we use to communicate across processes doesn't match from the new invocation to the old one, and so a new instance is started. Like, the Terminal should only ever have one instance of WindowsTerminal.exe
ever. The fact that it's running two separate instances (one for each window) is sus as heck.
I low key bet that the Microsoft.Terminal.Remoting.dll
that's used by each of these processes (if you've still got them running) will be different versions.
Yep, they're still running. How could I go about checking the dll version used for each process?
I think I found them. I used the lower pane to view DLLs for each process in Process Explorer. Let me know if this was incorrect or if there's a better way.
It seems like it's the exact same DLL for both processes. Referencing the same processes from above:
C:\Program Files\WindowsApps\Microsoft.Windows Terminal_1.19.11213.0_x64_8wekyb3d8bbwe\Microsoft.Terminal.Remoting.dll
1.19.2404.30003
C:\Program Files\WindowsApps\Microsoft.Windows Terminal_1.19.11213.0_x64_8wekyb3d8bbwe\Microsoft.Terminal.Remoting.dll
1.19.2404.30003
The DLL itself was last modified on 5/4/24.
Two thoughts:
C:\Program Files\WindowsApps\Microsoft.Windows Terminal_1.{{something}}
that's got a higher version number? That would lead credence to the theory that there's a new package version stagedwt
as admin? Or both of them as admin/? (a la #9628)Yeah, you're right- there is a higher version listed, and it was created days after the first process (from the above example) was spawned.
Both terminal processes are unelevated (see op for screenshot)
Windows Terminal version
1.19.11213.0
Windows build number
10.0.19045.4651
Other Software
No response
Steps to reproduce
wt.exe --window fancy-window-id new-tab
)wt.exe --window fancy-window-id new-tab
)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. Both windows are not elevated (note the absence of shield icons for each window)