fix: split telegram reasoning and answer draft streams#20774
Merged
Conversation
Contributor
Author
|
@greptileai review please |
e18206e to
3e4b463
Compare
6e50409 to
91ad496
Compare
813fd60 to
7458444
Compare
Contributor
Author
Contributor
Author
ScreenRecording_02-20-2026.11-23-43_1.MP4Previously, enabling |
18 tasks
6 tasks
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 1, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 7458444 Co-authored-by: obviyus <22031114+obviyus@users.noreply.github.com> Co-authored-by: obviyus <22031114+obviyus@users.noreply.github.com> Reviewed-by: @obviyus (cherry picked from commit ab256b8) # Conflicts: # CHANGELOG.md # src/telegram/bot-message-dispatch.test.ts # src/telegram/bot-message-dispatch.ts # src/telegram/draft-stream.test.ts # src/telegram/draft-stream.ts
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 3, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 7458444 Co-authored-by: obviyus <22031114+obviyus@users.noreply.github.com> Co-authored-by: obviyus <22031114+obviyus@users.noreply.github.com> Reviewed-by: @obviyus (cherry picked from commit ab256b8) # Conflicts: # CHANGELOG.md # src/telegram/bot-message-dispatch.test.ts # src/telegram/bot-message-dispatch.ts # src/telegram/draft-stream.test.ts # src/telegram/draft-stream.ts
Open
11 tasks
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
May 9, 2026
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.
Before
Telegram draft edit streaming used one shared preview lane for both reasoning and answer updates.
What this broke
Reasoning and answer updates could overwrite each other. In some runs, the final answer edited the reasoning bubble or duplicated output.
Fix
onPartialReplyto answer lane andonReasoningStreamto reasoning lane.Greptile Summary
Separated Telegram draft streams for reasoning and answer lanes to prevent content overwrites during streaming. The fix routes
onPartialReplyto answer lane andonReasoningStreamto reasoning lane, ensuring each lane maintains independent preview messages.Key changes:
DraftLaneStatetrackingreasoning-lane-coordinator.tsfor think-tag parsing and reasoning/answer text splittingfinalizedPreviewByLanemap to track preview finalization per lanerenderTextsupport for HTML formattingIssue found:
Confidence Score: 3/5
bot-message-dispatch.ts:597-609where reasoning lane finalization state tracking needs correctionLast reviewed commit: 813fd60