fix(desktop): a slow PowerShell profile delays Windows startup by 5 s, not 10 #19467
Mergedluke2x(GitHub profile, opens in a new tab)merged 7 commits into
main fromrefs/pull/19467/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
- apps/desktop/src/shell/DesktopShellEnvironment.ts line 349OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -342,3 +343,7 @@342343 captureWindowsEnvironmentCommand(names),343344 ];344345346+ // Startup waits for this read, so the candidates share one timeout instead347+ // of each starting its own. One that fails quickly, such as pwsh.exe not348+ // being installed, leaves the rest of the time to the next.349+ const deadline = (yield* Clock.currentTimeMillis) + Duration.toMillis(LOGIN_SHELL_TIMEOUT);
- apps/desktop/src/shell/DesktopShellEnvironment.ts lines 349 to 351OutdatedResolvedby luke2x(GitHub profile, opens in a new tab)@@ -342,4 +343,9 @@342343 captureWindowsEnvironmentCommand(names),343344 ];344345346+ // Startup waits for this read, so the candidates share one timeout instead347+ // of each starting its own. One that fails quickly, such as pwsh.exe not348+ // being installed, leaves the rest of the time to the next.349+ const deadline = (yield* Clock.currentTimeMillis) + Duration.toMillis(LOGIN_SHELL_TIMEOUT);345350 for (const command of WINDOWS_SHELL_CANDIDATES) {351+ const remaining = deadline - (yield* Clock.currentTimeMillis);
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XS
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
juliusmarminge assignedjuliusmarminge
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
juliusmarminge merged thisbbe5008
juliusmarminge closed this
Sign in to join this conversation.
Codex Review Summary#
This comment shows the latest Codex review activity on this pull request.
e8cbf03ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.