Repository navigation
Conversation
…on as the app launches The WSL host connect can only start once the store has loaded, about 1.5-2 s into startup on a slow PC, and its first command then waits for the distro to boot. The service now remembers which distros had open work, and the next launch starts booting just those right after taking the single-instance lock.
This was referenced Oct 26, 2026
Contributor
Author
|
Superseded by #33924. |
nwparker
added a commit
that referenced
this pull request
Oct 26, 2026
…ces #33141's list) #33141 booted, at the very start of the next launch, every distro the last run had open work on, which conflicts with E9 (a launch boots only the focused host). Each focus entry now records just that host's distro for the next launch's early boot, and focusing a workspace off WSL (reported as a null focus entry), turning WSL hosts off, or a host that can't run clears it. Co-Authored-By: Claude <[email protected]>
nwparker
added a commit
that referenced
this pull request
Oct 26, 2026
…ces #33141's list) #33141 booted, at the very start of the next launch, every distro the last run had open work on, which conflicts with E9 (a launch boots only the focused host). Each focus entry now records just that host's distro for the next launch's early boot, and focusing a workspace off WSL (reported as a null focus entry), turning WSL hosts off, or a host that can't run clears it. Co-Authored-By: Claude <[email protected]>
nwparker
added a commit
that referenced
this pull request
Oct 26, 2026
…ces #33141's list) open work on, which conflicts with E9 (a launch boots only the focused host). Each focus entry now records just that host's distro for the next launch's early boot, and focusing a workspace off WSL (reported as a null focus entry), turning WSL hosts off, or a host that can't run clears it. Co-Authored-By: Claude <[email protected]>
nwparker
added a commit
that referenced
this pull request
Oct 26, 2026
…ch (E9, replaces #33141) (#33924) * perf(wsl-host): start booting the distros the last run had open work on as the app launches The WSL host connect can only start once the store has loaded, about 1.5-2 s into startup on a slow PC, and its first command then waits for the distro to boot. The service now remembers which distros had open work, and the next launch starts booting just those right after taking the single-instance lock. * perf(wsl-host): wake only the focused WSL host early at launch (replaces #33141's list) open work on, which conflicts with E9 (a launch boots only the focused host). Each focus entry now records just that host's distro for the next launch's early boot, and focusing a workspace off WSL (reported as a null focus entry), turning WSL hosts off, or a host that can't run clears it. Co-Authored-By: Claude <[email protected]> * fix(wsl-host): the early-wake list is authoritative: deleted when off, forgotten on Remove Review of #33924: the early wake runs before settings load, so it can't read the WSL hosts setting. Turning WSL hosts off now deletes the list synchronously (emptying it if the delete fails; a missing or unreadable list wakes nothing), and removing a host drops it from the list. There is no pendingStop field on host records yet (E11); the existing registered-host filter covers removed records until then. Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[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.
ELI5
When Orca restarts after a reboot, the WSL distro your project lives in is switched off, and switching it on takes several seconds. Orca only asked for it once the app had loaded far enough to know your project was in it. Orca now writes down which distros you had open, and on the next launch it starts switching those on first thing, while the rest of the app loads. A distro you didn't have open is never touched.
What Changed
orca-wsl-host-wake.jsonin userData.wsl.exe -d <distro> --exec truefor each saved distro that is still a registered WSL host. This is fire and forget; the normal connect does the real work.wsl-host-early-wake.tswithrememberWslHostsToWakeandwakeRememberedWslHosts.WslHostServicesaves the list fromsetVisibleWork, and clears it when the hosts can't run (setting off, gate closed, no server files) or a host is removed.src/main/index.ts, Windows only, behindORCA_INTERNAL_WSL_HOSTS.buildWslExecArgsand spawned through@orca/process-host.Why
--exec trueholds nothing open: no holder and no server start.Linked Issue
Internal: WSL via orcad, D3 startup gate (R35 / E17; E9 never-wake rule).
Visual Proof
N/A. This is a startup timing change behind the internal
ORCA_INTERNAL_WSL_HOSTSgate, with no visual difference.Testing
wsl-host-early-wake.test.ts: only remembered distros that are still hosts are woken; an empty or unreadable list wakes nothing.wsl-host-service.test.ts: the list follows the open work and empties when the hosts are turned off.Review
Agent skill upstream boundary
Notes
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)