From 95b9f1752b9dd7a0fa059c9b2f3c81451507c365 Mon Sep 17 00:00:00 2001 From: jlin53882 Date: Tue, 14 Apr 2026 11:29:15 +0800 Subject: [PATCH] fix(cli-smoke): add missing count() mock method (Issue #596) The mock store in cli-smoke.mjs was missing the async count() method that the real store interface provides. This caused the assertion at line ~316 to fail with undefined !== 1 when recallResult.details.count was accessed. This is a pre-existing issue introduced by the lifecycle-aware memory decay commit, not related to PR #516. --- test/cli-smoke.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/test/cli-smoke.mjs b/test/cli-smoke.mjs index 9b30122e..3d557804 100644 --- a/test/cli-smoke.mjs +++ b/test/cli-smoke.mjs @@ -300,6 +300,7 @@ async function runCliSmoke() { }, store: { async patchMetadata() {}, + async count() { return 1; }, }, scopeManager: { getAccessibleScopes() {