Headless mode incompatibility with recent window attaching #22328

Closed
opened 2026-01-31 08:09:57 +00:00 by claunia · 1 comment
Owner

Originally created by @sasuntolayan on GitHub (Sep 29, 2024).

Windows Terminal version

1.20.11781.0

Windows build number

10.0.22631 Build 22631

Other Software

No response

Steps to reproduce

Enable the headless mode via the settings json. ("compatibility.allowHeadless": true)
Set "New instance behavior" setting to one of the attaching to the most recently used window options.
Run the Terminal and close all windows to put it to the headless mode.
Try to start a new instance.

Expected Behavior

It should detect that there are no active windows to attach, and start a new instance.

https://github.com/user-attachments/assets/33ebc81d-efdd-482b-ba1b-677c0e022d64

Actual Behavior

No actual Terminal instance is properly created. It looks like it is attempting to create one but fails.

Originally created by @sasuntolayan on GitHub (Sep 29, 2024). ### Windows Terminal version 1.20.11781.0 ### Windows build number 10.0.22631 Build 22631 ### Other Software _No response_ ### Steps to reproduce Enable the headless mode via the settings json. ("compatibility.allowHeadless": true) Set "New instance behavior" setting to one of the attaching to the most recently used window options. Run the Terminal and close all windows to put it to the headless mode. Try to start a new instance. ### Expected Behavior It should detect that there are no active windows to attach, and start a new instance. https://github.com/user-attachments/assets/33ebc81d-efdd-482b-ba1b-677c0e022d64 ### Actual Behavior No actual Terminal instance is properly created. It looks like it is attempting to create one but fails.
claunia added the Issue-BugIn-PRNeeds-Tag-FixProduct-TerminalArea-Windowing labels 2026-01-31 08:09:58 +00:00
Author
Owner

@michaelarnauts commented on GitHub (Oct 22, 2024):

This is indeed a bug, it's also explained here: https://github.com/microsoft/terminal/issues/17360

@michaelarnauts commented on GitHub (Oct 22, 2024): This is indeed a bug, it's also explained here: https://github.com/microsoft/terminal/issues/17360
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22328