perf(desktop): speed up local-server install — uv on Windows, background Playwright/Chromium with mirror fallback - #32
Merged
Conversation
…und Playwright/Chromium with npmmirror fallback
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.
What
Speeds up the desktop local-server bootstrap on fresh machines, where installing every dependency from official sources could take 10+ minutes on slow networks.
Windows: install Python dependencies with uv
install-local-server.ps1now bootstrapsuvinto the venv and routes all dependency installs (server, mem0, script/document tools, editable install) throughuv pip install— parallel downloads plus a much faster resolver, matching what the macOS bootstrap already does.pip installpath automatically, so reliability is unchanged.Both platforms: Playwright/Chromium moves to a background install with mirror fallback
pptxgenjs+playwright+ the ~130 MB Chromium download no longer block the install: the core service now finishes installing and starts first, while the optional document tools install in a detached background task (log:node-tools-install.log, with a lock file to prevent duplicate runs).registry.npmjs.org; when it is slow or unreachable it switches to the npmmirror registry andPLAYWRIGHT_DOWNLOAD_HOSTmirror for the Chromium binary. A failed official-host Chromium download is retried once via the mirror.Testing
npm run test:scriptsindesktop/— 16/16 passbash -non the modified shell script