mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-15 01:12:57 +00:00
fix(telegram): isolate verbose status after streamed finals
Co-authored-by: Martin Kessler <2647990+kesslerio@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1624,6 +1624,9 @@ describe("dispatchTelegramMessage draft streaming", () => {
|
||||
expect(answerDraftStream.update).toHaveBeenNthCalledWith(2, "Normal reply");
|
||||
expect(answerDraftStream.update).toHaveBeenNthCalledWith(3, trailingFinalStatusText);
|
||||
expect(answerDraftStream.forceNewMessage).toHaveBeenCalledTimes(1);
|
||||
expect(answerDraftStream.forceNewMessage.mock.invocationCallOrder[0]).toBeLessThan(
|
||||
answerDraftStream.update.mock.invocationCallOrder[2],
|
||||
);
|
||||
expect(deliverReplies).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
@@ -2118,6 +2121,9 @@ describe("dispatchTelegramMessage draft streaming", () => {
|
||||
expect(answerDraftStream.update).toHaveBeenNthCalledWith(1, "Cracking\n\n`🛠️ Exec`");
|
||||
expect(answerDraftStream.update).toHaveBeenNthCalledWith(2, trailingFinalStatusText);
|
||||
expect(answerDraftStream.forceNewMessage).toHaveBeenCalledTimes(2);
|
||||
expect(answerDraftStream.forceNewMessage.mock.invocationCallOrder[1]).toBeLessThan(
|
||||
answerDraftStream.update.mock.invocationCallOrder[1],
|
||||
);
|
||||
expectDeliveredReply(0, { text: "Branch is up to date" });
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user