openclaw - 💡(How to fix) Fix streaming: partial sends first chunk as permanent message in 4.5 (Telegram) [2 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#61809Fetched 2026-04-08 02:54:16
View on GitHub
Comments
2
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
commented ×2closed ×1reopened ×1

Error Message

Gateway log shows a single sendMessage ok during the affected window, but two messages visible in Telegram — suggesting the edit path is committing the draft prematurely rather than replacing it.

The issue appears to be triggered when config changes cause deferred gateway restarts while responses are in-flight, but also reproduces during normal stable operation after updating to 4.5.

Fix Action

Workaround

Set streaming: "block" and remove draftChunk entirely:

{
  "channels": {
    "telegram": {
      "streaming": "block"
    }
  }
}

Single clean message, typing indicator still works.

Code Example

{
  "channels": {
    "telegram": {
      "streaming": "block"
    }
  }
}
RAW_BUFFERClick to expand / collapse

Bug Report

Version: 2026.4.5 (regression from 2026.4.2) Channel: Telegram

Behavior

With streaming: "partial" and draftChunk.minChars: 80 (the defaults in 4.5), the first streamed chunk is committed as a permanent Telegram message instead of an editable draft. Subsequent chunks arrive as a separate second message.

Net result: User sees a standalone sentence fragment (e.g., a partial emoji like :-( or a preamble like Already wrote it —) as a permanent separate message, followed by the full response in a second message.

Workaround

Set streaming: "block" and remove draftChunk entirely:

{
  "channels": {
    "telegram": {
      "streaming": "block"
    }
  }
}

Single clean message, typing indicator still works.

Logs

Gateway log shows a single sendMessage ok during the affected window, but two messages visible in Telegram — suggesting the edit path is committing the draft prematurely rather than replacing it.

The issue appears to be triggered when config changes cause deferred gateway restarts while responses are in-flight, but also reproduces during normal stable operation after updating to 4.5.

extent analysis

TL;DR

Setting streaming to "block" and removing draftChunk configuration may resolve the issue of premature commitment of draft messages in Telegram.

Guidance

  • Verify that the issue is specific to version 2026.4.5 by checking if the problem persists when downgrading to 2026.4.2.
  • Check the gateway logs for any errors or warnings related to message editing or drafting during the affected window.
  • Test the workaround provided in the issue by setting streaming to "block" and removing draftChunk configuration to see if it resolves the issue.
  • Investigate the relationship between config changes, deferred gateway restarts, and in-flight responses to understand the root cause of the issue.

Example

{
  "channels": {
    "telegram": {
      "streaming": "block"
    }
  }
}

This configuration change may help resolve the issue by blocking streaming and removing the draft chunk configuration.

Notes

The issue may be related to changes in the streaming and draftChunk configurations in version 2026.4.5, and further investigation is needed to determine the root cause. The provided workaround may not be a permanent solution and may have unintended consequences.

Recommendation

Apply the workaround by setting streaming to "block" and removing draftChunk configuration, as it has been reported to resolve the issue in some cases. This change may help mitigate the problem until a more permanent solution is found.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix streaming: partial sends first chunk as permanent message in 4.5 (Telegram) [2 comments, 1 participants]