diff --git a/src/auto-reply/command-reply.test.ts b/src/auto-reply/command-reply.test.ts index 2864c645b..1e66cf6b5 100644 --- a/src/auto-reply/command-reply.test.ts +++ b/src/auto-reply/command-reply.test.ts @@ -388,7 +388,13 @@ describe("runCommandReply (pi)", () => { content: [{ type: "text", text: "from agent_end" }], model: "pi-1", provider: "inflection", - usage: { input: 1, output: 1, cacheRead: 0, cacheWrite: 0, total: 2 }, + usage: { + input: 1, + output: 1, + cacheRead: 0, + cacheWrite: 0, + total: 2, + }, stopReason: "stop", }, ], @@ -443,7 +449,7 @@ describe("runCommandReply (pi)", () => { expect(payloads?.[0]?.text).toMatch(/produced no output/i); expect(payloads?.[0]?.text).not.toContain("message_end"); - expect(payloads?.[0]?.text).not.toContain("\"type\""); + expect(payloads?.[0]?.text).not.toContain('"type"'); }); it("does not stream tool results when verbose is off", async () => { diff --git a/src/auto-reply/command-reply.ts b/src/auto-reply/command-reply.ts index 00cf5193f..c39f5ed85 100644 --- a/src/auto-reply/command-reply.ts +++ b/src/auto-reply/command-reply.ts @@ -154,7 +154,6 @@ function extractNonJsonText(raw: string): string | undefined { try { JSON.parse(trimmed); // JSON protocol frame → never surface directly. - continue; } catch { kept.push(line); }