perf: backport Windows install and cold-start speedups - #6097
Conversation
Publish large staged installer directories by rename while retaining the upstream copy fallback. Precompile the bundled gateway import closure so first launch does not create thousands of bytecode files under Defender. Harden Windows timing coverage, repair real-symlink capability inventory, and make the real Kiro CLI MCP precedence probe protocol-valid. (cherry picked from commit a2028c2)
83adc93 to
8da2792
Compare
UX Review (Fable 5) — ✅ PASSUX-level review of The diff is entirely packaging, installer scripting, tests, and docs — no dashboard UI, no new user-facing strings, no screenshots. The user-visible effect is purely positive perceived performance (install no longer looks stalled; first launch reaches ready in seconds instead of ~45). Nothing in the UX lenses is touched. UX-Verdict: PASS No UI surface changes; the work removes a stalled-looking install and a false-failure cold start — pure perceived-performance win with fallbacks intact. [UX-REVIEWED] 8da2792 |
Design Review (Fable 5) — ✅ PASSDesign-level review of Design review complete. The PR is a faithful backport of merged PR #6047 to the release branch: the NSIS rename-instead-of-double-copy path (per-user only, with Design-Verdict: PASS Faithful backport of an already-merged, measured fix; fallbacks preserved, template patch pinned and fail-closed, fully reversible. [DESIGN-REVIEWED] 8da2792 |
GPT 5.6 Review — ✅ no blocking findingsGPT 5.6 completed its review of This comment is updated in place on each push. Review detailsNo findings. False positive or not applicable? A repository writer can comment: |
First Principles Review (Fable 5) — 🟡 CONCERNSPremise-level review of I've read the contract, the intent file, and the patch, and verified the load-bearing claims against the repo: the five new First-Principles-Verdict: CONCERNS The doc ships "CI starts the just-installed bundled interpreter… within 30 seconds" while the same diff makes the only CI invocation skip exactly that check. What this change shipsIntent: make the 0.4.0 Windows install fast and the first launch immediate — a FIX (backport of merged #6047).
Watch
Subtractions
[FIRST-PRINCIPLES-REVIEWED] 8da2792 |
Problem / Motivation
Backport the Windows install and cold-start performance fix from merged PR #6047 to
release/0.4.0. The release branch otherwise retains the NSIS double-copy path that took about 5 minutes 25 seconds and caused the native progress bar to jump, followed by a 44–50 second first gateway start while Defender scanned newly generated bytecode.Why it matters
Windows users installing the 0.4.0 release would still see a healthy install look stalled and then wait nearly another minute before the app becomes usable. This backport keeps the measured fix in the active release line.
What changed (motivation → approach → change)
a2028c2847cbb28dcd40ba189528ce3eb16948fffrom merged PR perf: speed up Windows install and cold start #6047 with-xattribution.resourcesandlocalesdirectories, retaining upstreamCopyFilesfor the small remainder and every failure/cross-volume fallback. Per-machine installs deliberately retainCopyFilesso Program Files ACL inheritance stays correct.test/test_ai_review_workflows.pyunchanged because the source hunk only adjusted Bash lookup inside a main-only test block absent fromrelease/0.4.0.website/electron/package.jsondiffers only by retaining release version0.4.0-rc.9.Tests
136 passed, 2 skipped.1,337 passed, 2 skipped, 0 failed.63,013 passed, 2,593 skipped, 6 xfailed; the eight failures caused by a local forced xdist worker cap / high-load browser recording all passed in a clean no-cap rerun (8 passed).Manual verification
The merged source change was verified with the full Windows backend and unsigned x64 NSIS package: 9,449 files / 661.4 MiB installed in 27.48 seconds locally and 59.91 seconds in the CI-equivalent run, both below 120 seconds. The just-installed bundled gateway reached
/api/readyin 5.05–5.68 seconds, down from 44–50 seconds. Uninstall registration, payload removal, pre-existing sentinel preservation, cache isolation, and cleanup also passed.Related Issues
no linked issue: this is a release backport of merged PR #6047.
Related PR: #6012 covers visible update progress; #6047 is the complementary install/cold-start performance fix.
Checklist
feat|fix|docs|refactor|perf|test|chore|ci|build|revert: ...)Contribution License Agreement