fix(telegram): honor final-only streaming mode

This commit is contained in:
Peter Steinberger
2026-04-28 20:27:57 +01:00
parent df8611c420
commit cb8c513ce3
5 changed files with 7 additions and 5 deletions

View File

@@ -790,7 +790,7 @@ describe("dispatchTelegramMessage draft streaming", () => {
);
});
it("keeps default tool progress messages when answer preview streaming is off", async () => {
it("suppresses default tool progress messages when answer preview streaming is off", async () => {
dispatchReplyWithBufferedBlockDispatcher.mockImplementation(async ({ replyOptions }) => {
await replyOptions?.onToolStart?.({ name: "exec", phase: "start" });
await replyOptions?.onItemEvent?.({ progressText: "exec ls ~/Desktop" });
@@ -803,7 +803,7 @@ describe("dispatchTelegramMessage draft streaming", () => {
expect(dispatchReplyWithBufferedBlockDispatcher).toHaveBeenCalledWith(
expect.objectContaining({
replyOptions: expect.objectContaining({
suppressDefaultToolProgressMessages: false,
suppressDefaultToolProgressMessages: true,
}),
}),
);