Skip to content

Cherry-pick f877e7e74: fix(telegram): split stop-created preview finalization#1151

Merged
alexey-pelykh merged 2 commits intomainfrom
cherry-pick/f877e7e-telegram-preview-finalization
Mar 13, 2026
Merged

Cherry-pick f877e7e74: fix(telegram): split stop-created preview finalization#1151
alexey-pelykh merged 2 commits intomainfrom
cherry-pick/f877e7e-telegram-preview-finalization

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

Cherry-pick of upstream f877e7e74 — split stop-created preview finalization path in Telegram bot message dispatch.

Changes:

  • Separates preview finalization logic for stop-created messages from normal flow
  • Fixes edge case where preview finalization could interfere with stop-created message handling

Cherry-picked-from: f877e7e

Part of #643

steipete and others added 2 commits March 13, 2026 00:46
Refactor lane preview finalization into explicit branches so stop-created
previews never duplicate sends when edit fails.

Add Telegram dispatch regressions for:
- stop-created preview edit failure (no duplicate send)
- existing preview edit failure (fallback send preserved)
- missing message id after stop-created flush (fallback send)

Thanks @obviyus for the original preview-prime direction in openclaw#27449.

Co-authored-by: Ayaan Zaidi <[email protected]>
(cherry picked from commit f877e7e)
The upstream cherry-pick used Boolean() which doesn't narrow the
type for TypeScript's strict null checks. Use a local variable with
explicit null/length checks instead.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@alexey-pelykh alexey-pelykh merged commit 4f54ecb into main Mar 13, 2026
7 checks passed
@alexey-pelykh alexey-pelykh deleted the cherry-pick/f877e7e-telegram-preview-finalization branch March 13, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants