Repository navigation
fix(telegram): restore readable default text sends - #93279
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 15, 2026, 4:55 PM ET / 20:55 UTC. Summary PR surface: Source +175, Tests -155. Total +20 across 12 files. Reproducibility: yes. at source/report level: current main still routes Telegram final text and draft previews through rich-message paths, and the linked issue has cross-client unsupported-message evidence. I did not run a live bad-version repro in this read-only review. Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land a type/lint-clean Telegram text rollback that restores readable final replies and draft preview edits, preserves media/buttons/thread behavior, and includes live Telegram proof for both visible paths. Do we have a high-confidence way to reproduce the issue? Yes at source/report level: current main still routes Telegram final text and draft previews through rich-message paths, and the linked issue has cross-client unsupported-message evidence. I did not run a live bad-version repro in this read-only review. Is this the best way to solve the issue? No as currently submitted: the rollback is the right owner-boundary direction for the outage, but exact-head type/lint failures and missing live draft-preview proof keep it from being the best merge-ready fix. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against efa9a6110b4e. Label changesLabel justifications:
Evidence reviewedPR surface: Source +175, Tests -155. Total +20 across 12 files. View PR surface stats
Acceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
ab2c0af to
ce7615b
Compare
ce7615b to
abdb936
Compare
abdb936 to
366dd2e
Compare
366dd2e to
26853c0
Compare
|
@openclaw-mantis telegram desktop proof Please verify exact head
Please attach screenshots/artifact URLs and the exact tested head. |
Summary
Fixes #93263 by restoring readable Telegram text delivery as the default while keeping Bot API 10.1 rich messages available as an explicit account-level opt-in.
sendMessage/editMessageTextchannels.telegram.richMessages: trueenables native rich messages, including block tablesTelegram specification
Telegram currently accepts
sendRichMessage, but current Desktop, Web, Android, and third-party clients can render accepted messages as unsupported. The default therefore remains the broadly compatible standard text path; operators can enable native rich tables on compatible clients with:Linked context
Closes #93263.
Related rich-message work: #92679, #93286, #92258.
Supersedes the group-only rollback in #93345 by fixing the default for DMs, groups, commands, edits, and previews while preserving an explicit rich-message mode.
Verification
Passed on exact local head:
node scripts/run-vitest.mjs extensions/telegram/src/config-schema.test.ts extensions/telegram/src/send.test.ts extensions/telegram/src/draft-stream.test.ts extensions/telegram/src/format.test.ts extensions/telegram/src/bot/delivery.test.ts extensions/telegram/src/bot-native-commands.test.ts extensions/telegram/src/telegram-outbound.test.ts extensions/telegram/src/outbound-adapter.test.ts extensions/telegram/src/bot-message-dispatch.test.ts extensions/telegram/src/bot.helpers.test.ts extensions/telegram/src/channel-actions.contract.test.ts extensions/telegram/src/channel.gateway.test.tsnode --import tsx scripts/generate-bundled-channel-config-metadata.tsgit diff --checkautoreview --mode localIsolated Linux proof:
brisk-crab-c0e5:pnpm tsgo:extensionspassed; the initial test-type graph found two mock tuple inference errorsgolden-crab-c5fe:pnpm tsgo:extensions:testpassed after the focused test-only fixAzure Testbox was attempted twice but did not provision a lease before the 10-minute coordinator timeout.
Real behavior proof
Behavior addressed: Telegram replies accepted by the Bot API rendered as unsupported across current clients; standard text is readable by default, while native rich messages are explicit opt-in.
Real environment tested: Contributor's local OpenClaw gateway on macOS with a real Telegram bot and direct-message chat; isolated Linux typecheck validation for the final maintainer patch.
Exact steps or command run after this patch: Restarted the gateway, sent
Hello openclawand你好in a real Telegram DM, then ran the exact local and isolated validation commands listed above.Evidence after fix: The attached Telegram screenshot shows readable replies for both messages. Exact-head tests cover standard and rich send/edit/draft paths, native tables, list/table chunking, structural limits, account capability selection, quote fallback, and table-mode propagation.
Observed result after fix: Standard Telegram replies render as readable messages; the final extension production and test type graphs pass.
What was not tested: Exact-head live client proof for
richMessages: trueis requested separately because current Telegram clients may still show Bot API 10.1 rich messages as unsupported.Proof limitations or environment constraints: Azure Testbox capacity was unavailable; isolated Linux validation used Crabbox local-container instead.
Risk
Highest risk is the split standard/rich delivery boundary. The default follows the previously shipped compatible text path, rich capability is account-scoped and opt-in, and all send/edit/draft/native-command surfaces share the selected account setting.