Skip to content

fix(telegram): skip message edits during streaming in separate_message mode#202

Merged
everettjf merged 1 commit intomicroclaw:mainfrom
mszzukowski:fix/telegram-streaming-reasoning-order
Mar 6, 2026
Merged

fix(telegram): skip message edits during streaming in separate_message mode#202
everettjf merged 1 commit intomicroclaw:mainfrom
mszzukowski:fix/telegram-streaming-reasoning-order

Conversation

@mszzukowski
Copy link
Contributor

Fixes the reasoning message appearing AFTER the answer edit instead of before when using separate_message mode.

The issue was in telegram.rs where ToolStart events were editing the message during streaming in separate_message mode, breaking the message order. Added should_skip_edit flag checks in both TextDelta and ToolStart handlers.

…e mode

Previously, the TextDelta handler had a should_skip_edit flag to prevent
edits during streaming when reasoning_display is set to SeparateMessage.
However, the ToolStart event handler was missing this check, causing
message edits to still occur during tool execution, breaking the intended
message order (reasoning should appear BEFORE answer).

This fix adds the same should_skip_edit check to the ToolStart handler,
ensuring no edits occur during streaming in SeparateMessage mode.
@everettjf everettjf merged commit 696634e into microclaw:main Mar 6, 2026
4 checks passed
@everettjf
Copy link
Contributor

Thank you

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