@@ -1383,8 +1383,8 @@ describe("processDiscordMessage draft streaming", () => {
|
1383 | 1383 | |
1384 | 1384 | await runProcessDiscordMessage(ctx); |
1385 | 1385 | |
1386 | | -expect(draftStream.update).toHaveBeenCalledWith(expect.stringContaining("Exec")); |
1387 | | -expect(draftStream.update).toHaveBeenCalledWith(expect.stringContaining("exec done")); |
| 1386 | +const updates = draftStream.update.mock.calls.map((call) => call[0]); |
| 1387 | +expect(updates).toEqual(["Pinching...\n🛠️ Exec\n• exec done"]); |
1388 | 1388 | expectPreviewEditContent("done"); |
1389 | 1389 | expect(deliverDiscordReply).not.toHaveBeenCalled(); |
1390 | 1390 | }); |
@@ -1770,7 +1770,8 @@ describe("processDiscordMessage draft streaming", () => {
|
1770 | 1770 | expect(draftStream.update).toHaveBeenCalledWith( |
1771 | 1771 | "Clawing...\n🩹 1 modified; extensions/discord/src/monitor/message-handler.draft-prev…", |
1772 | 1772 | ); |
1773 | | -expect(draftStream.update).not.toHaveBeenCalledWith(expect.stringContaining("Apply Patch")); |
| 1773 | +const updates = draftStream.update.mock.calls.map((call) => call[0]); |
| 1774 | +expect(updates.every((update) => !update.includes("Apply Patch"))).toBe(true); |
1774 | 1775 | }); |
1775 | 1776 | |
1776 | 1777 | it("shows reasoning text instead of a bare Reasoning progress line", async () => { |
@@ -1803,7 +1804,8 @@ describe("processDiscordMessage draft streaming", () => {
|
1803 | 1804 | expect(draftStream.update).toHaveBeenCalledWith( |
1804 | 1805 | "Clawing...\n🛠️ Exec\n• _Reading the event projector_", |
1805 | 1806 | ); |
1806 | | -expect(draftStream.update).not.toHaveBeenCalledWith(expect.stringContaining("Reasoning")); |
| 1807 | +const updates = draftStream.update.mock.calls.map((call) => call[0]); |
| 1808 | +expect(updates.every((update) => !update.includes("Reasoning"))).toBe(true); |
1807 | 1809 | }); |
1808 | 1810 | |
1809 | 1811 | it("replaces reasoning snapshots instead of appending duplicates", async () => { |
|