WSL GUI agent detection misses regular Claude while Claude CLI works
Summary
On Windows + WSL, Orca detects Claude Agent Teams but does not detect the regular Claude agent in the GUI agent picker, even though claude is installed and works inside the same WSL distro and Orca-managed terminal.
Environment
- Orca app: Windows install
- WSL distro:
Ubuntu24-Dev - Shell: zsh inside WSL
- Claude Code installed in WSL:
command -v claude
# /home/whr/.local/bin/claude
claude -v
# 2.1.201 (Claude Code)
What Works
Inside an Orca-managed WSL terminal, Claude runs successfully:
claude -v
# 2.1.201 (Claude Code)
The Orca CLI can create a terminal in the active worktree and run Claude:
cd /home/whr/Development/Kiwii-Git-worktrees/handle
orca-ide worktree current --json
orca-ide terminal create --worktree active --title claude-test --command "claude --version" --json
Both commands return ok: true, and the created terminal is attached to the correct Orca-managed worktree.
What Does Not Work
After restarting the Orca GUI and refreshing agent detection, the GUI still does not show the regular Claude agent. It only shows Claude Agent Teams.
Relevant Detail
The WSL shim currently launches Windows cmd.exe from a WSL UNC cwd, which prints:
'\\wsl.localhost\Ubuntu24-Dev\home\whr\Development\Kiwii-Git-worktrees\handle'
UNC paths are not supported. Defaulting to Windows directory.
This caused CLI commands using active/current to resolve cwd as C:\Windows before a local hotfix. A local hotfix that passes the WSL cwd through an env var fixed CLI active/current resolution, but did not fix GUI agent detection.
The relevant Orca bundled config appears to define both agents:
claude: {
detectCmd: 'claude',
launchCmd: 'claude',
expectedProcess: 'claude',
promptInjectionMode: 'argv',
draftPromptFlag: '--prefill'
},
'claude-agent-teams': {
detectCmd: 'orca',
detectCmdAliases: ['orca-dev', 'orca-ide'],
launchCmd: 'orca claude-teams',
expectedProcess: 'claude',
promptInjectionMode: 'stdin-after-start'
}
Because claude-agent-teams detects orca/orca-ide and regular claude detects claude, this looks like the GUI host probe may not be checking the WSL user's PATH / WSL shell context for the regular Claude binary.
Expected Behavior
If claude is available inside the selected WSL distro and runs inside Orca-managed WSL terminals, the GUI agent picker should detect and show the regular Claude agent.
Actual Behavior
The GUI only shows Claude Agent Teams; regular Claude is missing.
Possible Fix Direction
For WSL-backed workspaces/hosts, regular TUI agent detection should run in the WSL distro context, e.g. equivalent to:
wsl.exe -d Ubuntu24-Dev -- bash -lc 'command -v claude && claude --version'
rather than relying on Windows cmd.exe cwd/PATH behavior.
Additional findings after local reverse-engineering and testing:
Important Correction / Clarification
This is not a general claude installation issue and not only a CLI cwd issue.
The local WSL CLI path works:
command -v claude
# /home/whr/.local/bin/claude
claude -v
# 2.1.201 (Claude Code)
Launching from Orca-managed WSL terminals also works:
cd /home/whr/Development/Kiwii-Git-worktrees/handle
orca-ide terminal create --worktree active --title claude-test --command "claude --version" --json
# ok: true
So the regular Claude agent is usable if launched manually; it is only missing from the GUI agent picker / GUI availability detection.
CLI cwd issue found separately
There was a separate WSL CLI bridge issue: running orca-ide from WSL caused Windows cmd.exe to print:
'\\wsl.localhost\Ubuntu24-Dev\home\whr\Development\Kiwii-Git-worktrees\handle'
UNC paths are not supported. Defaulting to Windows directory.
Before a local hotfix, CLI commands using active/current resolved against C:\Windows and failed. Passing the WSL UNC cwd through an environment variable fixed CLI active/current resolution locally. After that:
orca-ide worktree current --json
# ok: true, resolves the WSL UNC worktree path
However, after restarting the Orca GUI and refreshing detection, the GUI still only shows Claude Agent Teams, not regular Claude.
Relevant bundled config
The installed Orca bundle contains both agents in out/shared/tui-agent-config.js:
claude: {
detectCmd: 'claude',
launchCmd: 'claude',
expectedProcess: 'claude',
promptInjectionMode: 'argv',
draftPromptFlag: '--prefill'
},
'claude-agent-teams': {
detectCmd: 'orca',
detectCmdAliases: ['orca-dev', 'orca-ide'],
launchCmd: 'orca claude-teams',
expectedProcess: 'claude',
promptInjectionMode: 'stdin-after-start'
}
This explains the symptom: Claude Agent Teams can appear because it detects orca / orca-ide, while regular Claude requires the GUI availability probe to detect claude.
Current hypothesis
The GUI agent availability probe for WSL-backed workspaces is not running detectCmd: 'claude' in the same WSL user shell/PATH context as Orca-managed terminals.
It may be checking from the Windows/Electron main process, Windows cmd.exe, or a non-login / incomplete WSL environment that does not include /home/whr/.local/bin.
Expected fix direction
For WSL-backed hosts/workspaces, GUI agent detection should probe TUI commands inside the selected WSL distro and the same environment used for managed terminals, for example equivalent to:
wsl.exe -d Ubuntu24-Dev -- bash -lc 'command -v claude && claude --version'
or by reusing the same shell/env setup path that Orca uses when it creates WSL terminal panes.
Workaround
Manual launch works:
orca-ide terminal create --worktree active --title claude --command "claude" --json
Adding related WSL cases from another Windows 11 + WSL2 setup. This looks like the same broader boundary between the Windows desktop GUI and the WSL runtime used by Orca-managed terminals.
Related reports:
- #6907: Codex launched in a WSL worktree does not appear in the agent status/sidebar.
- #7565: OMP agents launched in a WSL worktree no longer appear in the worktree sidebar after v1.4.124, even though the Orca terminal handle, pane key, hook env, and WSL env are present.
- #7091: OMP status env is injected, but the managed status extension does not appear to load/report live state.
- #6965: the WSL
orca-idebridge can lose cwd when Windowscmd.exefalls back from a WSL UNC cwd toC:\Windows.
The common pattern is: the agent CLI works inside WSL and/or inside an Orca-managed WSL terminal, but a Windows-hosted GUI-side detection, sidebar projection, status hook, or bridge path does not seem to use the exact same WSL runtime/login-shell context.
Possibly related implementation areas / PRs:
- #7141: runtime-specific agent IDs in the workspace composer.
- #7503: WSL default runtime for global preflight/folder picking.
- #7474: managed hook install gated by positive CLI presence, which could be affected if the WSL CLI presence probe misses installed agents.
I do not know whether these all share one root cause, but they look like they should be tested together with a Windows desktop app + WSL default runtime + agent CLIs installed only inside WSL.
Agent reproduction package (Windows orchestration 2026-07-16)
Host context: Windows 11 / Orca 1.4.143.0 / repo path used: docs/bug-reproductions/
Labels applied: see issue labels (has_repro or cannot_repro).
Security: Do not run user-uploaded binaries from issue attachments. Recreate fixtures from the steps/scripts below.
Issue 7563 — WSL GUI agent detection misses regular Claude while Claude CLI works
Status: needs_setup
Host: Windows 11, Orca 1.4.143
Label: none
Summary
Reporter: GUI agent picker shows Claude Agent Teams but not regular Claude, even though claude works in Orca-managed WSL terminals (~/.local/bin/claude).
Environment gates (this host)
| Need | Present |
|---|---|
Working WSL for detectWslCommandsOnPath |
No — hung |
| Windows Claude | Yes — claude.exe 2.1.211 at ~\.local\bin\claude.exe |
| WSL Claude | Unknown (cannot run wsl commands) |
Source notes
- WSL detection:
src/main/ipc/preflight-wsl-agent-detection.ts- Single
wsl.exelogin-shell probe for all agent commands - On failure/timeout → empty Set (all WSL agents miss)
- Single
detectInstalledAgents(preflight.ts): ifgetPreflightWslTarget(context)set, only WSL probe is used- Claude Agent Teams often detects
orca/orca-idealiases (detectCmd/ aliases) — can appear when regularclaudePATH lookup fails - History:
ac2cf1dbdfix for zsh login shells;1eace14c5reject Windows paths from WSL lookup
Partial observation
While WSL is wedged (dozens of hung wsl.exe children under Orca), any GUI refresh that probes WSL will hit the 10s timeout and cache empty detection — consistent with “CLI in terminal works” (already-running shell) vs “GUI probe fails”.
This is not a full confirmation of the PATH/login-shell miss for a healthy distro with claude only in ~/.local/bin.
Repro (another agent) when WSL healthy
wsl -d Ubuntu -- bash -lc 'command -v claude; claude -v'
# From Orca: Agents settings → Refresh
# Or: instrument preflight:detectAgents with WSL worktree context
Expected: claude in detected agents for WSL worktree.
Reporter actual: only Claude Agent Teams.
Evidence
docs/bug-reproductions/issues/7563.json- WSL hung:
docs/bug-reproductions/evidence/8941-*.json - Source:
preflight-wsl-agent-detection.ts,preflight.ts
Why blocked
Cannot execute WSL login-shell detection while distro commands hang.
How another agent should use this
- Read this comment fully (status, expected vs actual, blockers).
- If a script is included above, copy it to a temp file and run it on a Windows 11 host with Orca installed (prefer production install under
%LOCALAPPDATA%\Programs\orca). - Capture evidence (CLI
--json, screenshots, logs) under a local folder; optionally comment results back here. - If status is
cannot_repro/ needs_setup, satisfy the listed prerequisites first, then re-attempt and flip labels: removecannot_repro, addhas_reprowhen conclusive.
Thanks for reporting this! This looks like it comes from Orca's older WSL integration, which reaches into the distro from Windows through \\wsl.localhost paths and wsl.exe. We've since shipped a new WSL bridge, WSL hosts, where Orca's server runs inside the distro itself, so this part of the old path isn't involved.
Could you give it a try?
- Open Settings → Experimental and turn on WSL hosts.
- Click Add a project → Add remote host → Add WSL distro and pick your distro.
- Open your project on that WSL host and try the same steps again.
If it still happens there, please let us know here with your Orca version. That helps us a lot.
Agent detection here runs from Windows by probing the distro through wsl.exe, which is why the regular claude on your WSL PATH was missed. The new WSL hosts bridge runs Orca's server inside the distro, so agents are detected natively from inside the distro and this probe isn't used anymore.
To switch: Settings → Experimental → WSL hosts, then Add a project → Add remote host → Add WSL distro. Existing \\wsl.localhost or W:\ projects can be moved over from the project.
Closing as resolved by the new bridge; if you still see this with WSL hosts on, please reopen with details.