perf: speed up web startup and reduce route and preview work - #584
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
guidovizoso,
mxmzb and
tylerslaton
as code owners
September 16, 2026 20:11
guidovizoso
approved these changes
Sep 16, 2026
9 tasks
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.
Desktop launches rebuilt the web app every time, sign-in loaded the entire route bundle, and hidden computer previews kept processing images. This reuses valid builds, groups lazily loaded route components, and pauses hidden preview image work while retaining bot/control connections.
Measured on macOS with Bun 1.3.14:
Startup timing excludes desktop/Docker/API startup. Route measurements use controlled API responses and uncompressed loopback serving. LiveScreen retains its socket/network traffic while hidden. Separate real-backend validation used LangGraph to navigate Example.com, click through to IANA, and render a bar chart; the screenshot and successful tool results were inspected. The admin credentials route also rendered without JavaScript errors. Visual evidence is attached to FOR-310.
Validation: 837 tests passed, format, lint, explicit type checks (including startup scripts), production build, frozen lockfile install, and actionlint. Added macOS/Windows CI startup tests; Linux remains covered by the full CI suite. Real branding-change/reuse/default-restoration checks verified the compiled output.
Fixes FOR-310