Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to
|
|
Thanks for working on this fix! This works out the WSL runtime for multi-repo folder workspaces from their To switch: Settings → Experimental → WSL hosts, then Add a project → Add remote host → Add WSL distro. Existing Closing this since the new bridge replaces that code path; if the problem still shows up with WSL hosts on, please open an issue with details. |
ELI5
A folder containing several WSL repositories should offer agents installed in that WSL distribution. Today it can instead show Windows agents. This makes the picker follow the folder's own WSL path and keeps its list separate from Windows folders.
What Changed
Why
Picking an arbitrary repository would give ambiguous multi-repository folders the wrong runtime. Reusing the existing path parser, ownership checks, runtime resolution and probe fixes the missing context without adding another discovery or execution mechanism.
Linked Issue
Fixes #28382
Visual Proof
Captured from a hidden Windows 10 / Ubuntu-24.04 Session 2 Electron window through CDP, using four real WSL Git repositories and a real Linux-only OpenCode 1.19.0 executable. The original installed app was 1.4.206; the To-be app was a separate copy using the unchanged candidate source functions/hooks, original UI/store/main IPC and PTY backend. This is an installed-runtime integration check, not a packaged latest-main release. The source is rebased onto main
9c0420fa9aand checked again below.Selecting OpenCode executes the real Linux CLI from the exact WSL folder; the terminal records exit 0, Linux, the expected cwd and version 1.19.0:
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
After rebasing onto main
9c0420fa9a: 15 focused test files / 194 tests passed; renderer typecheck, changed-code quality, formatting and diff checks passed.Regression coverage includes a warm Windows inventory, a retained picker switching distributions, a requested nonactive folder, a late result after switching folders, same-ID local/remote folders, missing distributions and non-Windows/native/Floating paths.
Real Windows Session 2 UI: register four WSL repositories, open their folder, compare the New tab menu, select OpenCode and confirm Linux/version/exit/cwd through the actual PTY. Windows → WSL → Windows → WSL sidebar navigation kept the two inventories separate.
Separate native Windows → WSL function smoke executed the real Linux Claude 2.1.296 version command. A delegated Claude baseline run also reported the wrong menu and a Windows-only Claude selection failing in WSL; its Windows-only attachments were not independently inspected.
Reproduce the UI check with a WSL-only agent, a Windows-only agent and a folder whose group has at least two WSL repositories. Warm the Windows picker, select the WSL folder, and verify that the menu and execution follow that distribution; switch back to a native folder and repeat.
Production Electron renderer build and boot-graph verification passed on the rebased source.
Full repository lint/test/typecheck and multi-platform packaging are left to CI. No vendor authentication or model turn was tested; the live launch used
--versiondeliberately.AI Disclosure
Codex implemented the code and tests, performed the review, drove the CDP validation and wrote this PR. A separate Claude Code session performed a baseline desktop test, relayed through a Codex session. This is not a claim of independent candidate review by Claude.
Review
Reviewed cross-platform behavior, local/SSH/paired-host ownership, provider-neutral agent selection, performance and basic security. The new path fallback is Windows-only and requires a proven local folder; other hosts keep their existing routes. It reuses cached snapshots and scoped inventories, sends no new remote fields and introduces no shell command, credential handling or provider-specific execution logic. No layout or style changes.
Agent skill upstream boundary
Notes
During setup, OpenSSH Session 0 could not access either WSL UNC spelling, while the logged-on Session 2 could. The same failure occurred in standalone Node before Orca launched, so it is recorded as a test-environment limitation with an undetermined cause, not a new Orca defect or a problem this PR fixes. The desktop test proceeded successfully in Session 2. Original installation and user profiles were preserved, and task-owned processes, fixtures and temporary resources were cleaned up.
Author
X: @abruptWave
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)