Skip to content

Commit ead22a9

Browse files
committed
test(auto-reply): fix memory flush payload test type
1 parent b3737db commit ead22a9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/auto-reply/reply/agent-runner-memory.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
type MemoryFlushPlanResolver,
1111
} from "../../plugins/memory-state.js";
1212
import type { TemplateContext } from "../templating.js";
13+
import type { ReplyPayload } from "../types.js";
1314
import {
1415
runMemoryFlushIfNeeded,
1516
runPreflightCompactionIfNeeded,
@@ -616,7 +617,7 @@ describe("runMemoryFlushIfNeeded", () => {
616617
await writeTestSessionStore(storePath, "main", sessionEntry);
617618
runWithModelFallbackMock.mockRejectedValueOnce(new Error("provider crashed during flush"));
618619

619-
const visibleErrorPayloads: { text: string; isError: boolean }[] = [];
620+
const visibleErrorPayloads: ReplyPayload[] = [];
620621
await runMemoryFlushIfNeeded({
621622
cfg: { agents: { defaults: { compaction: { memoryFlush: {} } } } },
622623
followupRun: createTestFollowupRun(),

0 commit comments

Comments
 (0)