-
-
Notifications
You must be signed in to change notification settings - Fork 69.3k
[Bug]: Telegram: duplicate messages sent after stale-socket health-monitor restart #40685
Copy link
Copy link
Closed
Closed
Copy link
Labels
bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crash
Description
Bug type
Behavior bug (incorrect output/state without crash)
Summary
Description
After streaming completes, a duplicate final message is sent instead of the draft preview being edited in-place. One of the duplicates is then deleted after a short delay.
Environment
- OS: Windows 11 + WSL2 Ubuntu 24.04
- Channel: Telegram DM
- Networking: WSL2 mirrored mode
Configuration
"streaming": "partial"Related
Possibly related to fixes in 2026.3.7 changelog:
Telegram/DM draft streaming restoration(fix(telegram): restore DM draft streaming #39398)Telegram/DM draft finalization reliabilityTelegram/DM draft duplicate display
Issue persists after updating to 2026.3.7.
Log Evidence
Duplicate messages consistently appear within ~1 second of each other, correlating with stale-socket health-monitor restarts:
10:10:24 telegram sendMessage ok message=2892
10:10:25 telegram sendMessage ok message=2893
10:31:50 telegram sendMessage ok message=2929
10:31:51 telegram sendMessage ok message=2930
11:52:55 telegram sendMessage ok message=2979
11:52:56 telegram sendMessage ok message=2980
Steps to reproduce
- Configure Telegram channel with
streaming: "partial" - Send any message to the agent
- Observe streaming output in Telegram DM
Expected behavior
The streaming draft preview should be edited in-place into the final message. No duplicate message should appear at any point.
Actual behavior
- Streaming draft preview appears (message updates in-place while generating)
- Streaming completes
- A second complete message is sent containing the full streamed content
- After a short delay, one of the two duplicate messages is deleted
OpenClaw version
2026.3.7
Operating system
Windows 11 + WSL2 Ubuntu 24.04
Install method
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crash
Type
Fields
Give feedbackNo fields configured for issues without a type.