Skip to content

fix(hub): keep Agent UI usable when the hub is unreachable with no cache - #1698

Merged
kovtcharov merged 1 commit into
mainfrom
autofix/issue-1697
Jun 16, 2026
Merged

kovtcharov merged 1 commit into
mainfrom
autofix/issue-1697

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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 hard CatalogError ("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. Now build_catalog degrades to the local registry alone (flagged offline=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 -x passes
  • python util/lint.py --all passes
  • On a machine with no network and no ~/.gaia/catalog-cache.json, launch gaia chat --ui, open the Agent Hub discover panel, and confirm builtin agents render with the offline banner instead of an error.

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
@github-actions
github-actions Bot requested a review from kovtcharov-amd as a code owner June 16, 2026 21:41
@github-actions github-actions Bot mentioned this pull request Jun 16, 2026
2 of 3 tasks
@kovtcharov
kovtcharov enabled auto-merge June 16, 2026 22:20
@kovtcharov
kovtcharov added this pull request to the merge queue Jun 16, 2026
Merged via the queue into main with commit 0b3dcc9 Jun 16, 2026
18 checks passed
@kovtcharov
kovtcharov deleted the autofix/issue-1697 branch June 16, 2026 22:21
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Could not reach the GAIA Agent Hub

1 participant