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): surface stopped daemons and refresh version after upgrade

cyh6f93ad8df90c
diff --git a/ui/src/components/settings/BackendLifecycleChip.tsx b/ui/src/components/settings/BackendLifecycleChip.tsx
index e597cfbb6..40410be52 100644
--- a/ui/src/components/settings/BackendLifecycleChip.tsx
+++ b/ui/src/components/settings/BackendLifecycleChip.tsx
@@ -47,6 +47,10 @@ const deriveVisual = (
if (!enabled) return 'disabled';
if (cliStatus === 'missing') return 'error';
if (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".
+ if (runtime?.supports_restart && runtime.process_status === 'stopped') return 'error';
if (runtime?.has_update) return 'update';
if (cliStatus === 'ok') return 'ready';
return 'loading';
diff --git a/vibe/api.py b/vibe/api.py
index 86618219c..25445ba4e 100644
--- a/vibe/api.py
+++ b/vibe/api.py
@@ -1454,6 +1454,10 @@ def install_agent(name: str) -> dict:
logger.info("Agent %s installed successfully at %s", name, installed_path)
else:
logger.warning("Agent %s install command succeeded but CLI path was not detected", name)
+ # The chip refreshes runtime immediately after upgrade; drop the
+ # 30s version cache so it reads the new `--version` instead of the
+ # pre-upgrade value.
+ _invalidate_version_cache(name)
return {
"ok": True,
"message": f"{name} installed successfully",