Repository navigation
fix(ui): stop flagging Macs, Linux and Ryzen AI laptops as unsupported - #4325
Conversation
… as unsupported Agent UI Settings showed a red "Processor: darwin" on every Mac and flagged Linux machines and most Ryzen AI laptops as unsupported. The check still demanded a Ryzen AI Max or a 24 GB Radeon (the bar for Qwen3.5-35B), while the default model is now the 4B Gemma. Nothing in the UI acts on that verdict. Memory fit is already covered by the Memory row and the per-agent min_memory_gb warning, so the verdict is removed and the Processor row is informational. - The Processor row names the real CPU on macOS (sysctl) and Linux (/proc/cpuinfo) instead of the platform string, and is cached and read off the event loop. - The status endpoint's `except Exception: pass` around the check is gone, along with GAIA_SKIP_DEVICE_CHECK and the remote-URL bypass that only existed to silence it. Detection failures are logged and hide the row. - device_supported is removed from SystemStatus and the Agent UI types; nothing else consumed it. Fixes amd#4230
|
Verdict: Approve with suggestions This removes the hardware "supported / unsupported" verdict from the Agent UI Settings panel and turns the Processor row into a plain, informational CPU name — which is the right call now that the default model is a 4B Gemma rather than the 35B that set the old 24 GB bar. The removal looks complete: nothing in the backend, the UI, or the Go TUI still reads the old field, and the silent One thing to fix before merge: the CLI reference still tells users the Agent UI requires a Ryzen AI Max or a 24 GB Radeon, and that unsupported devices get a warning banner. That is exactly the claim this PR deletes from the product, so the docs would ship contradicting the code. It's a one-line edit; a suggested replacement is below. Smaller things worth a look: the processor name is cached for the life of the server, including the empty result from a transient detection failure, so a one-off hiccup hides the row until restart; and a stale "Device compatibility check" comment survives on the backend model even though its TypeScript counterpart was removed. Real-world evidenceNo
The one gap is the pixels: the Settings-panel check on Windows and Linux is still unticked in the test plan. Per the review rubric that's a nudge, not a blocker — the underlying route evidence is present. Worth posting a Settings screenshot when the strix-halo lane runs. 🔍 Technical detailsIssues🟡 Stale hardware requirement in the CLI reference ( The Note still reads "The Agent UI requires an AMD Ryzen AI Max (Strix Halo) or an AMD Radeon GPU with ≥ 24 GB VRAM. If your device is not supported, a dismissible warning banner will appear in the UI." Both halves are false after this change — there is no verdict and no banner. CLAUDE.md's doc-sync rule ("a functional change must update EVERY doc that describes it") applies here.
🟢
🟢 Stale comment on the backend model ( The TypeScript type dropped its 🟢 Windows no longer falls back to If the registry read fails on Windows the row now disappears rather than showing Strengths
|
The Agent UI no longer computes a support verdict or shows an unsupported-device banner, so the Note promising a Ryzen AI Max / 24 GB Radeon requirement described behavior that this branch deletes.
|
Fixed the docs contradiction the review flagged, plus the stale comment.
Merged 🔍 Technical detailsConfirmed the claim was genuinely dead before editing: Not addressed here (both 🟢 in the review, and neither is a correctness claim in shipped docs): the |
# Conflicts: # src/gaia/ui/routers/system.py
…kend (amd#4345) The Agent UI's TypeScript API types are written by hand, and nothing checked them against what the backend actually sends. Five had already drifted: settings were missing the agent mode, system status was missing the active profile, schedules were missing their parsed config, and three fields were typed as never-null although the backend sends null. Now CI fails and names the field whenever a hand-written type and the backend disagree, and those five types are fixed. Nothing changes for users; no UI code read the missing fields yet. This is the type-generation half of amd#4246. It also covers amd#3327's "snapshot the schema" and "check the TS types agree" items, but not its route `response_model` and conformance-test items. ## Test plan - [x] `python -m pytest tests/unit/chat/ui/test_export_openapi.py tests/unit/chat/ui/test_models.py tests/unit/chat/ui/test_server.py tests/unit/test_webui_agent_info_contract.py -q`: 170 passed - [x] `python -m gaia.ui.export_openapi --check` exits 0, also from another working directory with different env - [x] `cd src/gaia/apps/webui && npx tsc --noEmit`: clean. With `main`'s `types/index.ts` restored it fails five times, naming `agent_mode`, `active_profile`, `schedule_config`, `mail_provider`, `extension` - [x] `cd src/gaia/apps/webui && npm test`: 400 passed. Deleting one line from `api.gen.ts` fails the new generation test and `node scripts/gen-api-types.mjs --check` - [x] `npm run build` succeeds - [x] black, isort, pylint clean on the new Python files - [ ] CI: the Agent UI Vitest job's new Type-check step passes <details> <summary>🔍 Technical details</summary> **The pipeline:** `python -m gaia.ui.export_openapi` writes `src/types/api.schemas.json` from `create_app(":memory:").openapi()`, then `npm run gen:api-types` writes `src/types/api.gen.ts`. Each step has a stale check: a pytest test for the JSON and a Vitest test for the TS. `src/types/apiContract.ts` then compares 18 hand-written wire types with their generated counterparts at compile time. It flags backend fields missing from TS, TS fields never sent, and kind mismatches (string/number/boolean/null/array/object). It also has a self-test so it can't pass vacuously. `tsc` runs in the PyPI build on every PR, and now in the Agent UI Vitest job too. **Why not openapi-typescript:** it has a peer dependency on `typescript@^5` and uses the TS 5 compiler API. The Agent UI is on TypeScript 7, the native port, which has no JS API, so npm refuses the install. Its 6.x line has no TS dependency but pulls a vulnerable `undici`. `[email protected]` is pinned exact and adds no new `npm audit` findings (still 6, all pre-existing). The lockfile was written with npm 11 to keep its `libc` fields. **Only the component schemas are snapshotted, not the full OpenAPI doc.** Route docstring edits don't cause regenerations, since the types don't depend on them. **AgentInfo's 14 "TS-only" fields aren't drift.** They're Hub catalog fields from `merge_with_registry`, and `tests/unit/test_webui_agent_info_contract.py` (amd#3846) already checks each one against its emitter. The contract allowlists exactly those 14. **Not covered:** camelCase view models (`Message`, `AgentStep`, `CommandOutput`), and TS types whose routes have no `response_model` (tunnel, MCP, connectors). The latter are amd#3327's remaining work. **Things to know:** - CI installs unpinned `fastapi`/`pydantic`, as the email agent's `export_openapi --check` already does. The committed snapshot matches the current latest (fastapi 0.141.1, pydantic 2.13.5), but a future release that changes schema output would need a regenerate. - A dependabot bump of `json-schema-to-typescript` or its `prettier` dependency may need `npm run gen:api-types` run on its PR. **Overlap:** - amd#4325 removes `SystemStatus.device_supported` from the backend and TS. Whichever of the two PRs merges second must rerun the two regenerate commands. The fixture edits touch separate hunks. - Other open PRs that edit pydantic models in `src/gaia/ui/` need the same regenerate after this lands. - amd#4186 and amd#4340 don't touch these files. </details> Part of amd#4246 --------- Co-authored-by: Kalin Ovtcharov <[email protected]> Co-authored-by: Kalin Ovtcharov <[email protected]>
Agent UI Settings showed a red "Processor: darwin" on every Mac and flagged Linux machines and most Ryzen AI laptops as unsupported. The check still required a Ryzen AI Max or a 24 GB Radeon, the bar for the old Qwen3.5-35B default, but the default model is now the 4B Gemma. Nothing acts on that verdict, and memory fit is already covered by the Memory row and the per-agent memory warning. So the verdict is removed, and the Processor row now just names the real CPU (e.g. "Apple M4" instead of "darwin"). The silent
except Exception: passaround the check is gone too.Overlap: #4176, #4265 and #4309 also edit
src/gaia/ui/routers/system.py, but not the device block, so any conflict is textual only.Test plan
tests/unit/test_device_check.pytests and the newtest_system_status_names_the_processor_without_a_support_verdictfailed onmain, and all pass with the fix.GAIA_HOME=<tmp> GAIA_DAEMON_HOME=<tmp> python -m pytest tests/unit/chat/ui/ tests/unit/test_device_check.py -q: 1038 passed.src/gaia/apps/webui:npx tsc --noEmit -p .is clean andnpx vitest runpasses 398/398.GET /api/system/statusagainst a realcreate_app()returnsprocessor_name: "Apple M4"and nodevice_supportedfield. Onmainit returned"darwin"/false.Fixes #4230