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 install refresh failure message

cyh28c98200470a
diff --git a/tests/test_ui_server_install.py b/tests/test_ui_server_install.py
index ed602901d..8787689c9 100644
--- a/tests/test_ui_server_install.py
+++ b/tests/test_ui_server_install.py
@@ -139,6 +139,7 @@ def test_install_job_fails_when_runtime_refresh_fails(monkeypatch):
assert result["status"] == "failed"
assert result["ok"] is False
+ assert result["message"] == "refresh timeout"
assert result["restart"] == {"ok": False, "message": "refresh timeout"}
diff --git a/vibe/api.py b/vibe/api.py
index e0bd55848..714133e2d 100644
--- a/vibe/api.py
+++ b/vibe/api.py
@@ -1680,6 +1680,12 @@ def start_agent_install_job(name: str) -> dict:
result["restart"] = {"ok": False, "message": str(exc)}
ok = _agent_install_job_succeeded(result, name)
status = "succeeded" if ok else "failed"
+ if not ok:
+ restart = result.get("restart")
+ if isinstance(restart, dict):
+ restart_message = restart.get("message")
+ if isinstance(restart_message, str) and restart_message.strip():
+ result["message"] = restart_message.strip()
with _AGENT_INSTALL_JOB_LOCK:
current = _AGENT_INSTALL_JOBS.get(job_id)
if current is not None: