Windows terminal as default terminal application breaks WSL2 launch when WSL2 debugConsole is enabled #13916

Open
opened 2026-01-31 03:55:45 +00:00 by claunia · 0 comments
Owner

Originally created by @reynoldskr on GitHub (May 26, 2021).

Originally assigned to: @miniksa on GitHub.

Windows Terminal version (or Windows build number)

1.9.1445.0

Other Software

  1. WSL2
  2. Windows 10 build 21387 or later, for the WSL2 debugConsole functionality

Steps to reproduce

  1. Install WSL2 + a distro and create the %USERPROFILE%\.wslconfig file with the following contents:
[wsl2]
debugConsole=true
  1. Make sure that Terminal v1.9.1445.0 is installed, and that it's a) set as the default terminal b) has a profile for your WSL2 distro
  2. Attempt to launch terminal in the WSL2 profile, either via the jump list or terminal's own profile menu

Expected Behavior

  1. WSL2 profile opens normally

Actual Behavior

  1. Windows terminal locks up and goes into a "not responding" state, with high system CPU usage from VM compute service
  2. After the windows terminal process is killed, a legacy console window spawns with the expected WSL2 VM debug output
  3. After the VM boots, another Windows terminal spawns without any tabs open, lacking any WSL profile, and doesn't respond to window close events
  4. When the terminal instance from 3 is killed, and another one is spawned, this one will work normally
Originally created by @reynoldskr on GitHub (May 26, 2021). Originally assigned to: @miniksa on GitHub. ### Windows Terminal version (or Windows build number) 1.9.1445.0 ### Other Software 1. WSL2 2. Windows 10 build 21387 or later, for the WSL2 `debugConsole` functionality ### Steps to reproduce 1. Install WSL2 + a distro and create the `%USERPROFILE%\.wslconfig` file with the following contents: ``` [wsl2] debugConsole=true ``` 2. Make sure that Terminal v1.9.1445.0 is installed, and that it's a) set as the default terminal b) has a profile for your WSL2 distro 3. Attempt to launch terminal in the WSL2 profile, either via the jump list or terminal's own profile menu ### Expected Behavior 1. WSL2 profile opens normally ### Actual Behavior 1. Windows terminal locks up and goes into a "not responding" state, with high system CPU usage from VM compute service 2. After the windows terminal process is killed, a legacy console window spawns with the expected WSL2 VM debug output 3. After the VM boots, another Windows terminal spawns without any tabs open, lacking any WSL profile, and doesn't respond to window close events 4. When the terminal instance from 3 is killed, and another one is spawned, this one will work normally
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13916