Skip to content

The agent that grows with you

fix(desktop): disable WSL path bridge for registry SSH/remote/cloud profiles

soyami1f091cb4e481
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts
index 62e0e48231c..4b9aa813cd8 100644
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@ -11820,6 +11820,13 @@ async function connectRegistryBackend(
poolEntry.remoteBaseUrl = connection.baseUrl
+ // SSH backends always run on a remote host — their POSIX paths can never
+ // be opened through this machine's wsl.exe. Register the profile as
+ // bridge-inactive so file panels/dialogs don't spawn wsl.exe (visible
+ // black window on WSL-less Windows) for remote paths. The v1 path does
+ // this in ensureBackend(); the registry SSH path was missing it.
+ setWslBridgeProfileState(profileKey, false)
+
return {
...connection,
profile: profileKey,
@@ -11852,6 +11859,10 @@ async function connectRegistryBackend(
await waitForHermes(connection.baseUrl, connection.token, undefined, connection.authMode, connection.headers)
poolEntry.remoteBaseUrl = connection.baseUrl
+ // Remote/cloud backends live on another host too — disable the WSL path
+ // bridge for their profiles for the same reason as the SSH branch above.
+ setWslBridgeProfileState(profileKey, false)
+
return {
...connection,
profile: profileKey,