You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable globalSummon / quakeMode to work even when there isn't a running Terminal #9996
Area-RemotingCommunication layer between windows. Often for windowing behavior, quake mode, etc.In-PRThis issue has a related PRIssue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Product-TerminalThe new Windows Terminal.
This is probably going to need the "headless monarch" work we theorized. Different parts to this:
We've already got startOnUserLogin which starts the Terminal window.
Is any window the monarch then?
Is the monarch a phoenix (when it's killed, who restarts it?)
I've had many more thoughts on the matter in the past, I just need to have somewhere to put them.
Reacted by Szabolcs Dézsi, Malcolm, Miles Budnek, githrdw, Borja Sánchez García, Alistair Young, Frg Tech, deoradh, Hameron, Ken Sykora and 138 more
Reacted by David Maas, Cuteivist, Relief.Melone, Carlos Coelho, Nitin Krishna Mucheli, , radutomy, Aaron Weinberg, Jacob Chwastek, Arshdeep Singh and 16 more
Reacted by Nitin Krishna Mucheli, , Aaron Weinberg, ^_^ , dzikoysk, Luracasmus, Borja Sánchez García, Alfonso Valencia, Cherry, K Matthaus EHON and 5 more
Is the monarch a phoenix (when it's killed, who restarts it?)
I'm pretty sure this already came to your mind before, but what about using the service approach?
It'd only require the tray icon feature to enable the persistence and provide some control over the service itself.
I guess that'd also allow termination commands like exit, while keeping the globalSummon or quakeMode available, for as long as the service is running.
Could it be useful to have some kind of a master orchestrator service? Something like a service to host and manage all WT instances?
Reacted by vannomad, Chaphasilor, Ryan Nett, Viktor Demenev, JCaldeira, Zura Jijavadze, Shaunak Vairagare, Tag Howard, moke, Lachlan Picking and 6 more
Been testing out the preview channel and I LOVE quake mode. Since the terminal is so core to my development workflow, it'd be HUGE if this launched on startup so it felt like a core part of the OS.
Reacted by Kristen McWilliam, abiram, corwinx, John Reid, Lucas Ritzdorf, Jonathan Moore, Brian Lalonde, Shaunak Vairagare, Michael Ellnebrand, Tag Howard and 23 more
Is this issue purely about starting (and keep running) Terminal at startup? I was looking for a way to manually start a terminal in Quake mode, just as asked for in issue #10206.
This doesn't work since I have both the stable and the preview version installed, and wt runs the stable version. Most likely I could simply uninstall the stable version. Is there any other way to launch the preview?
Hmm, if I do this and try to run wt, I get an error from the stable version:
[Window Title]
C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.8.1521.0_x64__8wekyb3d8bbwe\wt.exe
[Content]
Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.
I can't believe we still don't have a WT argument --minimized yet.
The solutions proposed here do not work flawlessly, one (big) caveat for me was losing the ability to open your default profile Elevated / as administrator, even if configured on WT.
My workaround to have it as ADMIN was similar to above:
Go to your startup folder (run shell:startup)
Create a shortcut and on Target add wt pwsh -window minimized (I don't use quake mode, I have my Win+` set to globalSummon, you can add/keep the quake parameters if wanted)
In this case, make sure on your WT Settings > Appearance you have the option to hide the terminal to tray area when minimized
Set "Run" option also to Minimized (this prevents any flicker)
Click on Advanced button and check "Run as Administrator" (don't use the similar option from Compatibility tab, it's not the same, you want the one from the Advanced button)
Apply, OK.
Still, can we PLEASE get a --minimized considering we already have --maximized???
In regards to running as admin, I use PowerToys' Keyboard Manager to run terminal on CTRL+ALT+T, and CTRL+SHIFT+ALT+T runs it as administrator. Assuming you can make WT start in quake mode with a parameter, that should work too.
When using powertoys Keyboard Manager to run terminal is there a way to make it not open a new tab when a window already exists? In other way to make the command create a window when none exists or just invoke the existing tab instead of opening a new one whe it does?
When using powertoys Keyboard Manager to run terminal is there a way to make it not open a new tab when a window already exists? In other way to make the command create a window when none exists or just invoke the existing tab instead of opening a new one whe it does?
For your purpose, autohotkey will work. It doesn't work perfectly with minimized terminal windows, but as a temporary solution it's great. Don't forget to change keyboard shortcuts if necessary.
#Requires AutoHotkey v2.0#SingleInstanceDetectHiddenWindowstrue
terminalName := "WindowsTerminal.exe"; [Win Shift Enter] If the terminal is already open, activate it. Otherwise, open it.#+Enter:: {
if (pid := ProcessExist(terminalName)) {
ifWinExist("ahk_pid" pid) {
PostMessage0x0112, 0xF120, , , WinGetID("ahk_pid" pid)
WinActivate
}
} else {
Run("wt")
}
}
; [Win Enter] Open the terminal in a new window.#Enter:: {
Run("wt")
}
; [Win `] Open the terminal in a quake mode. Only works if the terminal is not already open. Require setting same hotkey in the terminal.#HotIf !ProcessExist(terminalName)
#`:: {
Run("wt -w _quake")
}
To work correctly with minimized windows, you should enable this option in the settings:
For anyone on Windows 11, you can start a new Terminal using WIN+X, followed by I for Terminal or A for elevated Terminal.
It's not perfect, but it works without any 3rd party software or setup.
Reacted by John, Asif Mehedi, Orjan Ameye, Laurenz and Risi
Has something recently changed with WindowsTerminal reusing processes for its windows? I have my own super-monitor program that handles showing the quake terminal and toggling it when Win+` is pressed, due to this issue.
I used to be able to launch "wt.exe -w _quake" and then find the WindowsTerminal process with "-w _quake" in its command line in order to then find the quake terminal window associated with that process.
However, it seems that no matter how many times you launch wt.exe, it now only creates a single elevated and non-elevated process, and I no longer have any way to track down the quake terminal window so I can toggle its visibility. All non-elevated windows are getting stuffed into whatever existing WindowsTerminal process there is.
(Edit: looks like I should be able to find the quake windows again by looking for terminal windows with a hidden DRAG_BAR_WINDOW_CLASS child window.)
First off, love the work done with Windows Terminal and over all the whole dev ecosystem with the introduction of WSL. I have been going down the rabbit hole of the many discussions on this topic.
Currently, we can utilize the windows hotkeys: Win + x then i to fire the Terminal application.
We can then initiate an instance in Quake Mode by using hotkeys: Win + ` (or ~). At this point, I am very happy with the overall workflow and behavior of how Terminal behaves (love that putting a quake window into fullscreen (F11) keeps it in fullscreen even after hide/unhide using Win + `.
The only thing I wasn't clear on yet, do we have an elegant solution to streamline this process to happen automatically on start up?
Currently I have the "Start terminal instance on start-up" checked and so I don't even have to go through the Win + x then i so essentially, I only have to initiate the quake mode by hitting Win + ` with the terminal opened on start-up.
I know this is now small issue to even think about since I would only have to do this once when working on my PC, but are there any plans for a native solution/ setting to make the above actions happen without the intermediary step of having a Terminal open to initiate the default Terminal instance in Quake Mode on start up?
It's 2026 and we still don't have a way to start the minimized version of Quake Mode along with the operating system so we can press Win+` and open Quake Mode?
Reacted by Nitin Krishna Mucheli, Orjan Ameye, romanrts and Pretzelek
I left my notes in #13630, and in #9996 (comment). Any enterprising developer who's passionate about this feature is more than welcome to open a PR for this.
Really the hard open question is just "how does this feature interact with state restoration?" Should we:
for --minimized:
1A restore all the windows, but also SW_HIDE them to minimize them?
1B Or just restore them normally, and create the new window minimized.
for --headless:
2A restore them on launch?
2B not restore them until the first window is created?
Hell I think you could just go with 1B and 2A and call it a day.
Reacted by Webber Takken, Jonas Kuske, Risi and Ronny Czerkus
I left my notes in #13630, and in #9996 (comment). Any enterprising developer who's passionate about this feature is more than welcome to open a PR for this.
Really the hard open question is just "how does this feature interact with state restoration?" Should we:
* for `--minimized`:
* **1A** restore all the windows, but also SW_HIDE them to minimize them?
* **1B** Or just restore them normally, and create the new window minimized.
* for `--headless`:
* **2A** restore them on launch?
* **2B** not restore them until the first window is created?
Hell I think you could just go with 1B and 2A and call it a day.
Just to clarify: if my previous comment sounded harsher than I intended, I’m sorry about that. English isn’t my first language and sometimes the tone doesn’t come out the way I mean it.
About the design questions you raised, I wanted to share a simple user perspective that might help.
Right now, WT doesn’t restore sessions after a system reboot, at least not for me.
If I have multiple tabs open and restart Windows, WT always starts clean.
I believe that’s already the expected behavior for most users.
Because of that, option 2B (“don’t restore anything until the first window is created”) seems like the most appropriate choice for a headless/auto‑start scenario. It matches what WT already does today and avoids hidden windows or restoring sessions the user didn’t explicitly ask for.
Just wanted to add this point of view in case it helps the discussion.
And thanks again for all the work you put into WT!
It’s an amazing project and probably the tool I use the most in my daily workflow, right next to the big VS ❤️
Right now, WT doesn’t restore sessions after a system reboot, at least not for me. If I have multiple tabs open and restart Windows, WT always starts clean.
I believe that’s already the expected behavior for most users.
Do you have this setting on?
I believe it wasn't the default for a long time. I vaguely recall plans to make it the default, but dunno if we actually did that
Reacted by Webber Takken, Ronny Czerkus and Nitin Krishna Mucheli
Area-RemotingCommunication layer between windows. Often for windowing behavior, quake mode, etc.In-PRThis issue has a related PRIssue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Product-TerminalThe new Windows Terminal.
Activity
[-]<reserved>[/-][+]Enable `globalSummon` / `quakeMode` to work even when there isn't a running Terminal[/+]dag03tsc commentedon Jun 1, 2021
I'm pretty sure this already came to your mind before, but what about using the service approach?
It'd only require the tray icon feature to enable the persistence and provide some control over the service itself.
I guess that'd also allow termination commands like
exit, while keeping theglobalSummonorquakeModeavailable, for as long as the service is running.Could it be useful to have some kind of a master orchestrator service? Something like a service to host and manage all WT instances?
kensykora commentedon Jul 12, 2021
Been testing out the preview channel and I LOVE quake mode. Since the terminal is so core to my development workflow, it'd be HUGE if this launched on startup so it felt like a core part of the OS.
hensz commentedon Jul 20, 2021
Is this issue purely about starting (and keep running) Terminal at startup? I was looking for a way to manually start a terminal in Quake mode, just as asked for in issue #10206.
zadjii-msft commentedon Jul 20, 2021
That'd be
wt -w _quake. See also the docshensz commentedon Jul 21, 2021
This doesn't work since I have both the stable and the preview version installed, and wt runs the stable version. Most likely I could simply uninstall the stable version. Is there any other way to launch the preview?
zadjii-msft commentedon Jul 21, 2021
You could always change
wtto open the Preview version. To do that, you can check out the "Manage app execution aliases" page in the settingshensz commentedon Jul 21, 2021
Hmm, if I do this and try to run wt, I get an error from the stable version:
[Window Title]
C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.8.1521.0_x64__8wekyb3d8bbwe\wt.exe
[Content]
Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.
60 remaining items
arthurcaccavo commentedon Jun 19, 2024
When using powertoys Keyboard Manager to run terminal is there a way to make it not open a new tab when a window already exists? In other way to make the command create a window when none exists or just invoke the existing tab instead of opening a new one whe it does?
Memoraike commentedon Jun 19, 2024
For your purpose, autohotkey will work. It doesn't work perfectly with minimized terminal windows, but as a temporary solution it's great. Don't forget to change keyboard shortcuts if necessary.
To work correctly with minimized windows, you should enable this option in the settings:
Details
MaverickMartyn commentedon Jul 5, 2024
For anyone on Windows 11, you can start a new Terminal using WIN+X, followed by I for Terminal or A for elevated Terminal.
It's not perfect, but it works without any 3rd party software or setup.
User1785604260 commentedon Jan 27, 2025
Has something recently changed with WindowsTerminal reusing processes for its windows? I have my own super-monitor program that handles showing the quake terminal and toggling it when Win+` is pressed, due to this issue.
I used to be able to launch "wt.exe -w _quake" and then find the WindowsTerminal process with "-w _quake" in its command line in order to then find the quake terminal window associated with that process.
However, it seems that no matter how many times you launch wt.exe, it now only creates a single elevated and non-elevated process, and I no longer have any way to track down the quake terminal window so I can toggle its visibility. All non-elevated windows are getting stuffed into whatever existing WindowsTerminal process there is.
(Edit: looks like I should be able to find the quake windows again by looking for terminal windows with a hidden DRAG_BAR_WINDOW_CLASS child window.)
zadjii-msft commentedon Jan 27, 2025
User1785604260 That changed in 1.18, like, two years ago. Ever since that release, all Terminal windows are the same process
(and after 1.23, they'll all be on the same thread too)
gitclonehama commentedon Feb 3, 2025
First off, love the work done with Windows Terminal and over all the whole dev ecosystem with the introduction of WSL. I have been going down the rabbit hole of the many discussions on this topic.
Currently, we can utilize the windows hotkeys: Win + x then i to fire the Terminal application.
We can then initiate an instance in Quake Mode by using hotkeys: Win + ` (or ~). At this point, I am very happy with the overall workflow and behavior of how Terminal behaves (love that putting a quake window into fullscreen (F11) keeps it in fullscreen even after hide/unhide using Win + `.
The only thing I wasn't clear on yet, do we have an elegant solution to streamline this process to happen automatically on start up?
Currently I have the "Start terminal instance on start-up" checked and so I don't even have to go through the Win + x then i so essentially, I only have to initiate the quake mode by hitting Win + ` with the terminal opened on start-up.
I know this is now small issue to even think about since I would only have to do this once when working on my PC, but are there any plans for a native solution/ setting to make the above actions happen without the intermediary step of having a Terminal open to initiate the default Terminal instance in Quake Mode on start up?
thwyster commentedon Apr 21, 2026
It's 2026 and we still don't have a way to start the minimized version of Quake Mode along with the operating system so we can press Win+` and open Quake Mode?
zadjii-msft commentedon Apr 21, 2026
I left my notes in #13630, and in #9996 (comment). Any enterprising developer who's passionate about this feature is more than welcome to open a PR for this.
Really the hard open question is just "how does this feature interact with state restoration?" Should we:
--minimized:--headless:Hell I think you could just go with 1B and 2A and call it a day.
thwyster commentedon Apr 24, 2026
Hi Mike Griese (@zadjii-msft), thanks for the explanation earlier.
Just to clarify: if my previous comment sounded harsher than I intended, I’m sorry about that. English isn’t my first language and sometimes the tone doesn’t come out the way I mean it.
About the design questions you raised, I wanted to share a simple user perspective that might help.
Right now, WT doesn’t restore sessions after a system reboot, at least not for me.
If I have multiple tabs open and restart Windows, WT always starts clean.
I believe that’s already the expected behavior for most users.
Because of that, option 2B (“don’t restore anything until the first window is created”) seems like the most appropriate choice for a headless/auto‑start scenario. It matches what WT already does today and avoids hidden windows or restoring sessions the user didn’t explicitly ask for.
Just wanted to add this point of view in case it helps the discussion.
And thanks again for all the work you put into WT!
It’s an amazing project and probably the tool I use the most in my daily workflow, right next to the big VS ❤️
zadjii-msft commentedon Apr 24, 2026
Do you have this setting on?
I believe it wasn't the default for a long time. I vaguely recall plans to make it the default, but dunno if we actually did that