Repository navigation
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
ClawSweeper review: did not complete due to Codex infrastructure failure. Reviewed June 15, 2026, 6:41 PM ET / 22:41 UTC. Summary PR surface: Source +202, Tests +275. Total +477 across 6 files. Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path. Review metrics: none identified. Merge readiness This is a ClawSweeper/Codex infrastructure failure, not a PR readiness or patch-quality verdict. Risk before merge
Maintainer options:
Next step before merge
Review detailsBest possible solution: Retry the Codex review after fixing the execution failure. Do we have a high-confidence way to reproduce the issue? Unclear. The review failed before ClawSweeper could establish a reproduction path. Is this the best way to solve the issue? Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 50dbd46aa6de. Label changesLabel changes:
Evidence reviewedPR surface: Source +202, Tests +275. Total +477 across 6 files. View PR surface stats
What I checked:
Likely related people:
How this review workflow works
|
fae6aa5 to
482b071
Compare
|
@openclaw-mantis telegram desktop proof: verify group replies render as normal text with URL buttons while direct chats still render rich replies. |
c840375 to
549371e
Compare
549371e to
35dedb8
Compare
|
Closing this PR after follow-up validation. The original failure appears to be specific to Telegram Web's handling of the new Bot API 10.1 rich message surface in group chats. The same path is now working on updated Telegram Desktop for macOS and iOS, so this is not the right OpenClaw-side mitigation to land. Keeping OpenClaw's rich-message behavior intact avoids disabling group rich text for clients where Telegram already renders it correctly. If Telegram Web remains a supported problem surface later, we should reopen with a narrower client-specific repro and proof rather than merging this broad group-chat fallback. |
|
Superseded by #93279, landed in a375d6c. The landed fix restores readable standard sends for DMs, groups, commands, edits, and streaming previews by default, while preserving native Bot API 10.1 rich messages behind Thank you @hxy91819 for the group-chat investigation and mitigation work. |
Summary
Fixes a Telegram group-chat regression where bot replies could render in Telegram Desktop/macOS as an unsupported-message card instead of normal text.
The regression came from the rich-message send path being used for Telegram group replies. Production evidence showed an inbound group conversation followed by an outbound
sendRichMessagereply on a positive mirrored chat id, so the delivery path treated the reply like a direct chat even though the source conversation was a group.This PR keeps rich text for direct chats, but treats group and mirrored-group replies as group sends:
sendMessagewith HTML/plain fallback instead ofsendRichMessageweb_appinline buttons to normal URL buttons for group chats, including edit/reply-markup pathssendMessage's 4096-character limit while retaining rich-message chunking for direct chatsVerification
node scripts/run-vitest.mjs extensions/telegram/src/bot/delivery.test.ts extensions/telegram/src/send.test.tspnpm tsgo:extensionspnpm exec oxfmt --check --threads=1 extensions/telegram/src/bot/delivery.send.ts extensions/telegram/src/bot/delivery.replies.ts extensions/telegram/src/bot/delivery.test.ts extensions/telegram/src/send.ts extensions/telegram/src/send.test.ts extensions/telegram/src/inline-keyboard.tsgit diff --checklocal-containercbx_57c16786cca4corepack pnpm install --frozen-lockfile && node scripts/run-vitest.mjs extensions/telegram/src/bot/delivery.test.ts extensions/telegram/src/send.test.tsautoreview --mode local --thinking low --stream-engine-outputReal behavior proof
Behavior addressed: Telegram group replies no longer use
sendRichMessage, which caused Telegram Desktop/macOS group chats to show an unsupported-message card.Real environment tested: Local OpenClaw checkout plus Crabbox
local-containerLinux Node 24 isolated run. Production logs from openclaw2 were used for root-cause evidence.Exact steps or command run after this patch:
node scripts/run-vitest.mjs extensions/telegram/src/bot/delivery.test.ts extensions/telegram/src/send.test.ts; Crabboxlocal-containerrun withcorepack pnpm install --frozen-lockfile && node scripts/run-vitest.mjs extensions/telegram/src/bot/delivery.test.ts extensions/telegram/src/send.test.ts.Evidence after fix: Regression tests assert group and mirrored-group replies do not call
sendRichMessage, do callsendMessage, convertweb_appbuttons to URL buttons, and split mirrored group replies at the Bot API send-message limit.Observed result after fix: The focused Telegram send/delivery suite passed locally and in Crabbox with 189 tests passing.
What was not tested: A real Telegram Desktop visual E2E recording was not run in this environment; the available Telegram real-user Crabbox runner was not installed locally, and remote Testbox/AWS Crabbox paths were blocked by missing authentication/credentials.