Skip to content

Allowing headless mode (running in the background) prevents Windows Terminal from opening again #18845

@oliver-leung

Description

@oliver-leung

Windows Terminal version

1.22.11141.0

Windows build number

10.0.26100.0

Other Software

No response

Steps to reproduce

  1. Open Windows Terminal
  2. Go to Settings > Compatibility, and turn on "Allow Windows Terminal to run in the background"
    1. Alternatively, open settings.json and set "compatibility.allowHeadless": true
  3. Save settings
  4. Close Windows Terminal
  5. Attempt to open Windows Terminal

Expected Behavior

Windows Terminal opens

Actual Behavior

Windows Terminal does not open


In order to get out of this situation, I need to do one of the following:

Option 1

  1. Reboot my PC
  2. Open Windows Terminal (this will only work for the first attempt after booting)
  3. Go to Settings > Compatibility, and turn off "Allow Windows Terminal to run in the background"
  4. Save settings

Option 2

  1. Open settings.json and set "compatibility.allowHeadless": false
  2. Reboot my PC (importantly, this must be done after disallowing headless mode)

I suspect that the issue is that, after allowing headless mode, there is a background process for Windows Terminal running. The fact that this process is running prevents any new Windows Terminal windows from opening. However, I can't figure out which background process is responsible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions