Repository navigation
Fix Telegram preview retention on generation mismatch - #85825
NianJiuZst wants to merge 1 commit into
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Keep open: the patch is a narrow, source-backed Telegram message-retention fix and current main still lacks the added Canonical path: Close this PR as superseded by #85808. So I’m closing this here and keeping the remaining discussion on #85808. Review detailsBest possible solution: Close this PR as superseded by #85808. Do we have a high-confidence way to reproduce the issue? Yes for source-level reproduction: current main has a generation-mismatch callback that omits Is this the best way to solve the issue? Yes with a proof caveat: adding Security review: Security review cleared: Security review cleared: the diff only changes Telegram stream retention logic and a focused test expectation, with no dependency, workflow, script, secret, or supply-chain surface changes. What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 1e2e6147480c. |
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
martingarramon
left a comment
There was a problem hiding this comment.
The retain: true flag is set only on the generation-mismatch branch — the normal overflow-preview path is unchanged. The guard in bot-message-dispatch.ts (if (superseded.retain) { return; }) and the type declaration are already in place, so this is a targeted two-file change.
Two blockers before merge: the "Run agentic native Telegram proof" gate is failing (not a flake — all 70 unit/lint checks pass, only the live-proof gate fails). And #85808 touches the same file with a broader fix for the same symptom. Which approach is the intended one?
7ece580 to
b09077e
Compare
|
ClawSweeper applied the proposed close for this PR.
|
|
Thanks @NianJiuZst. I recreated this on a maintainer branch in #85878 because this PR branch no longer allows maintainer updates, and the branch needed a fresh rebase on current The original commit/credit is preserved in the replacement PR. Closing this copy so review/CI happens in one place. |
Summary
sendMessageresolves aftergenerationhas already advanced.Verification
node scripts/run-vitest.mjs extensions/telegram/src/draft-stream.test.ts extensions/telegram/src/bot-message-dispatch.test.tsnode scripts/github/real-behavior-proof-check.mjswith a local PR payload body matching this draft.Real behavior proof
Behavior addressed: Telegram preview messages that land during a generation-mismatch race are preserved instead of being deleted.
Real environment tested: Local OpenClaw checkout on macOS, Telegram draft-stream code path.
Exact steps or command run after this patch: node scripts/run-vitest.mjs extensions/telegram/src/draft-stream.test.ts extensions/telegram/src/bot-message-dispatch.test.ts
Evidence after fix: Terminal capture from the focused Telegram regression lane:
Observed result after fix: The generation-mismatch path now emits
retain: true, matching the existing overflow-preview retention contract.What was not tested: Live Telegram DM delivery against a production bot.