microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
95.24k stars 8.27k forks source link

"useAnyExisting" ignored with default terminal, allowHeadless, and globalSummon #16448

Open JVimes opened 10 months ago

JVimes commented 10 months ago

Windows Terminal version

1.19.3172.0

Windows build number

Version 22H2 (OS Build 19045.3758)

Steps to reproduce

  1. Make Windows Terminal the default terminal for the OS.
  2. Add these to default config:
    "compatibility.allowHeadless": true,
    "windowingBehavior": "useAnyExisting",
    "actions": 
    [
        {
            "command": 
            {
                "action": "globalSummon"
            },
            "keys": "ctrl+`"
        },
  3. Sign out of Windows and sign back in
  4. Launch an instance of Windows Terminal
  5. Use the global summon keys, Ctrl+`

Expected Behavior

Global summon summons/hides the existing instance.

Actual Behavior

A new terminal window appears for each press of global summon.

zadjii-msft commented 10 months ago

thoughts from triage:

Do you have both Terminal Stable and Terminal Preview enabled (there's one where wt.exe points at the wrong thing)

Are you running as admin?

When you're launching the terminal, are you launching cmd.exe (and letting the default terminal functionality open the Terminal), or the Terminal directly?

JVimes commented 10 months ago

Thank you. Only Preview is installed, not running as admin, and initial instance was launched from taskbar button.

Are you on Win 11? I'm still on 10.