Reply: cover Anthropic fast mode in prepared replies

This commit is contained in:
Vincent Koc 2026-03-13 13:51:48 -07:00
parent 5386d50840
commit 79a6188f5f
1 changed files with 16 additions and 0 deletions

View File

@ -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({