Fix memory page to use local store

This commit is contained in:
2026-05-20 23:41:39 +08:00
parent 061cc9225a
commit 9a8f058008
4 changed files with 96 additions and 11 deletions
+9
View File
@@ -44,6 +44,15 @@ def test_memory_api_stores_workspace_scoped_notes(tmp_path, monkeypatch):
assert "Different workspace note." not in str(search)
def test_memory_search_returns_empty_local_result_without_vector_warning(tmp_path, monkeypatch):
monkeypatch.setenv("DUCK_DB_PATH", str(tmp_path / "duck.sqlite3"))
client = TestClient(create_app())
response = client.get("/v1/memory/search", params={"q": "missing memory"}).json()
assert response == {"results": []}
async def test_memory_store_searches_text_and_metadata(tmp_path):
store = MemoryStore(str(tmp_path / "duck.sqlite3"))
await store.init()