
























@@ -1941,7 +1941,7 @@ describe("dispatchReplyFromConfig", () => {
19411941expect(dispatcher.sendFinalReply).toHaveBeenCalledTimes(1);
19421942});
194319431944-it("suppresses channel-owned group progress callbacks while verbose is off", async () => {
1944+it("forwards channel-owned group progress callbacks while verbose is off", async () => {
19451945setNoAbort();
19461946sessionStoreMocks.currentEntry = {
19471947verboseLevel: "off",
@@ -2001,14 +2001,26 @@ describe("dispatchReplyFromConfig", () => {
20012001},
20022002});
200320032004-expect(onToolStart).not.toHaveBeenCalled();
2005-expect(onItemEvent).not.toHaveBeenCalled();
2006-expect(onPlanUpdate).not.toHaveBeenCalled();
2007-expect(onApprovalEvent).not.toHaveBeenCalled();
2008-expect(onCommandOutput).not.toHaveBeenCalled();
2009-expect(onPatchSummary).not.toHaveBeenCalled();
2010-expect(onCompactionStart).not.toHaveBeenCalled();
2011-expect(onCompactionEnd).not.toHaveBeenCalled();
2004+expect(onToolStart).toHaveBeenCalledWith({ name: "exec", phase: "start" });
2005+expect(onItemEvent).toHaveBeenCalledWith({
2006+itemId: "1",
2007+kind: "tool",
2008+progressText: "running exec",
2009+});
2010+expect(onPlanUpdate).toHaveBeenCalledWith({ phase: "update", steps: ["Run command"] });
2011+expect(onApprovalEvent).toHaveBeenCalledWith({
2012+phase: "requested",
2013+command: "pnpm test",
2014+});
2015+expect(onCommandOutput).toHaveBeenCalledWith({
2016+phase: "end",
2017+name: "exec",
2018+status: "ok",
2019+exitCode: 0,
2020+});
2021+expect(onPatchSummary).toHaveBeenCalledWith({ phase: "end", summary: "1 modified" });
2022+expect(onCompactionStart).toHaveBeenCalledTimes(1);
2023+expect(onCompactionEnd).toHaveBeenCalledTimes(1);
20122024expect(onToolResult).not.toHaveBeenCalled();
20132025expect(dispatcher.sendToolResult).not.toHaveBeenCalled();
20142026expect(dispatcher.sendFinalReply).toHaveBeenCalledTimes(1);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。