mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 08:42:43 +00:00
fix(telegram): prime final preview before stop flush
This commit is contained in:
@@ -123,6 +123,11 @@ export function createLaneTextDeliverer(params: CreateLaneTextDelivererParams) {
|
||||
const hadPreviewMessage =
|
||||
typeof previewMessageIdOverride === "number" || typeof lanePreviewMessageId === "number";
|
||||
if (stopBeforeEdit) {
|
||||
if (!hadPreviewMessage && context === "final") {
|
||||
// If debounce prevented the first preview, replace stale pending partial text
|
||||
// before final stop() flush sends the first visible preview.
|
||||
lane.stream.update(text);
|
||||
}
|
||||
await params.stopDraftLane(lane);
|
||||
}
|
||||
const previewMessageId =
|
||||
|
||||
Reference in New Issue
Block a user