Repository navigation
fix(install): bundle the Agent UI build in the frozen gaia - #6948
Conversation
The frozen gaia shipped since v0.26.0-rc6 carried no web UI build, so `gaia chat --ui` served only its "backend API" placeholder page. Browser and phone (tunnel) users got no app, and every installer journey's setup phase timed out waiting for the setup screen. The core build now builds the UI before freezing, freeze.py bundles it where the server looks and refuses to build without it, and the smoke test checks that / serves the app. The journey rows also upload their Playwright screenshots, traces and report when setup fails.
|
Verdict: Approve with suggestions This fixes a real release blocker: since rc6 the frozen The open test-plan item matters most: dispatch Real-world evidenceN/A: no evidence bundle was produced for this PR. The change is to CI and installer build tooling, so there is no CLI, API or UI surface the evidence lane could run here. The verdict rests on reading the code and on the new unit tests. Two things still need proof: the frozen build serving the app on all three platforms, which the author's unchecked 🔍 Technical detailsIssues 🟢 The refusal test depends on the full UI stack being installed ( What I checked
Strengths
|
build_core.yml now builds src/gaia/apps/webui, so a web-UI-only change must still run the lanes that freeze the core. The two allowlist entries that excused package.json and package-lock.json are no longer needed. The smoke test also loads the page's entry script, so a bundle whose assets are missing fails, and the Node setup caches npm.
Since v0.26.0-rc6 the frozen
gaiashipped without the web UI build, sogaia chat --uiserved only its "This is the GAIA backend API" placeholder. Anyone opening the Agent UI in a browser or on a phone over the tunnel got no app, and every desktop journey row (win-agent-ui-exe, win-setup-ui, the .deb, AppImage and dmg rows) timed out waiting for the setup screen. Now the core build builds the UI first, the freeze bundles it and refuses to build without it, and the smoke test fails if/isn't the app. When setup fails, the journey rows now also upload Playwright's screenshot, trace and report.#6946 doesn't fix this one: it changes
gaia init's agent check, and this failure is the missing UI files.Test plan
pytest tests/unit/installer/test_core_freeze_webui.py tests/unit/installer/test_installer_headless.py tests/unit/installer/test_install_scripts_terminal_hub.py tests/unit/installer/test_readme_matches_layout.pynpm run buildindex.html and rejects the server's placeholder pagebuild_core.ymldispatched on this branch (run): freeze and smoke pass on win32-x64, darwin-arm64 and linux-x64, including "serves the Agent UI at /"