Repository navigation
Fix Telegram polling ingress under event-loop stalls - #81746
Merged
Merged
Conversation
Contributor
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: Fix Telegram polling ingress under event-loop stalls This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
joshavant
added a commit
that referenced
this pull request
May 14, 2026
* fix telegram polling ingress under event-loop stalls * add changelog for telegram ingress fix (cherry picked from commit fd244fd)
This was referenced May 15, 2026
Closed
2 tasks done
nighting0615
pushed a commit
to nighting0615/openclaw
that referenced
this pull request
May 19, 2026
* fix telegram polling ingress under event-loop stalls * add changelog for telegram ingress fix (cherry picked from commit fd244fd)
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
May 24, 2026
* fix telegram polling ingress under event-loop stalls * add changelog for telegram ingress fix
This was referenced May 26, 2026
jameslcowan
pushed a commit
to jameslcowan/openclaw
that referenced
this pull request
Jun 2, 2026
* fix telegram polling ingress under event-loop stalls * add changelog for telegram ingress fix
ericksoninco
pushed a commit
to ericksoninco/openclaw
that referenced
this pull request
Jun 9, 2026
* fix telegram polling ingress under event-loop stalls * add changelog for telegram ingress fix
sablehead
pushed a commit
to sablehead/openclaw
that referenced
this pull request
Jun 10, 2026
* fix telegram polling ingress under event-loop stalls * add changelog for telegram ingress fix
zooqueen
pushed a commit
to zooqueen/openclaw
that referenced
this pull request
Sep 11, 2026
* fix telegram polling ingress under event-loop stalls * add changelog for telegram ingress fix (cherry picked from commit fd244fd)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Fixes #81132.
Verification:
node scripts/run-vitest.mjs extensions/telegram/src/monitor.test.ts extensions/telegram/src/polling-session.test.ts extensions/telegram/src/telegram-ingress-spool.test.ts extensions/telegram/src/bot.fetch-abort.test.ts src/logging/diagnostic-stuck-session-recovery.runtime.test.ts src/logging/diagnostic.test.tspnpm tsgo:extensionspnpm check:changed: https://github.com/openclaw/openclaw/actions/runs/25849334464pnpm test:changed: https://github.com/openclaw/openclaw/actions/runs/25849486059pnpm build: https://github.com/openclaw/openclaw/actions/runs/25849557006Real behavior proof
Behavior addressed: Telegram polling could stop making Bot API progress when the main OpenClaw event loop was saturated, so messages could sit unfetched or be lost from the runtime path.
Real environment tested: Crabbox Blacksmith Testbox Linux runner, built package output, emitted Telegram ingress worker runtime, fake local Telegram Bot API server, deliberate 5s main-thread event-loop block.
Exact steps or command run after this patch:
pnpm build >/tmp/openclaw-81132-build.log && node scripts/tmp-telegram-ingress-stall-repro.mjsduring Testbox run https://github.com/openclaw/openclaw/actions/runs/25849195345.Evidence after fix: Terminal output from Testbox run https://github.com/openclaw/openclaw/actions/runs/25849195345:
{"ok":true,"blockMs":5000,"hitCount":64228,"firstHitOffsetMs":119,"spooledUpdateIds":[81132001]}.Observed result after fix: The worker fetched and durably spooled the update while the main thread was blocked, proving ingress is no longer coupled to main event-loop availability.
What was not tested: A live human Telegram user roundtrip under saturation was not run because the available issue credential file had bot-side credentials, not a Telegram user-driver credential. The repro uses a fake Bot API server to isolate the exact event-loop saturation failure mechanism.