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.

merge(org): sync current master into org

Max0c7e5bc41a28
diff --cc tests/test_ui_memory_routes.py
index 534c4413f,d3a3fb7a3..3bf3f241a
--- a/tests/test_ui_memory_routes.py
+++ b/tests/test_ui_memory_routes.py
@@@ -23,20 -23,31 +23,45 @@@ from vibe import api, internal_client,
from vibe.ui_server import app
+def _active_org_member_cookie(config: V2Config, email: str, subject: str) -> str:
+ return remote_session_cookie(
+ config,
+ email,
+ subject,
+ role="viewer",
+ access_source="organization_group",
+ organization_id="org-1",
+ organization_member_id="member-1",
+ organization_role="member",
+ group_ids=[],
+ )
+
+
+ def test_memory_rebuild_result_preserves_closed_preflight_diagnostic() -> None:
+ payload, status = ui_memory_routes._memory_rebuild_result(
+ {
+ "ok": False,
+ "error": "memory_embedding_unavailable",
+ "result": "failed",
+ "diagnostic": {
+ "side": "embedding",
+ "http_status": 404,
+ "provider_error_code": "model_not_supported",
+ "message": "unsupported model",
+ "raw": "must not cross",
+ },
+ },
+ 409,
+ )
+ assert status == 409
+ assert payload["diagnostic"] == {
+ "side": "embedding",
+ "http_status": 404,
+ "provider_error_code": "model_not_supported",
+ "message": "unsupported model",
+ }
+
+
def _save_config(tmp_path) -> None:
V2Config(
mode="self_host",