You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gateway API requests become extremely slow or hang during agent preparation. The event loop shows massive blocking spikes. The allgemein main session is continuously reported as "stuck" at 140+ seconds.
The event loop blocks map directly to agent prep phases. The gateway is completely unresponsive to API calls during the 40+ second agent preparation window.
Stuck Session
The main session continuously triggers stuck-session diagnostics:
This 10-second error contributes to the event loop blocking but is secondary to the main prep-stage issue.
Root Cause Hypothesis
The system-prompt building stage (#75329) performs synchronous/blocking operations for the entire 30-35 second duration. This blocks the Node.js event loop, preventing the gateway from handling any other requests. The eventLoopUtilization=1.0 and delay metrics confirm the event loop starvation.
Possible causes:
Synchronous file I/O during SKILL.md/manifest parsing
Version
OpenClaw 2026.4.29 (a448042)
Environment
Symptoms
Gateway API requests become extremely slow or hang during agent preparation. The event loop shows massive blocking spikes. The
allgemeinmain session is continuously reported as "stuck" at 140+ seconds.Measured Event Loop Metrics
API Request Degradation (during agent prep)
models.listsessions.listnode.listnode.listCorrelation: Prep stages ↔ event loop blocks
The event loop blocks map directly to agent prep phases. The gateway is completely unresponsive to API calls during the 40+ second agent preparation window.
Stuck Session
The main session continuously triggers stuck-session diagnostics:
Recovery is skipped because an embedded run is active.
Additional Error (may be related)
During one stuck period, a
lane task errorappeared:This 10-second error contributes to the event loop blocking but is secondary to the main prep-stage issue.
Root Cause Hypothesis
The system-prompt building stage (#75329) performs synchronous/blocking operations for the entire 30-35 second duration. This blocks the Node.js event loop, preventing the gateway from handling any other requests. The
eventLoopUtilization=1.0and delay metrics confirm the event loop starvation.Possible causes:
frontmatter-Cc-V8aI2.jsdoing synchronous parsing that can fail/retry (related to Telegram channel crashes: Cannot find package 'json5' (ESM import failure in bundled deps) #75328 json5 issue)awaitorsetImmediateyields in the prep pipelineImpact
openclaw statusandopenclaw gateway statustake seconds instead of millisecondsRegression
Version 2026.4.23: event loop clean, API requests <1s.