惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Vercel News
Vercel News
F
Fortinet All Blogs
月光博客
月光博客
G
Google Developers Blog
博客园 - Franky
GbyAI
GbyAI
The Cloudflare Blog
I
InfoQ
雷峰网
雷峰网
WordPress大学
WordPress大学
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
T
The Blog of Author Tim Ferriss
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
小众软件
小众软件
腾讯CDC
B
Blog
量子位
V
V2EX
S
SegmentFault 最新的问题
Google DeepMind News
Google DeepMind News

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(telegram): clean up tool-only previews · openclaw/ope...
BunsDev · 2026-05-04 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -43,6 +43,7 @@ Docs: https://docs.openclaw.ai

4343
4444

### Fixes

4545
46+

- Telegram: clean up tool-only draft previews after assistant message boundaries so transient `Surfacing...` tool-status bubbles do not linger when no matching final preview arrives. Thanks @BunsDev.

4647

- TUI/escape abort: track the in-flight runId after `chat.send` resolves so pressing Esc during the gap before the first gateway event aborts the run instead of repeatedly printing `no active run`. Fixes #1296. Thanks @Lukavyi and @romneyda.

4748

- TUI/render: stop the long-token sanitizer from injecting literal spaces inside inline code spans, fenced code blocks, table borders, and bare hyphenated/dotted identifiers, so copied package names, entity IDs, and shell line-continuations stay byte-for-byte intact while narrow-terminal protection still chunks unidentifiable long prose tokens. Fixes #48432, #39505. Thanks @DocOellerson, @xeusoc, @CCcassiusdjs, @akramcodez, @brokemac79, @romneyda.

4849

- Gateway/status: label Linux managed gateway services as `systemd user`, making status output explicit about the user-service scope instead of implying a system-level unit. Thanks @vincentkoc.

Original file line numberDiff line numberDiff line change

@@ -815,6 +815,36 @@ describe("dispatchTelegramMessage draft streaming", () => {

815815

expect(draftStream.clear).not.toHaveBeenCalled();

816816

});

817817
818+

it("cleans up tool-only Telegram previews archived at assistant boundaries", async () => {

819+

const draftStream = createSequencedDraftStream(2001);

820+

createTelegramDraftStream.mockReturnValue(draftStream);

821+

dispatchReplyWithBufferedBlockDispatcher.mockImplementation(async ({ replyOptions }) => {

822+

await replyOptions?.onToolStart?.({ name: "exec", phase: "start" });

823+

await replyOptions?.onItemEvent?.({

824+

kind: "command",

825+

name: "exec",

826+

progressText: "exec git status",

827+

});

828+

await replyOptions?.onAssistantMessageStart?.();

829+

return { queuedFinal: false };

830+

});

831+
832+

const bot = createBot();

833+

await dispatchWithContext({

834+

context: createContext(),

835+

streamMode: "partial",

836+

telegramCfg: { streaming: { mode: "partial" } },

837+

bot,

838+

});

839+
840+

expect(draftStream.update).toHaveBeenCalledWith(

841+

expect.stringMatching(/`🛠 Exec: exec git status`$/),

842+

);

843+

expect(draftStream.materialize).toHaveBeenCalled();

844+

expect(draftStream.forceNewMessage).toHaveBeenCalled();

845+

expect(bot.api.deleteMessage).toHaveBeenCalledWith(123, 2001);

846+

});

847+
818848

it("streams Telegram command progress text by default when preview streaming is active", async () => {

819849

const draftStream = createDraftStream();

820850

createTelegramDraftStream.mockReturnValue(draftStream);

Original file line numberDiff line numberDiff line change

@@ -483,6 +483,7 @@ export const dispatchTelegramMessage = async ({

483483

Boolean(answerLane.stream) && resolveChannelStreamingPreviewToolProgress(telegramCfg);

484484

let previewToolProgressSuppressed = false;

485485

let previewToolProgressLines: string[] = [];

486+

let answerLaneHasAssistantContent = false;

486487

const renderProgressDraft = async (options?: { flush?: boolean }) => {

487488

if (!answerLane.stream || streamMode !== "progress") {

488489

return;

@@ -605,13 +606,14 @@ export const dispatchTelegramMessage = async ({

605606

messageId: previewMessageId,

606607

textSnapshot: answerLane.lastPartialText,

607608

visibleSinceMs: answerLane.stream?.visibleSinceMs?.(),

608-

deleteIfUnused: false,

609+

deleteIfUnused: !answerLaneHasAssistantContent,

609610

});

610611

}

611612

answerLane.stream?.forceNewMessage();

612613

didForceNewMessage = true;

613614

}

614615

resetDraftLaneState(answerLane);

616+

answerLaneHasAssistantContent = false;

615617

if (didForceNewMessage) {

616618

activePreviewLifecycleByLane.answer = "transient";

617619

retainPreviewOnCleanupByLane.answer = false;

@@ -630,6 +632,7 @@ export const dispatchTelegramMessage = async ({

630632

if (streamMode === "progress") {

631633

return;

632634

}

635+

answerLaneHasAssistantContent = true;

633636

previewToolProgressSuppressed = true;

634637

previewToolProgressLines = [];

635638

}