Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(backends): trust row cli_path over stale runtime probe in chip

cyh0150bd40afa3
diff --git a/ui/src/components/settings/BackendLifecycleChip.tsx b/ui/src/components/settings/BackendLifecycleChip.tsx
index a37dea8f8..e43d422bc 100644
--- a/ui/src/components/settings/BackendLifecycleChip.tsx
+++ b/ui/src/components/settings/BackendLifecycleChip.tsx
@@ -61,7 +61,12 @@ const deriveVisual = (
if (phase === 'upgrading') return 'updating';
if (!enabled) return 'disabled';
if (cliStatus === 'missing') return 'error';
- if (runtime && runtime.installed === false) return 'error';
+ // ``runtime.installed`` is probed against the *persisted* cli_path. When
+ // the user edits the row's path and runs Detect, ``cliStatus`` flips to
+ // ``ok`` but the runtime probe is still inspecting the saved config. In
+ // that window the local detection is the fresher signal — trust it and
+ // do not flip the chip to error just because the saved config is stale.
+ if (cliStatus !== 'ok' && runtime && runtime.installed === false) return 'error';
// A daemon-backed backend whose process was killed externally must surface
// as error so the popover offers Restart — a stopped daemon outranks both
// "update available" and "ready".