Imported WSL instance not discovered until Terminal is restarted
Author: timblaktuCreated May 24, 2024Updated Sep 28, 2026
LabelsIssue-BugArea-SettingsProduct-TerminalIssue-Task
Windows Terminal version
Windows Terminal Preview Version: 1.21.1272.0
Windows build number
10.0.22631.0
Other Software
PS C:\Users\timbl> wsl.exe --version
WSL version: 2.1.5.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.3593Steps to reproduce
- Export a WSL2 machine as a .tar.gz. As in #17262, I'm doing this with nixos-wsl's tarball builder.
- Import it:
wsl.exe --import <machine-name> %USERPROFILE%\nixos-wsl-tarballs\<machine-name> <path-to-the-wsl-machine-archive.tar.gz-file> - In Terminal, click v and see it is not possible to open the new wsl machine's profile.
- Restart Terminal, and see that the new wsl machine's profile is available and functional.
Expected Behavior
Step 4. above should not be required. In 3, after importing the wsl machine, it should be possible to open it without restarting Terminal.
I would understand if this behavior is "as-designed" and therefore this converted to a feature request.
Actual Behavior
See #Steps To Reproduce.
Source: microsoft/terminal