From 192dbc3ba98ea4c6ee321fcdf8d874b5c21bf0c8 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 16 Feb 2026 09:16:11 +0000 Subject: [PATCH] test: drop duplicate role-ordering exception rewrite case --- .../reply/agent-runner.runreplyagent.test.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/auto-reply/reply/agent-runner.runreplyagent.test.ts b/src/auto-reply/reply/agent-runner.runreplyagent.test.ts index bcc5a427c..5f2264958 100644 --- a/src/auto-reply/reply/agent-runner.runreplyagent.test.ts +++ b/src/auto-reply/reply/agent-runner.runreplyagent.test.ts @@ -787,19 +787,6 @@ describe("runReplyAgent typing (heartbeat)", () => { }); }); - it("returns friendly message for 'roles must alternate' errors thrown as exceptions", async () => { - state.runEmbeddedPiAgentMock.mockImplementationOnce(async () => { - throw new Error('messages: roles must alternate between "user" and "assistant"'); - }); - - const { run } = createMinimalRun({}); - const res = await run(); - - expect(res).toMatchObject({ - text: expect.stringContaining("Message ordering conflict"), - }); - }); - it("rewrites Bun socket errors into friendly text", async () => { state.runEmbeddedPiAgentMock.mockImplementationOnce(async () => ({ payloads: [