Skip to content

[Bug]: Telegram: duplicate messages sent after stale-socket health-monitor restart #40685

@RayySummers

Description

@RayySummers

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:

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

  1. Configure Telegram channel with streaming: "partial"
  2. Send any message to the agent
  3. 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

  1. Streaming draft preview appears (message updates in-place while generating)
  2. Streaming completes
  3. A second complete message is sent containing the full streamed content
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug:behaviorIncorrect behavior without a crash

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions