Repository navigation
Add project Windows runtime selection - #5519
Merged
Jinwoo-H merged 6 commits intoJun 17, 2026
Merged
Conversation
slashdevcorpse
force-pushed
the
codex/project-windows-runtime
branch
from
June 16, 2026 18:45
1f37980 to
35aff5e
Compare
…-runtime # Conflicts: # src/main/ipc/pty.test.ts # src/renderer/src/store/slices/terminals.ts
Jinwoo-H
self-requested a review
June 16, 2026 19:50
Co-authored-by: Orca <[email protected]>
AmethystLiang
requested review from
brennanb2025
and removed request for
Jinwoo-H
June 17, 2026 17:45
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Jinwoo-H
approved these changes
Jun 17, 2026
Jinwoo-H
left a comment
Contributor
There was a problem hiding this comment.
Windows/WSL runtime selection is ready to land. Conflicts resolved against latest main; local typecheck, lint, focused runtime/settings/relay tests, and real Windows agent validation passed.
LesleyMurfin
added a commit
to LesleyMurfin/orca
that referenced
this pull request
Jun 20, 2026
…e-runtime e2e Standalone unit test locking in that the runtimeHostIsNonWindows suppression does NOT fire for a win32 host runtime (local Windows-WSL project runtime keeps its shell menu), plus a Playwright e2e for the serve-runtime menu suppression. Per peer-review item #3. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This was referenced Jun 21, 2026
Closed
nwparker
pushed a commit
to xianjianlf2/orca
that referenced
this pull request
Jul 23, 2026
stablyai#5519 removed WSL from Terminal Settings and moved WSL selection to the Project Runtime model, but Windows onboarding still offered WSL as a default-shell choice and persisted terminalWindowsShell='wsl.exe'. Settings can no longer represent that value and renders it as PowerShell, so a fresh-profile WSL selection could not be viewed or edited afterward. Gate the onboarding WSL card on an already-persisted 'wsl.exe' value only, mirroring how Settings drops WSL. Fresh profiles no longer persist a shell Settings cannot display, keeping the stored setting, Settings UI, and the shell used for new panes consistent. The option still appears when a prior build already saved 'wsl.exe' so those users are not stranded. Closes stablyai#8537
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
* Add project Windows runtime selection * Fix project Windows runtime selection Co-authored-by: Orca <[email protected]> * fix: preserve WSL shell variables --------- Co-authored-by: Jinwoo-H <[email protected]> Co-authored-by: Orca <[email protected]> Co-authored-by: Neil <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a project-level Windows execution runtime model so each local Windows project resolves to exactly one runtime: Windows host or one selected WSL distro. The resolved runtime is now used across project-scoped preflight, agent and skill detection, terminal launch, git/worktree operations, hosted reviews, provider CLI calls, source-control AI helpers, file discovery/search, runtime APIs, and renderer command planning.
This also adds global default and per-project runtime settings, runtime-switch invalidation, repair states for unavailable WSL or missing distros, runtime-aware path/provider identity handling, user-facing docs, and regression coverage for stale WSL settings and Windows-host plus WSL side-by-side behavior.
Review Focus
src/shared/project-execution-runtime.ts): project overrides take precedence over the global default;inherit-globalfollows the global default; malformed or absent values fall back to Windows host; WSL repair states are returned instead of silently falling back when WSL is unavailable, missing a distro, or points at a missing distro.src/main/git/runner.ts,src/shared/wsl-login-shell-command.ts): WSL commands are routed through the selected distro with shell-escaped argv, login-shell resolution through the distro user's passwd entry, and dollar escaping across the outersh -lclayer. Added regression coverage that command-scoped env likeHISTFILE=/tmp/orca-historysurvives to the inner login shell.src/main/ipc/worktree-logic.ts): Windows paths remain slash/case-insensitive for host worktrees; POSIX/WSL-owned paths remain case-sensitive even on a Windows desktop, so cleanup does not collapse distinct WSL paths.Testing
pnpm lintpnpm typecheckpnpm test— passed on Windows: 1707 files passed / 13 skipped; 17078 tests passed / 172 skipped.pnpm build— passed the top-level build chain on Windows, includingtypecheck,build:relay,build:cli,build:electron-vite,build:web, andbuild:native.ORCA_E2E_FORCE_HEADFUL=1 ORCA_E2E_RECORD_VIDEO=1 pnpm exec playwright test tests/e2e/windows-project-runtime-smoke.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1passed;test-results/.last-run.jsonreports"status": "passed".Windows / WSL / SSH Runtime Checklist
AI Review Report
Reviewed the implementation against recent Windows/WSL regression lessons: stale hidden WSL state, WSL login shell and distro preservation, zsh-compatible command generation, Windows PATH refresh, daemon/local PTY parity, SSH separation, path safety, provider-neutral source-control behavior, and repair-required behavior for broken WSL.
Follow-up audits checked daemon PTY launch, WSL session context, Windows shell launch-arg resolution, filesystem watcher routing, runtime docs, and stale future-facing documentation. Findings addressed include routing quick-open/text search through project WSL git options, routing terminal history through the selected WSL distro, preserving GitLab SSH hosted-review behavior, keeping filesystem watchers physical-path based, and documenting current resolver consumer coverage.
Cross-platform compatibility was reviewed for macOS/Linux non-Windows local-host behavior, Windows host behavior, WSL distro behavior, SSH Linux/Windows separation, shell/path handling, and Electron IPC/runtime boundaries touched by this PR.
Security Audit
Reviewed command execution boundaries for WSL wrapping, distro propagation, login-shell command construction, Windows batch-script routing, unsafe argv rejection, and provider CLI execution. Reviewed path handling and destructive operations for runtime-aware worktree removal, orphan cleanup, recursive filesystem access, path identity, Windows host vs WSL path conversion, and SSH separation.
Reviewed IPC/runtime boundaries so repair-required WSL states block project-scoped execution instead of silently falling back to Windows host. Reviewed auth/secrets-adjacent paths for Codex/Claude account runtime targeting and
CODEX_HOMEconversion so host-managed and WSL-managed homes are not passed into the wrong runtime.No dependency changes are part of this runtime baseline. Remaining follow-up: broad human exploratory QA beyond the repeatable Windows smoke and final PR evidence attachment.
Notes
pnpm testis green in this Windows command-line environment after the final cleanup pass.pnpm run buildpassed the top-level build chain on Windows.Known validation caveat: