Repository navigation
fix(hub): keep Agent UI usable when the hub is unreachable with no cache - #1698
Merged
Merged
Conversation
build_catalog now degrades to the local registry (builtin/installed agents) flagged offline instead of propagating CatalogError, which surfaced as a blocking 503 in the discover panel on a fresh, offline machine. Closes #1697
kovtcharov
approved these changes
Jun 16, 2026
3 tasks
pull Bot
pushed a commit
to bhardwajRahul/gaia
that referenced
this pull request
Jun 22, 2026
) After the v0.21.2 hub-offline fix (amd#1698), a user on Strix Halo running the Agent UI inside Windows Sandbox hit a fresh hard crash: `GAIA crashed — child-process-gone: type=GPU reason=crashed`. The GPU process crashing is **recoverable** — Chromium relaunches it and falls back to software rendering — but our safety-net routed every `child-process-gone` event through the fatal handler, popping a crash dialog and calling `process.exit(1)`. In GPU-less environments (Windows Sandbox, VMs, RDP) the GPU process crashes on essentially every launch, so an otherwise-healthy UI was killed on startup. After this change, GPU-type child-process crashes are logged forensically and the app keeps running; non-GPU child crashes stay fatal exactly as before. Closes amd#1697 ## Test plan - [ ] `cd tests/electron && npx jest test_main_error_handling.js` passes (15 tests, incl. new GPU non-fatal + non-GPU still-fatal cases) - [ ] `python util/lint.py --all` passes (no Python files changed) - [ ] Manual: launch the desktop app inside Windows Sandbox (or any GPU-less VM/RDP session) and confirm the Agent UI loads instead of showing the "GAIA crashed / type=GPU reason=crashed" dialog; check `~/.gaia/electron-main.log` for a `GPU_PROCESS_GONE` line confirming the crash was caught and tolerated. >⚠️ **Needs manual validation** — the automated checks here confirm no regression and the unit-level behavior, but can't reproduce a real GPU-process crash. A maintainer should verify on Windows Sandbox / a GPU-less VM by the step above before merging. Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
2 of 3 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.
On a fresh machine that has never reached the Agent Hub — offline, behind a firewall, or with DNS that can't resolve
hub.amd-gaia.ai— opening the Agent UI's discover panel hit a hardCatalogError("Could not reach the GAIA Agent Hub and no offline cache is available"), surfaced as a 503 that blocked the panel. The user's builtin/installed agents were perfectly usable, but the error made the app look broken. Nowbuild_catalogdegrades to the local registry alone (flaggedoffline=true, which the UI already renders as a banner); remote-only "available" agents simply aren't listed until the hub is reachable again. Installing from the hub still fails loudly, since you genuinely can't pull an artifact from an unreachable hub.Closes #1697
Test plan
python -m pytest tests/unit/test_hub_catalog.py tests/unit/test_hub_router.py -xpassespython util/lint.py --allpasses~/.gaia/catalog-cache.json, launchgaia chat --ui, open the Agent Hub discover panel, and confirm builtin agents render with the offline banner instead of an error.