From 79a6188f5fbbf2767e43fc7787b7ebce2164a620 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 13 Mar 2026 13:51:48 -0700 Subject: [PATCH] Reply: cover Anthropic fast mode in prepared replies --- .../reply/get-reply-run.media-only.test.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/auto-reply/reply/get-reply-run.media-only.test.ts b/src/auto-reply/reply/get-reply-run.media-only.test.ts index 829b3937009..7fdbecd1fca 100644 --- a/src/auto-reply/reply/get-reply-run.media-only.test.ts +++ b/src/auto-reply/reply/get-reply-run.media-only.test.ts @@ -172,6 +172,22 @@ describe("runPreparedReply media-only handling", () => { expect(call?.followupRun.prompt).toContain("[User sent media without caption]"); }); + it("passes Anthropic fast-mode session state into runReplyAgent", async () => { + await runPreparedReply( + baseParams({ + sessionEntry: { + fastMode: true, + } as never, + }), + ); + + const call = vi.mocked(runReplyAgent).mock.calls[0]?.[0]; + expect(call).toBeTruthy(); + expect(call?.followupRun.run.fastMode).toBe(true); + expect(call?.followupRun.run.provider).toBe("anthropic"); + expect(call?.followupRun.run.model).toBe("claude-opus-4-1"); + }); + it("keeps thread history context on follow-up turns", async () => { const result = await runPreparedReply( baseParams({