Skip to content

Telegram isolated ingress drain can hang after offset advances #83272

@73ttv627re77

Description

@73ttv627re77

OpenClaw 2026.5.12 isolated Telegram ingress can wedge inbound delivery while the poller still appears healthy.

Observed on local install:

  • isolated Telegram worker wrote telegram/ingress-spool-default/0000000379952079.json
  • update-offset-default.json advanced to lastUpdateId=379952079
  • main gateway did not dispatch the spooled update into the session
  • Telegram would not redeliver because offset was already advanced
  • spool drain path awaited bot.handleUpdate(update.update) without a timeout/liveness watchdog, so drainActive could stay true indefinitely and future drain ticks no-op

Local mitigation applied to installed runtime:

  • added deadline around spooled bot.handleUpdate
  • added stuck-drain diagnostics
  • restarted gateway; stuck spool drained and inbound Telegram resumed

The durable fix should address isolated ingress offset/dispatch semantics and add watchdog/stale-spool diagnostics in source.

Metadata

Metadata

Assignees

Labels

P1High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.

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