Cherry-pick f877e7e74: fix(telegram): split stop-created preview finalization#1151
Merged
alexey-pelykh merged 2 commits intomainfrom Mar 13, 2026
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cherry-pick of upstream
f877e7e74— split stop-created preview finalization path in Telegram bot message dispatch.Changes:
Cherry-picked-from: f877e7e
Part of #643