[BUG] Windows desktop app watching WSL repo paths triggers WSLg msrdc.exe focus-stealing (regression after today's update)

Open 💬 0 comments Opened Jul 2, 2026 by bennybroseph

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

After a Claude desktop app update today, the app appears to be watching/reading git repositories located on the WSL filesystem (paths under \\wsl.localhost\). This filesystem access repeatedly wakes WSLg, which relaunches C:\Program Files\WSL\msrdc.exe in its supervisor loop. Each relaunch briefly grabs foreground, which steals keyboard focus mid-typing and forces my auto-hide taskbar to reveal itself, several times a minute.

The offending window was identified with a focus logger as msrdc.exe at C:\Program Files\WSL\msrdc.exe, window title "Remote Desktop", window class TscShellContainerClass — i.e. WSLg's internal RDP host, not an actual Remote Desktop session. This is the same class of WSLg focus-steal documented in microsoft/wslg#894 and #1135, but in my case the trigger is the Claude desktop app poking the WSL paths (analogous to the known "Everything" indexer trigger).

What Should Happen?

The app should not repeatedly scan/watch WSL network paths in a way that wakes WSLg, or should access them without triggering foreground activation. No focus stealing.
Isolation already done (points to the app)

  • Fully quitting the Claude desktop app (exiting from tray + confirming no Claude processes remain in Task Manager) stops the focus stealing.
  • Reopening the app resumes it.
  • wsl --shutdown and a full reboot do not fix it while the app is running.
  • Confirmed via focus logger that msrdc.exe (WSL path above) is the window grabbing focus.
  • Everything search indexer ruled out (no WSL entries in its Folders/Network Drives).
  • Started today, immediately after the app update — no other changes to the machine.

Error Messages/Logs

Steps to Reproduce

  1. Windows 11 with WSL 2 + WSLg, and git repos stored on the WSL filesystem (\\wsl.localhost\<distro>\...).
  2. Run the Claude desktop app and give it access to those WSL-path repos.
  3. Type in any other window (browser textbox, editor, etc.).
  4. Observe focus being stolen for a fraction of a second, repeatedly; auto-hide taskbar pops; keystrokes lost.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude 1.17377.2 (e0ea9e) 2026-07-01T05:51:58.000Z

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

This was encountered on the windows desktop app.

View original on GitHub ↗