Repository navigation
fix(wsl-host): tell users how to fix a distro Orca can't host (D1c-1) - #33085
Conversation
37a2243 to
000c3ae
Compare
da5e00e to
23beeb2
Compare
000c3ae to
6202b06
Compare
c77bc34 to
e7aacf8
Compare
54d3284 to
7f65e3f
Compare
e7aacf8 to
9468359
Compare
7f65e3f to
5cee559
Compare
9468359 to
cddc92b
Compare
4b73405 to
553897e
Compare
40089d1 to
233d2eb
Compare
553897e to
5e37bf6
Compare
233d2eb to
e3f0ef2
Compare
5e37bf6 to
91cb91f
Compare
7d37d79 to
2d26087
Compare
|
STATUS: retarget plan for the D1c stack after #34059 lands (nothing retargeted yet; #34059 is still open) Simulated with Duplicates / empty PRs: none. No commit in the stack has a patch-id match in #34059, no file the stack touches is already identical there, and no PR loses a file or a hunk in the replay. None of the D1c helpers ( Per PR (bottom-up), expected conflicts and which side wins:
Procedure once Main-safety fixes pushed today (each with a flag-off test; details in each PR's Flag-off line):
Heads (all pushed today, load rule passing locally on each): #33085 Open questions for the lead:
|
|
STATUS: CI is green on every head of the stack: #33085 |
a4b8ff3 to
4b8ab7c
Compare
4b8ab7c to
244d317
Compare
|
STATUS: D1c stack rebased onto #34059's branch head What happened. I was rebasing my heads when the previous owner pushed theirs (02:11–02:13 UTC). My first push attempt failed on the lease, so nothing of theirs was overwritten. Neither set was a superset:
Fixes the rebase needed (one commit each, in the PR they belong to):
Heads (CI running):
Checks run locally on every head: Flag-off: I checked the previous owner's new commits. They run only inside the gated drive-path conversion (handler and startup step check Open questions: none. Nothing merged. #34059 is still open; I'll retarget #33085 to main and rebase again after it merges. |
|
STATUS: CI is green on every head of the D1c stack, rebased onto #34059's branch head
|
|
STATUS: blocked mid-way. The review fixes are done and committed locally, but not pushed. The rebase onto main was stopped by the machine running out of memory. The PRs on GitHub are unchanged (heads below). Review fixes, committed locally on each PR's branch (each has a test):
Where the main rebase stopped: Heads on GitHub (unchanged, last CI green): #33085 Next, once memory allows: finish the rebase onto main bottom-up, run the full load rule per branch, retarget #33085 to main, push each with Open question: none. Nothing merged. |
With the WSL bridge going away there is no fallback for a distro Orca's server can't run in, so each refusal now names the step that fixes it: - WSL 1: the wsl --set-version command, also shown in the Add host form, where the disabled option could never show it. - An unregistered distro, at Add and at connect: how to list installed distros. - NixOS's stub loader: turn on nix-ld. - glibc below every runtime's floor: the minimum release to use. - A WSL distro with an unknown platform no longer reads as "this SSH host". Connect refusals other than WSL 1 report as 'unsupported-distro' instead of reusing 'unsupported-wsl1'. Co-Authored-By: Claude <[email protected]>
…ErrorDetail tests
…add the fix only for a WSL distro The glibc and nix-ld hints were appended in code SSH hosts share, so SSH users saw new wording with the WSL hosts gate closed. The shared messages are back to main's text; the WSL add flow adds the fix to its own refusal. (cherry picked from commit c7a07b61c440e87652ca956570b8b91492c2a375)
… keeping orcad deploy under its line cap
244d317 to
b51d42f
Compare
Walkthrough
Priority: Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
904155b8-e654-4d48-9cfa-be8ce03ac93d
Files selected for processing: 16-
src/main/managed-server/install/orcad-remote-context.tssrc/main/managed-server/lifecycle/orcad-runtime-target.tssrc/main/wsl/wsl-distro-unsupported.test.tssrc/main/wsl/wsl-distro-unsupported.tssrc/main/wsl/wsl-host-add-admission.tssrc/main/wsl/wsl-host-first-connect.tssrc/main/wsl/wsl-host-service.test.tssrc/main/wsl/wsl-orcad-deploy.test.tssrc/main/wsl/wsl-orcad-deploy.tssrc/renderer/src/components/settings/WslHostsSection.tsxsrc/renderer/src/components/sidebar/AddWslHostDialogBody.tsxsrc/renderer/src/components/sidebar/AddWslHostFormPanel.test.tsxsrc/renderer/src/components/sidebar/AddWslHostFormPanel.tsxsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/lib/ipc-error.test.tssrc/shared/wsl-host-types.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
-
| if (error instanceof RemoteNodeRuntimeSelfTestError && NIXOS_STUB_LOADER.test(error.output)) { | ||
| return ( | ||
| 'NixOS can’t run Orca’s Node runtime as it is. Turn on nix-ld ' + | ||
| '(programs.nix-ld.enable = true; in configuration.nix), run nixos-rebuild switch, ' + |
There was a problem hiding this comment.
Tell non-root users to run the rebuild with elevated privileges.
The standard NixOS-WSL user is not root. nixos-rebuild switch requires root privileges, so the command in this hint fails for that user. Specify sudo nixos-rebuild switch or say to run it from a root shell. (nixos.org)
ELI5
Some WSL distros can't run Orca's server: WSL 1 distros, NixOS, very old Linux releases, and distros that were uninstalled. Once the old WSL bridge is removed there is nothing to fall back to, so Orca now tells the user exactly what to run to fix each case, instead of an error that doesn't help (or that calls the distro an "SSH host").
What Changed
wsl --set-version <distro> 2"wsl --list --verbose… or reinstall it"programs.nix-ld.enable = true;), runnixos-rebuild switch, then reconnect"Mechanism:
src/main/wsl/wsl-distro-unsupported.ts, holds the WSL 1 and "not installed" messages and errors. The Add check and the deploy step both use it, so the two can no longer drift apart.uname -r) maps wsl.exe's distro-not-found failure to the new error. It matches wsl.exe's error code, which isn't translated, as well as the English sentence.unsupported-distro. Before, every unsupported failure was labelledunsupported-wsl1. That kind only travels between this app's own main process and window; it never goes over the network.wslUnsupportedDistroFixMessageinwsl-distro-unsupported.ts, used bywsl-host-first-connect.ts). The errors themselves are shared with SSH hosts, so their own text stays exactly as on main; the old-glibc error is now a same-name, same-message subclass (OrcadHostGlibcUnsupportedError) so the WSL side can recognise it.apk add libstdc++) is unchanged and is covered by the new connect-kind test.Why
Owner decision (2026-10-24): WSL 1 support ends, and unsupported distros get a message saying how to fix them, with no bridge fallback. Every case above is detected where it already fails today, so supported distros pay nothing extra. I didn't add a separate distro probe up front because it would cost a
wsl.exeround trip on every connect.Linked Issue
Part of the WSL re-write, step D1c (risk rows R36, R19, R33). Stacked on #33040.
Visual Proof
The Add WSL host form gets one new hint line, shown only when a WSL 1 distro is listed. The render test asserts the text. A screenshot needs a Windows machine with a WSL 1 distro, and the shared Windows box is busy with another verification.
Testing
wsl-distro-unsupported.test.ts(new),wsl-orcad-deploy.test.ts(unregistered distro refused before anything is held; WSL 1 copy),wsl-host-service.test.ts(connect kinds), NixOS and glibc fixes plus a pin that the SSH-shared messages are unchanged (inwsl-distro-unsupported.test.ts),AddWslHostFormPanel.test.tsx(hint).Review
Self-reviewed.
Agent skill upstream boundary
Notes
orcad-remote-node-runtime-report.tsis unchanged from the base, andorcad-runtime-target.tsonly throws a subclass with the same name and the same message (pinned inwsl-distro-unsupported.test.ts). The fix steps are added in the WSL add flow only (wsl-host-first-connect.ts). The SSH branch of the unknown-platform message is unchanged. Everything else is WSL host code (Add WSL host, WSL deploy), reachable only when the WSL hosts bridge is exposed (ORCA_INTERNAL_WSL_HOSTS=1 on Windows,wsl-hosts-api.ts). The newunsupported-distrokind and the one new en.json key stay inside this app's own IPC and UI.Status
b51d42f76f7: rebased onto main72fad1af6d0(after Land the WSL project mover dark (merges only after verify-15b, the flag-off audit and green CI) #34059's squash merge); fix(wsl-host): tell users how to fix a distro Orca can't host (D1c-1) #33085 now targets main. Every commit from the previous owner is kept. CI: running on this head.wsl-orcad-deploy.ts3 lines over its cap, so the missing-distro mapping moved intowsl-distro-unsupported.ts(refuseMissingWslDistro); behavior unchanged.pnpm tc,pnpm run typecheck:ci, the PR's tests,check:code-quality:changed, the anti-slop oxlint, repo oxlint and ast-grep (including the no-real-time-sleep test rules) all pass locally on this head, run one branch at a time.