Windows Terminal opens in background when called by other apps #14075

Closed
opened 2026-01-31 04:00:12 +00:00 by claunia · 6 comments
Owner

Originally created by @maicol07 on GitHub (May 31, 2021).

Windows Terminal version (or Windows build number)

1.9.1445.0

Other Software

Visual Studio 16.10

Steps to reproduce

First method

  1. Go to a folder in Explorer
  2. Right click and click Open in Powershell or Open in Linux shell

Second method

  1. Open Visual Studio 2019
  2. Run a project
  3. Same result as above

Expected Behavior

Windows Terminal opening regularly in the foreground, above other running apps

Actual Behavior

Windows Terminal opens in background when it's set as default terminal app and is run from Visual Studio or from explorer

Originally created by @maicol07 on GitHub (May 31, 2021). ### Windows Terminal version (or Windows build number) 1.9.1445.0 ### Other Software Visual Studio 16.10 ### Steps to reproduce **First method** 1. Go to a folder in Explorer 2. Right click and click Open in Powershell or Open in Linux shell **Second method** 1. Open Visual Studio 2019 2. Run a project 3. Same result as above ### Expected Behavior Windows Terminal opening regularly in the foreground, above other running apps ### Actual Behavior Windows Terminal opens in background when it's set as default terminal app and is run from Visual Studio or from explorer
Author
Owner

@lhecker commented on GitHub (May 31, 2021):

This issue was fixed in https://github.com/microsoft/terminal/pull/10217 and the next preview version will contain this fix. 🙂

@lhecker commented on GitHub (May 31, 2021): This issue was fixed in https://github.com/microsoft/terminal/pull/10217 and the next preview version will contain this fix. 🙂
Author
Owner

@TerminatedProcess commented on GitHub (Sep 6, 2021):

It's still doing it.

@TerminatedProcess commented on GitHub (Sep 6, 2021): It's still doing it.
Author
Owner

@TerminatedProcess commented on GitHub (Sep 6, 2021):

Just to elaborate.. I'm running win 11 - Version 10.0.22449 Build 22449
I use a shortcut key app called Executor to run the following command:

wt -p "Ubuntu"

It was working when I initially started using win 11 over a week ago, but lately it just opens in the background since I got my last big update.

@TerminatedProcess commented on GitHub (Sep 6, 2021): Just to elaborate.. I'm running win 11 - Version 10.0.22449 Build 22449 I use a shortcut key app called Executor to run the following command: wt -p "Ubuntu" It was working when I initially started using win 11 over a week ago, but lately it just opens in the background since I got my last big update.
Author
Owner

@DHowett commented on GitHub (Sep 7, 2021):

Hey @TerminatedProcess -- thanks for elaborating. Definitely hard to work with a reply like "It's still doing it" 😄

I think you're seeing a bug we're calling MSFT-35378923 (sorry, you almost certainly won't be able to see it) where the window manager doesn't give us foreground priority because of how we're launched.

It should be fixed in public pretty soon.

@DHowett commented on GitHub (Sep 7, 2021): Hey @TerminatedProcess -- thanks for elaborating. Definitely hard to work with a reply like "It's still doing it" :smile: I think you're seeing a bug we're calling MSFT-35378923 (sorry, you almost certainly won't be able to see it) where the window manager doesn't give us foreground priority because of how we're launched. It should be fixed in public pretty soon.
Author
Owner

@TerminatedProcess commented on GitHub (Sep 7, 2021):

Thank you! It’s dealable for now..

From: Dustin L. Howett @.>
Sent: Tuesday, September 7, 2021 11:20 AM
To: microsoft/terminal @.
>
Cc: Mark Ryan @.>; Mention @.>
Subject: Re: [microsoft/terminal] Windows Terminal opens in background when called by other apps (#10300)

Hey @TerminatedProcesshttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FTerminatedProcess&data=04%7C01%7C%7C5cf6194d9d0e482832c208d97212f9f9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637666248096228258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=0dj0K%2FDX43dG0NycFLSAD6D0VQGRDGArfjaprKtwaNs%3D&reserved=0 -- thanks for elaborating. Definitely hard to work with a reply like "It's still doing it" 😄

I think you're seeing a bug we're calling MSFT-35378923https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftask.ms%2F35378923&data=04%7C01%7C%7C5cf6194d9d0e482832c208d97212f9f9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637666248096238260%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wlcqohNk1Zh%2Fg29gVRqAgXH2hUKZVdYJZxaQGRRwZDc%3D&reserved=0 (sorry, you almost certainly won't be able to see it) where the window manager doesn't give us foreground priority because of how we're launched.

It should be fixed in public pretty soon.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fterminal%2Fissues%2F10300%23issuecomment-914400206&data=04%7C01%7C%7C5cf6194d9d0e482832c208d97212f9f9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637666248096248254%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=KLEc2I1eYhLQOyhHFt4hgpNjDSBlxLCPSsB585GKZak%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAPD6NPC6BZURMWGG5WSJDMLUAYUSPANCNFSM453ITEOQ&data=04%7C01%7C%7C5cf6194d9d0e482832c208d97212f9f9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637666248096248254%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=scMEnLLLARlTAACbUpeWX5%2FI4p8MFRQX9ahplrVzJsY%3D&reserved=0.
Triage notifications on the go with GitHub Mobile for iOShttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7C5cf6194d9d0e482832c208d97212f9f9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637666248096258245%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=YxiFelDeHck9%2FltpYCJgJgRcBnJesp%2Ba9P1rKNgT7Ig%3D&reserved=0 or Androidhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7C5cf6194d9d0e482832c208d97212f9f9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637666248096268244%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=HTMpKAf3D1bocTcv7Enq64LIHsh6inyCbLfH402U%2BXI%3D&reserved=0.

@TerminatedProcess commented on GitHub (Sep 7, 2021): Thank you! It’s dealable for now.. From: Dustin L. Howett ***@***.***> Sent: Tuesday, September 7, 2021 11:20 AM To: microsoft/terminal ***@***.***> Cc: Mark Ryan ***@***.***>; Mention ***@***.***> Subject: Re: [microsoft/terminal] Windows Terminal opens in background when called by other apps (#10300) Hey @TerminatedProcess<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FTerminatedProcess&data=04%7C01%7C%7C5cf6194d9d0e482832c208d97212f9f9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637666248096228258%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=0dj0K%2FDX43dG0NycFLSAD6D0VQGRDGArfjaprKtwaNs%3D&reserved=0> -- thanks for elaborating. Definitely hard to work with a reply like "It's still doing it" 😄 I think you're seeing a bug we're calling MSFT-35378923<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftask.ms%2F35378923&data=04%7C01%7C%7C5cf6194d9d0e482832c208d97212f9f9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637666248096238260%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wlcqohNk1Zh%2Fg29gVRqAgXH2hUKZVdYJZxaQGRRwZDc%3D&reserved=0> (sorry, you almost certainly won't be able to see it) where the window manager doesn't give us foreground priority because of how we're launched. It should be fixed in public pretty soon. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fterminal%2Fissues%2F10300%23issuecomment-914400206&data=04%7C01%7C%7C5cf6194d9d0e482832c208d97212f9f9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637666248096248254%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=KLEc2I1eYhLQOyhHFt4hgpNjDSBlxLCPSsB585GKZak%3D&reserved=0>, or unsubscribe<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAPD6NPC6BZURMWGG5WSJDMLUAYUSPANCNFSM453ITEOQ&data=04%7C01%7C%7C5cf6194d9d0e482832c208d97212f9f9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637666248096248254%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=scMEnLLLARlTAACbUpeWX5%2FI4p8MFRQX9ahplrVzJsY%3D&reserved=0>. Triage notifications on the go with GitHub Mobile for iOS<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7C5cf6194d9d0e482832c208d97212f9f9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637666248096258245%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=YxiFelDeHck9%2FltpYCJgJgRcBnJesp%2Ba9P1rKNgT7Ig%3D&reserved=0> or Android<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7C5cf6194d9d0e482832c208d97212f9f9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637666248096268244%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=HTMpKAf3D1bocTcv7Enq64LIHsh6inyCbLfH402U%2BXI%3D&reserved=0>.
Author
Owner

@zadjii-msft commented on GitHub (Sep 14, 2021):

(I'm re-closing this as fix-committed because the original issue was addressed by that PR, but there's a similar issue with a totally different root cause at play now)

@zadjii-msft commented on GitHub (Sep 14, 2021): (I'm re-closing this as fix-committed because the original issue _was_ addressed by that PR, but there's a similar issue with a totally different root cause at play now)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14075