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.

test(memory): isolate rebuild lifecycle from provider preflight

Max4da158b3eba8
diff --git a/tests/test_memory_process.py b/tests/test_memory_process.py
index 2278a79e8..8924561a2 100644
--- a/tests/test_memory_process.py
+++ b/tests/test_memory_process.py
@@ -2262,6 +2262,12 @@ def _inject_real_rebuild_process(
monkeypatch: pytest.MonkeyPatch,
host: _FakeProcessHost,
) -> None:
+ async def preflight(
+ self: memory_runtime.MemoryRuntime,
+ config: MemoryConfig | None = None,
+ ) -> dict[str, bool]:
+ return {"ok": True}
+
def rebuild_process(
python,
*,
@@ -2279,6 +2285,7 @@ def _inject_real_rebuild_process(
_host=host,
)
+ monkeypatch.setattr(memory_runtime.MemoryRuntime, "preflight", preflight)
monkeypatch.setattr(memory_runtime, "EverOSRebuildProcess", rebuild_process)