fix: report memory index progress

This commit is contained in:
Peter Steinberger
2026-01-17 20:41:59 +00:00
parent 63d466fe5e
commit e932772230
4 changed files with 169 additions and 24 deletions

View File

@@ -167,7 +167,9 @@ describe("memory cli", () => {
registerMemoryCli(program);
await program.parseAsync(["memory", "status", "--index"], { from: "user" });
expect(sync).toHaveBeenCalledWith({ reason: "cli" });
expect(sync).toHaveBeenCalledWith(
expect.objectContaining({ reason: "cli", progress: expect.any(Function) }),
);
expect(probeEmbeddingAvailability).toHaveBeenCalled();
expect(close).toHaveBeenCalled();
});