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

推荐订阅源

量子位
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
F
Fortinet All Blogs
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
小众软件
小众软件
有赞技术团队
有赞技术团队
雷峰网
雷峰网
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
AWS News Blog
AWS News Blog
C
Cisco Blogs
美团技术团队
T
Threat Research - Cisco Blogs
C
CERT Recently Published Vulnerability Notes
人人都是产品经理
人人都是产品经理
宝玉的分享
宝玉的分享
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
酷 壳 – CoolShell
酷 壳 – CoolShell
Stack Overflow Blog
Stack Overflow Blog
W
WeLiveSecurity
D
DataBreaches.Net
博客园 - 司徒正美
Blog — PlanetScale
Blog — PlanetScale
IT之家
IT之家
云风的 BLOG
云风的 BLOG
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Simon Willison's Weblog
Simon Willison's Weblog
Google DeepMind News
Google DeepMind News
T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
NISL@THU
NISL@THU
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
Vercel News
Vercel News
月光博客
月光博客
T
Tailwind CSS Blog
H
Help Net Security
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Spread Privacy
Spread Privacy
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cisco Talos Blog
Cisco Talos Blog
Microsoft Security Blog
Microsoft Security Blog
V
V2EX
WordPress大学
WordPress大学
Cyberwarzone
Cyberwarzone
Recent Announcements
Recent Announcements

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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix(telegram): gate rich messages behind opt-in (#93279) · openclaw/openclaw@a375d6c
NianJiuZst · 2026-06-16 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -418,14 +418,28 @@ curl "https://api.telegram.org/bot<bot_token>/getUpdates"

418418

</Accordion>

419419
420420

<Accordion title="Rich message formatting">

421-

Outbound text uses Telegram rich messages.

421+

Outbound text uses standard Telegram HTML messages by default so replies remain readable across current Telegram clients.

422+
423+

Set `channels.telegram.richMessages: true` to opt into Bot API 10.1 rich messages:

424+
425+

```json5

426+

{

427+

channels: {

428+

telegram: {

429+

richMessages: true,

430+

},

431+

},

432+

}

433+

```

422434
423435

- Markdown text is rendered through OpenClaw's Markdown IR and sent as Telegram rich HTML.

424436

- Explicit rich HTML payloads preserve supported Bot API 10.1 tags such as headings, tables, details, rich media, and formulas.

425437

- Media captions still use Telegram HTML captions because rich messages do not replace captions.

426438
427439

This keeps model text away from Telegram Rich Markdown sigils, so currency like `$400-600K` is not parsed as math. Long rich text is split automatically across Telegram's rich text and rich block limits. Tables over Telegram's column limit are sent as code blocks.

428440
441+

Rich messages require compatible Telegram clients. Some current Desktop, Web, Android, and third-party clients display accepted rich messages as unsupported, so keep this option disabled unless every client used with the bot can render them.

442+
429443

Link previews are enabled by default. `channels.telegram.linkPreview: false` skips automatic entity detection for rich text.

430444
431445

</Accordion>

@@ -1081,7 +1095,7 @@ Primary reference: [Configuration reference - Telegram](/gateway/config-channels

10811095

- command/menu: `commands.native`, `commands.nativeSkills`, `customCommands`

10821096

- threading/replies: `replyToMode`

10831097

- streaming: `streaming` (preview), `streaming.preview.toolProgress`, `blockStreaming`

1084-

- formatting/delivery: `textChunkLimit`, `chunkMode`, `linkPreview`, `responsePrefix`

1098+

- formatting/delivery: `textChunkLimit`, `chunkMode`, `richMessages`, `linkPreview`, `responsePrefix`

10851099

- media/network: `mediaMaxMb`, `mediaGroupFlushMs`, `timeoutSeconds`, `pollingStallThresholdMs`, `retry`, `network.autoSelectFamily`, `network.dangerouslyAllowPrivateNetwork`, `proxy`

10861100

- custom API root: `apiRoot` (Bot API root only; do not include `/bot<TOKEN>`)

10871101

- webhook: `webhookUrl`, `webhookSecret`, `webhookPath`, `webhookHost`

Original file line numberDiff line numberDiff line change

@@ -49,6 +49,7 @@ import {

4949

resolveTelegramOutboundClientTimeoutFloorSeconds,

5050

} from "./client-fetch.js";

5151

import { resolveTelegramTransport } from "./fetch.js";

52+

import { TELEGRAM_TEXT_CHUNK_LIMIT } from "./outbound-adapter.js";

5253

import { stringifyTelegramRawUpdateForLog } from "./raw-update-log.js";

5354

import { TELEGRAM_RICH_TEXT_LIMIT } from "./rich-message.js";

5455

import { createTelegramSendChatActionHandler } from "./sendchataction-401-backoff.js";

@@ -290,11 +291,13 @@ export function createTelegramBotCore(

290291

DEFAULT_GROUP_HISTORY_LIMIT,

291292

);

292293

const groupHistories = new Map<string, HistoryEntry[]>();

294+

const telegramTextLimit =

295+

telegramCfg.richMessages === true ? TELEGRAM_RICH_TEXT_LIMIT : TELEGRAM_TEXT_CHUNK_LIMIT;

293296

const textLimit = Math.min(

294297

resolveTextChunkLimit(cfg, "telegram", account.accountId, {

295-

fallbackLimit: TELEGRAM_RICH_TEXT_LIMIT,

298+

fallbackLimit: telegramTextLimit,

296299

}),

297-

TELEGRAM_RICH_TEXT_LIMIT,

300+

telegramTextLimit,

298301

);

299302

const dmPolicy = telegramCfg.dmPolicy ?? "pairing";

300303

const allowFrom = opts.allowFrom ?? telegramCfg.allowFrom;

Original file line numberDiff line numberDiff line change

@@ -649,6 +649,61 @@ describe("dispatchTelegramMessage draft streaming", () => {

649649

expect(draftStream.clear).toHaveBeenCalledTimes(1);

650650

});

651651
652+

it("renders default draft previews with standard Telegram HTML", async () => {

653+

const draftStream = createDraftStream();

654+

createTelegramDraftStream.mockReturnValue(draftStream);

655+

dispatchReplyWithBufferedBlockDispatcher.mockImplementation(

656+

async ({ dispatcherOptions, replyOptions }) => {

657+

await replyOptions?.onPartialReply?.({ text: "# Heading" });

658+

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

659+

return { queuedFinal: true };

660+

},

661+

);

662+

deliverReplies.mockResolvedValue({ delivered: true });

663+
664+

await dispatchWithContext({ context: createContext() });

665+
666+

const params = expectDraftStreamParams({});

667+

const renderText = params.renderText as ((text: string) => Record<string, unknown>) | undefined;

668+

expect(renderText?.("# Heading")).toEqual({

669+

text: "Heading",

670+

parseMode: "HTML",

671+

});

672+

});

673+
674+

it("renders rich draft previews only when enabled", async () => {

675+

resolveMarkdownTableMode.mockReturnValueOnce("block");

676+

const draftStream = createDraftStream();

677+

createTelegramDraftStream.mockReturnValue(draftStream);

678+

dispatchReplyWithBufferedBlockDispatcher.mockImplementation(

679+

async ({ dispatcherOptions, replyOptions }) => {

680+

await replyOptions?.onPartialReply?.({

681+

text: "| A | B |\n| --- | --- |\n| 1 | 2 |",

682+

});

683+

await dispatcherOptions.deliver(

684+

{ text: "| A | B |\n| --- | --- |\n| 1 | 2 |" },

685+

{ kind: "final" },

686+

);

687+

return { queuedFinal: true };

688+

},

689+

);

690+

deliverReplies.mockResolvedValue({ delivered: true });

691+
692+

await dispatchWithContext({

693+

context: createContext(),

694+

telegramCfg: { richMessages: true },

695+

});

696+
697+

const params = expectDraftStreamParams({ richMessages: true });

698+

const renderText = params.renderText as ((text: string) => Record<string, unknown>) | undefined;

699+

const preview = renderText?.("| A | B |\n| --- | --- |\n| 1 | 2 |");

700+

expect(preview?.richMessage).toEqual(

701+

expect.objectContaining({

702+

html: expect.stringContaining("<table>"),

703+

}),

704+

);

705+

});

706+
652707

it("recovers forum thread context from a topic-scoped session key", async () => {

653708

const recordInboundSession = vi.fn(async () => undefined);

654709

const oldHistoryKey = "-1003774691294:topic:1";

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

15211576

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

15221577

});

15231578
1524-

expectDraftStreamParams({ maxChars: 4096 });

1579+

expectDraftStreamParams({ maxChars: 4000 });

15251580

});

15261581
15271582

it("streams text-only finals into the answer message", async () => {

Original file line numberDiff line numberDiff line change

@@ -107,6 +107,7 @@ import {

107107

shouldSuppressTelegramError,

108108

} from "./error-policy.js";

109109

import { shouldSuppressLocalTelegramExecApprovalPrompt } from "./exec-approvals.js";

110+

import { renderTelegramHtmlText } from "./format.js";

110111

import { includesRecentTelegramGroupHistoryContext } from "./group-history-context.js";

111112

import { beginTelegramInboundEventDeliveryCorrelation } from "./inbound-event-delivery.js";

112113

import {

@@ -116,6 +117,7 @@ import {

116117

type LaneDeliveryResult,

117118

type LaneName,

118119

} from "./lane-delivery.js";

120+

import { TELEGRAM_TEXT_CHUNK_LIMIT } from "./outbound-adapter.js";

119121

import { recordOutboundMessageForPromptContext } from "./outbound-message-context.js";

120122

import {

121123

createTelegramReasoningStepState,

@@ -891,20 +893,29 @@ export const dispatchTelegramMessage = async ({

891893

const draftMaxChars =

892894

streamMode === "block"

893895

? Math.min(resolveTelegramDraftStreamingChunking(cfg, route.accountId).maxChars, textLimit)

894-

: Math.min(textLimit, TELEGRAM_RICH_TEXT_LIMIT);

896+

: Math.min(

897+

textLimit,

898+

telegramCfg.richMessages === true ? TELEGRAM_RICH_TEXT_LIMIT : TELEGRAM_TEXT_CHUNK_LIMIT,

899+

);

895900

const tableMode = resolveMarkdownTableMode({

896901

cfg,

897902

channel: "telegram",

898903

accountId: route.accountId,

899-

supportsBlockTables: true,

900-

});

901-

const renderStreamText = (text: string) => ({

902-

text,

903-

richMessage: buildTelegramRichMarkdown(text, {

904-

tableMode,

905-

skipEntityDetection: telegramCfg.linkPreview === false,

906-

}),

904+

supportsBlockTables: telegramCfg.richMessages === true,

907905

});

906+

const renderStreamText = (text: string): TelegramDraftPreview =>

907+

telegramCfg.richMessages === true

908+

? {

909+

text,

910+

richMessage: buildTelegramRichMarkdown(text, {

911+

tableMode,

912+

skipEntityDetection: telegramCfg.linkPreview === false,

913+

}),

914+

}

915+

: {

916+

text: renderTelegramHtmlText(text, { tableMode }),

917+

parseMode: "HTML",

918+

};

908919

const accountBlockStreamingEnabled =

909920

resolveChannelStreamingBlockEnabled(telegramCfg) ??

910921

cfg.agents?.defaults?.blockStreamingDefault === "on";

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

988999

maxChars: draftMaxChars,

9891000

thread: threadSpec,

9901001

replyToMessageId: draftReplyToMessageId,

1002+

richMessages: telegramCfg.richMessages,

9911003

minInitialChars: draftMinInitialChars,

9921004

renderText: renderStreamText,

9931005

onSupersededPreview: (superseded) => {

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

15071519

thread: threadSpec,

15081520

tableMode,

15091521

chunkMode,

1522+

richMessages: telegramCfg.richMessages,

15101523

linkPreview: telegramCfg.linkPreview,

15111524

replyQuoteMessageId,

15121525

replyQuoteText,

Original file line numberDiff line numberDiff line change

@@ -703,6 +703,25 @@ describe("registerTelegramNativeCommands", () => {

703703

expect(replyAt(deliverParams).isError).toBe(true);

704704

});

705705
706+

it("uses rich messages for plugin command replies when enabled", async () => {

707+

const { handler } = registerPlugCommand({

708+

cfg: {

709+

channels: {

710+

telegram: {

711+

richMessages: true,

712+

},

713+

},

714+

},

715+

registerOverrides: {

716+

telegramCfg: { richMessages: true } as TelegramAccountConfig,

717+

},

718+

});

719+
720+

await handler(createPrivateCommandContext());

721+
722+

expect(firstDeliverRepliesParams().richMessages).toBe(true);

723+

});

724+
706725

it("forwards topic-scoped binding context to Telegram plugin commands", async () => {

707726

const { handler } = registerPlugCommand();

708727
Original file line numberDiff line numberDiff line change

@@ -973,6 +973,7 @@ export const registerTelegramNativeCommands = ({

973973

tableMode: ReturnType<typeof resolveMarkdownTableMode>;

974974

chunkMode: TelegramChunkMode;

975975

linkPreview?: boolean;

976+

richMessages?: boolean;

976977

}) => ({

977978

cfg: params.cfg,

978979

chatId: String(params.chatId),

@@ -992,6 +993,7 @@ export const registerTelegramNativeCommands = ({

992993

tableMode: params.tableMode,

993994

chunkMode: params.chunkMode,

994995

linkPreview: params.linkPreview,

996+

richMessages: params.richMessages,

995997

});

996998

const resolveCommandTargetSessionKey = (params: {

997999

runtimeCfg: OpenClawConfig;

@@ -1209,6 +1211,7 @@ export const registerTelegramNativeCommands = ({

12091211

tableMode,

12101212

chunkMode,

12111213

linkPreview: runtimeTelegramCfg.linkPreview,

1214+

richMessages: runtimeTelegramCfg.richMessages,

12121215

});

12131216

let topicName: string | undefined;

12141217

if (isForum && resolvedThreadId != null) {

@@ -1431,6 +1434,7 @@ export const registerTelegramNativeCommands = ({

14311434

tableMode,

14321435

chunkMode,

14331436

linkPreview: runtimeTelegramCfg.linkPreview,

1437+

richMessages: runtimeTelegramCfg.richMessages,

14341438

});

14351439

const from = isGroup ? buildTelegramGroupFrom(chatId, threadSpec.id) : `telegram:${chatId}`;

14361440

const to = `telegram:${chatId}`;