























@@ -4,6 +4,7 @@ import {
44clearMemoryPluginState,
55registerMemoryCorpusSupplement,
66} from "openclaw/plugin-sdk/memory-host-core";
7+import { readMemoryHostEvents } from "openclaw/plugin-sdk/memory-host-events";
78import { beforeEach, describe, expect, it, vi } from "vitest";
89import {
910getMemorySearchManagerMockCalls,
@@ -260,6 +261,15 @@ describe("memory tools", () => {
260261path: "memory/2026-04-03.md",
261262recallCount: 1,
262263});
264+const events = await waitFor(async () => {
265+const memoryEvents = await readMemoryHostEvents({ workspaceDir });
266+expect(memoryEvents).toHaveLength(1);
267+return memoryEvents;
268+});
269+expect(events[0]).toMatchObject({
270+type: "memory.recall.recorded",
271+query: "glacier backup",
272+});
263273} finally {
264274await fs.rm(workspaceDir, { recursive: true, force: true });
265275}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。