-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: 2026.5.22 Docker/WSL2 gateway event-loop starvation, 284s provider-auth prewarm, slow Telegram turn, and local RPC timeouts #86752
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper 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 does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper 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 does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Priority
None yet
Bug type
Performance / responsiveness regression
Summary
On OpenClaw 2026.5.22 running in Docker on a Windows 11 + WSL2 host, the gateway can become severely unresponsive even after reducing the runtime surface area.
The strongest signal is gateway-level event-loop starvation / CPU pressure around provider-auth prewarm and embedded-run startup/context preparation. This affects both user-facing Telegram responsiveness and local gateway control-plane RPCs.
This appears related to, but not fully covered by, existing 2026.5.22 event-loop / provider-auth reports such as #85999, #86201, #86512, and #86073. The distinct data point here is a Dockerized WSL2 setup with a lightweight Telegram agent probe, large cached runtime context despite a small visible prompt, and local node-management RPCs timing out while the gateway is under pressure.
Environment
What was simplified before the latest observation
The following were disabled or reduced before the latest test window:
A stale Windows nodehost scheduled task from an older setup was also found and disabled. It was not running at the time of the latest observations.
Observed symptoms
A lightweight agent used as a probe had a small visible prompt/bootstrap, but still showed large cached runtime context and slow end-to-end latency.
Observed values:
For the same slow turn, embedded startup trace showed approximately:
This suggests substantial gateway/runtime overhead before useful model/tool work.
During the same window, a Telegram
getMe10s timeout fired after roughly 65s, with about 55s timer delay. The gateway log labelled this as likely event-loop starvation.That makes the Telegram timeout look like a symptom of a blocked/delayed Node event loop, not a primary Telegram network issue.
A later gateway startup showed provider-auth prewarm around 284 seconds with high event-loop max delay.
Approximate observation:
While the gateway was in this degraded state, simple local node-management RPCs from inside the gateway container timed out after 10s.
Examples:
This indicates the problem is not only Telegram UX. The local gateway control plane itself can become unresponsive.
Expected behavior
getMeshould not fire tens of seconds late because the Node event loop is blocked.nodes list,nodes status, andnodes removeshould remain responsive or degrade gracefully even while provider auth or agent startup work is happening.Actual behavior
Current interpretation
The best current interpretation is that the gateway is experiencing event-loop starvation / CPU pressure in 2026.5.22, likely amplified by provider-auth prewarm, model/provider resolution, workspace/run setup, context assembly, and/or loaded runtime surfaces.
The symptoms line up with other public 2026.5.22 reports, but this case adds Docker/WSL2 evidence and a clean lightweight-agent probe where visible prompt size is small but cached runtime context is unexpectedly large.
Planned local isolation test
The next planned local diagnostic is an isolated clean-gateway comparison:
Interpretation of that test:
Related issues / likely overlap
This report is filed separately because the Docker/WSL2 setup, lightweight-agent probe, large cached runtime context despite small visible prompt, and local gateway RPC timeout combination may help narrow the scope.
Sanitization note
No bot tokens, phone numbers, raw session IDs, raw node IDs, private config contents, private logs, or personal/group identifiers are included in this report.