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

推荐订阅源

WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
月光博客
月光博客
Last Week in AI
Last Week in AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
IT之家
IT之家
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
S
SegmentFault 最新的问题
宝玉的分享
宝玉的分享
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
博客园 - 司徒正美
爱范儿
爱范儿

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(channels): harden tool progress previews · openclaw/o...
steipete · 2026-04-25 · via Recent Commits to openclaw:main

@@ -499,7 +499,7 @@ describe("dispatchTelegramMessage draft streaming", () => {

499499

);

500500

});

501501502-

it("suppresses Telegram tool progress by default", async () => {

502+

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

503503

const draftStream = createDraftStream();

504504

createTelegramDraftStream.mockReturnValue(draftStream);

505505

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

@@ -510,6 +510,33 @@ describe("dispatchTelegramMessage draft streaming", () => {

510510511511

await dispatchWithContext({ context: createContext(), streamMode: "partial" });

512512513+

expect(draftStream.update).toHaveBeenCalledWith(

514+

"Working…\n• `tool: exec`\n• `exec ls ~/Desktop`",

515+

);

516+

expect(dispatchReplyWithBufferedBlockDispatcher).toHaveBeenCalledWith(

517+

expect.objectContaining({

518+

replyOptions: expect.objectContaining({

519+

suppressDefaultToolProgressMessages: true,

520+

}),

521+

}),

522+

);

523+

});

524+525+

it("suppresses Telegram tool progress when explicitly disabled", async () => {

526+

const draftStream = createDraftStream();

527+

createTelegramDraftStream.mockReturnValue(draftStream);

528+

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

529+

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

530+

await replyOptions?.onItemEvent?.({ progressText: "exec ls ~/Desktop" });

531+

return { queuedFinal: false };

532+

});

533+534+

await dispatchWithContext({

535+

context: createContext(),

536+

streamMode: "partial",

537+

telegramCfg: { streaming: { preview: { toolProgress: false } } },

538+

});

539+513540

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

514541

expect(dispatchReplyWithBufferedBlockDispatcher).toHaveBeenCalledWith(

515542

expect.objectContaining({

@@ -520,7 +547,7 @@ describe("dispatchTelegramMessage draft streaming", () => {

520547

);

521548

});

522549523-

it("streams Telegram tool progress only when explicitly enabled", async () => {

550+

it("keeps Telegram tool progress links inside code formatting", async () => {

524551

const draftStream = createDraftStream();

525552

createTelegramDraftStream.mockReturnValue(draftStream);

526553

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

@@ -532,7 +559,6 @@ describe("dispatchTelegramMessage draft streaming", () => {

532559

await dispatchWithContext({

533560

context: createContext(),

534561

streamMode: "partial",

535-

telegramCfg: { streaming: { preview: { toolProgress: true } } },

536562

});

537563538564

const lastPreviewText = draftStream.update.mock.calls.at(-1)?.[0];

@@ -566,11 +592,32 @@ describe("dispatchTelegramMessage draft streaming", () => {

566592

const progressLine = lastPreviewText.split("\n").at(1) ?? "";

567593568594

expect(lastPreviewText.length).toBeLessThan(340);

569-

expect(progressLine).toMatch(/^ `{10}/);

595+

expect(progressLine).toMatch(/^ `'{10}/);

570596

expect(progressLine).toContain("…");

571597

expect(renderTelegramHtmlText(lastPreviewText)).not.toContain("<a ");

572598

});

573599600+

it("does not let Telegram tool progress backticks break out of code formatting", async () => {

601+

const draftStream = createDraftStream();

602+

createTelegramDraftStream.mockReturnValue(draftStream);

603+

const breakoutProgress = `${"`".repeat(10)} [label](tg://user?id=123)`;

604+

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

605+

await replyOptions?.onItemEvent?.({ progressText: breakoutProgress });

606+

return { queuedFinal: false };

607+

});

608+609+

await dispatchWithContext({

610+

context: createContext(),

611+

streamMode: "partial",

612+

telegramCfg: { streaming: { preview: { toolProgress: true } } },

613+

});

614+615+

const lastPreviewText = draftStream.update.mock.calls.at(-1)?.[0] ?? "";

616+617+

expect(lastPreviewText).toContain(`• \`'''''''''' [label](tg://user?id=123)\``);

618+

expect(renderTelegramHtmlText(lastPreviewText)).not.toContain("<a ");

619+

});

620+574621

it("keeps block streaming enabled when account config enables it", async () => {

575622

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

576623

await dispatcherOptions.deliver({ text: "Hello" }, { kind: "final" });