Repository navigation
Conversation
…p starts The connect to a WSL host waited for the window to hydrate and report its open work, several seconds into startup. Main now reads the same open work from the saved session once holders are adopted, so the distro boot and orcad start overlap the app's own startup.
This was referenced Oct 24, 2026
Contributor
Author
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
Orca waited until its window had fully loaded before it started waking a WSL host. On a slow PC that's 3–4 seconds of doing nothing. Main now reads the saved session as soon as it starts. If the last session had a WSL-host project open, it starts connecting right away, while the window is still loading.
What Changed
setVisibleWork.wslHostsWithReopenedWork()readsstore.getWorkspaceSession().reopenedWorkservice dependency, wired inwsl-host-handlers.ts.WslHostService.start()calls it afteradoptHolders(), and only if the renderer hasn't reported a set yet.Why
Measured on a low-spec Windows 11 box (i7-6700T, WSL 2.7.10), warm relaunch: the connect now starts at about 1.9 s after launch instead of 3.4–4.1 s, and the host is ready at about 5.0 s instead of 6–7.4 s.
Linked Issue
Internal: WSL via orcad, D3 startup gate (R35 / E17).
Visual Proof
N/A. This is a startup timing change behind the internal
ORCA_INTERNAL_WSL_HOSTSgate, with no visual difference.Testing
wsl-host-reopened-work.test.tscovers the active-host, open-tab and no-work cases.wsl-host-service.test.tschecks that startup connects reopened hosts only after adopting holders, boots nothing without saved work, and keeps a set the renderer already reported.Review
Agent skill upstream boundary
Notes
ORCA_INTERNAL_WSL_HOSTSand the WSL hosts setting.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)