Repository navigation
Description
Where
Windows
What happened
With Shell set to wsl (Settings › Terminal › Shell), a session starts in WSL, but the right column never follows it: it stays on the folder the session started in, the user's home folder (dirs::home_dir(), src/main.rs:24), however much one cds inside the distribution. Files and Git are both dead for that session. The screenshot shows uname -r and pwd in WSL, the tree still rooted at the home folder, and the caption below the Git/Files switch.
Reading v0.1.7 (fe07813), two separate things stop it:
-
term::shell::launchpicks the integration by the executable's file stem (src/term/shell.rs:83-86) and matches onlyzsh,bash,fish,pwshandpowershell(src/term/shell.rs:99-144).wsltakes the_arm, which setsreports = false(src/term/shell.rs:140-143), so no script is injected and nothing in the session ever sends OSC 7. The column says so, in the caption "This shell reports no folder." (src/workspace.rs:427-431). The match reads only the stem, sowsl -d Ubuntuandwsl --cd ~go the same way. -
A WSL shell that sends OSC 7 of its own (starship, powerlevel10k and others do) is dropped too.
term::tap::foldertakes afile://host/pathonly when the host is empty,localhost, orgethostname()(src/term/tap.rs:362-372). The binary runs on Windows, sogethostname()is the Windows name, and WSL rewrites the hostname — on this machineXM_Stableunder Windows againstXMStablein Ubuntu 24.04 — soeq_ignore_ascii_casenever matches and the folder is discarded. As far as I can tell that check can never pass for a WSL shell on Windows.
Steps to reproduce
- Settings › Terminal › Shell:
wsl - New session, then
cd ~orcd /inside the distribution - The right column still shows the user's home folder; the Files tree does not move, and no Git state for the folder appears
What I expected
The right column follows the folder the session reports. I understand a shell with no integration is left alone on purpose (reports = false, "Fail fast"), so this may be intended rather than a defect — if so, please read it as a request for WSL support on Windows, which is where I hit it.
Commit or version
v0.1.7, fe07813
Logs
No output was captured; elyterminal.exe from the release zip is a GUI-subsystem binary, so it has no console. The caption "This shell reports no folder." is the same signal, and it is what the screenshot shows.
Two directions, if you want them (yours to judge; I have tried neither)
- Inject into WSL. The scripts already sit where the distribution can read them —
%LOCALAPPDATA%\ELYTerminal\shell-integration, which WSL sees under its mount root — so awsllaunch could name the script by its/mnt/...path the way the other shells do:--rcfilefor bash,ZDOTDIRfor zsh,XDG_DATA_DIRSfor fish,-Commandfor pwsh. The mount root is not always/mnt/c, so it needs reading per distribution. - Let the OSC 7 host check pass on WSL: compare against
gethostname()with the characters a hostname cannot hold taken out (the_inXM_Stable), which is what WSL does to build its own.
Activity
zbn297427669 commentedon Oct 20, 2026
Raiden-MeixElysia commentedon Oct 21, 2026
Thank, Will investigate this issue
Raiden-MeixElysia commentedon Oct 22, 2026
Thanks for the careful report! Fixed in v0.1.8: with Shell set to
wsl, Files and Git now follow the session. https://github.com/ELY-Open-Source/ELYTerminal/releases/tag/v0.1.8T72: passed round 2 of its review; issues #2, #3, #7 and #10 closed, …