



























@@ -1743,7 +1743,7 @@ describe("processDiscordMessage draft streaming", () => {
17431743await runProcessDiscordMessage(ctx);
1744174417451745const updates = draftStream.update.mock.calls.map((call) => call[0]);
1746-expect(updates).toEqual(["Pinching...\n🛠️ Exec\n• exec done"]);
1746+expect(updates).toEqual(["Pinching\n\n🛠️ Exec\n• exec done"]);
17471747expectPreviewEditContent("done");
17481748expect(deliverDiscordReply).not.toHaveBeenCalled();
17491749});
@@ -1773,7 +1773,7 @@ describe("processDiscordMessage draft streaming", () => {
17731773await runProcessDiscordMessage(ctx);
1774177417751775expect(getLastDispatchReplyOptions()?.sourceReplyDeliveryMode).toBe("message_tool_only");
1776-expect(draftStream.update).toHaveBeenCalledWith("Pinching...\n🛠️ Exec\n• exec done");
1776+expect(draftStream.update).toHaveBeenCalledWith("Pinching\n\n🛠️ Exec\n• exec done");
17771777expect(deliverDiscordReply).not.toHaveBeenCalled();
17781778});
17791779@@ -2205,7 +2205,7 @@ describe("processDiscordMessage draft streaming", () => {
2205220522062206await runProcessDiscordMessage(ctx);
220722072208-expect(draftStream.update).toHaveBeenCalledWith("Shelling\n🛠️ Exec\n• exec done");
2208+expect(draftStream.update).toHaveBeenCalledWith("Shelling\n\n🛠️ Exec\n• exec done");
22092209expect(deliverDiscordReply).not.toHaveBeenCalled();
22102210expectPreviewEditContent("done");
22112211});
@@ -2238,7 +2238,7 @@ describe("processDiscordMessage draft streaming", () => {
22382238await runProcessDiscordMessage(ctx);
2239223922402240expect(draftStream.update).toHaveBeenCalledWith(
2241-"Shelling\n🛠️ run tests, `pnpm test -- --watch=false`\n• done",
2241+"Shelling\n\n🛠️ run tests, `pnpm test -- --watch=false`\n• done",
22422242);
22432243});
22442244@@ -2270,7 +2270,7 @@ describe("processDiscordMessage draft streaming", () => {
2270227022712271await runProcessDiscordMessage(ctx);
227222722273-expect(draftStream.update).toHaveBeenCalledWith("Shelling\n🛠️ Exec\n• done");
2273+expect(draftStream.update).toHaveBeenCalledWith("Shelling\n\n🛠️ Exec\n• done");
22742274});
2275227522762276it("keeps Discord progress lines below the configured label", async () => {
@@ -2297,7 +2297,7 @@ describe("processDiscordMessage draft streaming", () => {
2297229722982298await runProcessDiscordMessage(ctx);
229922992300-expect(draftStream.update).toHaveBeenCalledWith("Clawing...\n🧩 First\n🧩 Second\n🧩 Third");
2300+expect(draftStream.update).toHaveBeenCalledWith("Clawing...\n\n🧩 First\n🧩 Second\n🧩 Third");
23012301});
2302230223032303it("skips empty apply_patch starts and renders the patch summary", async () => {
@@ -2328,7 +2328,7 @@ describe("processDiscordMessage draft streaming", () => {
23282328await runProcessDiscordMessage(ctx);
2329232923302330expect(draftStream.update).toHaveBeenCalledWith(
2331-"Clawing...\n🩹 1 modified; extensions/discord/src/monitor/message-handler.draft-preview.ts",
2331+"Clawing...\n\n🩹 1 modified; extensions/discord/src/monitor/message-handler.draft-preview.ts",
23322332);
23332333const updates = draftStream.update.mock.calls.map((call) => call[0]);
23342334expect(updates.join("\n")).not.toContain("Apply Patch");
@@ -2362,10 +2362,11 @@ describe("processDiscordMessage draft streaming", () => {
23622362await runProcessDiscordMessage(ctx);
2363236323642364expect(draftStream.update).toHaveBeenCalledWith(
2365-"Clawing...\n🛠️ Exec\n• _Reading the event projector_",
2365+"Clawing...\n\n🛠️ Exec\n• _Reading the event projector_",
23662366);
23672367const updates = draftStream.update.mock.calls.map((call) => call[0]);
23682368expect(updates.join("\n")).not.toContain("Reasoning");
2369+expect(updates.join("\n")).not.toContain("Thinking\n");
23692370});
2370237123712372it("replaces reasoning snapshots instead of appending duplicates", async () => {
@@ -2394,10 +2395,11 @@ describe("processDiscordMessage draft streaming", () => {
23942395await runProcessDiscordMessage(ctx);
2395239623962397expect(draftStream.update).toHaveBeenCalledWith(
2397-"Clawing...\n🛠️ Exec\n• _Checking files and tests_",
2398+"Clawing...\n\n🛠️ Exec\n• _Checking files and tests_",
23982399);
23992400const updates = draftStream.update.mock.calls.map((call) => call[0]);
24002401expect(updates.join("\n")).not.toContain("_Checking files_Reasoning:");
2402+expect(updates.join("\n")).not.toContain("_Checking files_Thinking");
24012403});
2402240424032405it("keeps Discord progress lines across assistant boundaries", async () => {
@@ -2423,7 +2425,7 @@ describe("processDiscordMessage draft streaming", () => {
2423242524242426await runProcessDiscordMessage(ctx);
242524272426-expect(draftStream.update).toHaveBeenCalledWith("Shelling\n🧩 First\n🧩 Second");
2428+expect(draftStream.update).toHaveBeenCalledWith("Shelling\n\n🧩 First\n🧩 Second");
24272429expect(draftStream.forceNewMessage).not.toHaveBeenCalled();
24282430});
24292431此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。