fix(telegram): suppress stale replies when dispatch is superseded · openclaw/openclaw@463493a
chinar-amrut
·
2026-05-04
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -907,7 +907,7 @@ export const dispatchTelegramMessage = async ({
|
907 | 907 | const _hasMedia = reply.hasMedia; |
908 | 908 | |
909 | 909 | const flushBufferedFinalAnswer = async () => { |
910 | | -const buffered = reasoningStepState.takeBufferedFinalAnswer(); |
| 910 | +const buffered = reasoningStepState.takeBufferedFinalAnswer(abortFenceGeneration); |
911 | 911 | if (!buffered) { |
912 | 912 | return; |
913 | 913 | } |
@@ -935,6 +935,7 @@ export const dispatchTelegramMessage = async ({
|
935 | 935 | reasoningStepState.bufferFinalAnswer({ |
936 | 936 | payload, |
937 | 937 | text: segment.text, |
| 938 | +bufferedGeneration: abortFenceGeneration, |
938 | 939 | }); |
939 | 940 | continue; |
940 | 941 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。