fix(telegram): preserve forum topic origin targets#83351
Conversation
|
Codex review: needs real behavior proof before merge. Workflow note: Future ClawSweeper reviews update this same comment in place. How this review workflow works
Summary Reproducibility: yes. at source level: current main carries the forum thread id while flattening PR rating Rank-up moves:
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. Real behavior proof Mantis proof suggestion Next step before merge Security Review detailsBest possible solution: Land the helper-based routing fix after maintainer review and redacted live Telegram proof that a non-General forum-topic follow-up stays in the originating topic while General-topic and DM behavior remain unchanged. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main carries the forum thread id while flattening Is this the best way to solve the issue? Yes, the proposed code direction is the narrow maintainable fix because it reuses the existing Telegram routing-target helper. Merge readiness still depends on live topic proof and maintainer handling. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 5434769e47e6. |
Mantis Telegram Desktop ProofSummary: Mantis skipped Telegram Desktop before/after GIF proof because this PR did not have an honest native Telegram-visible before/after.
|
Fixes #83302.
Summary
buildTelegramInboundOriginTargetso DM thread ids stay metadata-only while real forum topics are encoded in-band for queued follow-up routing.OriginatingTo, skipped-message hook delivery metadata, and the origin-target helper contract.Verification
telegram:<chatId>:topic:<message_thread_id>as the originating target instead of flattening to the chat id while retaining onlyMessageThreadIdmetadata.fix/telegram-topic-originating-to-83302.pnpm test extensions/telegram/src/bot/helpers.test.ts extensions/telegram/src/bot-message-context.body.test.ts extensions/telegram/src/bot-message-context.dm-threads.test.ts extensions/telegram/src/bot-message-context.dm-topic-threadid.test.ts;.agents/skills/autoreview/scripts/autoreview --mode local;pnpm check:changed.tbx_01krwa6t09mdem4845m0pr8qrc/ GitHub Actions run https://github.com/openclaw/openclaw/actions/runs/26008265323 completed with extensions, extensionTests, and docs lanes passing.