openclaw - 💡(How to fix) Fix [Bug] active-memory plugin causes severe event loop blocking (6853ms max delay) [1 comments, 2 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#77825Fetched 2026-05-06 06:20:43
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
2
Timeline (top)
closed ×1commented ×1

Root Cause

Possible Root Cause

Fix Action

Workaround

Disabling the active-memory plugin resolves the issue immediately.

Code Example

19:51:34 [diagnostic] liveness warning: reasons=event_loop_delay interval=31s eventLoopDelayP99Ms=430.7 eventLoopDelayMaxMs=6853.5 eventLoopUtilization=0.495 cpuCoreRatio=0.516
19:51:45 [plugins] [hooks] before_prompt_build handler from active-memory failed: timed out after 8000ms
19:51:46 [agent/embedded] embedded run failover decision: runId=active-memory-moskikil-d87cd36f stage=assistant decision=surface_error reason=timeout from=minimax-portal/MiniMax-M2.7-highspeed
RAW_BUFFERClick to expand / collapse

Bug Description

The active-memory plugin causes severe event loop blocking in OpenClaw, leading to:

  • Event loop delays up to 6853ms (max) / 430ms (P99)
  • Plugin timeout after 8000ms (before_prompt_build handler from active-memory failed: timed out after 8000ms)
  • Model calls triggering failover to backup due to blocked event loop

Environment

  • OpenClaw version: v2026.5.4-beta.1
  • Node.js version: v25.9.0
  • OS: Windows_NT 10.0.26200 (x64)
  • RAM: 32GB
  • Model: MiniMax-M2.7-highspeed

Symptoms

19:51:34 [diagnostic] liveness warning: reasons=event_loop_delay interval=31s eventLoopDelayP99Ms=430.7 eventLoopDelayMaxMs=6853.5 eventLoopUtilization=0.495 cpuCoreRatio=0.516
19:51:45 [plugins] [hooks] before_prompt_build handler from active-memory failed: timed out after 8000ms
19:51:46 [agent/embedded] embedded run failover decision: runId=active-memory-moskikil-d87cd36f stage=assistant decision=surface_error reason=timeout from=minimax-portal/MiniMax-M2.7-highspeed

Expected Behavior

The event loop should remain responsive (< 100ms delay). The active-memory plugin should complete within its configured timeout without blocking the entire event loop.

Possible Root Cause

The active-memory plugin appears to perform synchronous/blocking operations that prevent the Node.js event loop from processing other tasks. This causes:

  1. All async operations to queue up behind the blocked event loop
  2. Plugin hooks to timeout
  3. Model calls to fail or trigger failover

Impact

  • Usability degradation: Commands and responses delayed by 7+ seconds
  • Plugin failures: active-memory times out every time it tries to run
  • Model failover: Regular triggering of backup models due to blocked primary

Workaround

Disabling the active-memory plugin resolves the issue immediately.

extent analysis

TL;DR

Disable the active-memory plugin to immediately resolve the event loop blocking issue in OpenClaw.

Guidance

  • Verify the active-memory plugin is the root cause by checking the event loop delay and plugin timeout logs.
  • Consider implementing asynchronous operations within the active-memory plugin to prevent event loop blocking.
  • If disabling the plugin is not a viable long-term solution, investigate alternative plugins or workarounds that do not block the event loop.
  • Monitor the event loop delay and plugin timeout logs after applying any changes to ensure the issue is resolved.

Example

No code snippet is provided as the issue does not specify the implementation details of the active-memory plugin.

Notes

Disabling the active-memory plugin may have unintended consequences on the functionality of OpenClaw. It is essential to understand the plugin's purpose and potential workarounds before applying this fix.

Recommendation

Apply workaround: Disable the active-memory plugin, as it immediately resolves the issue and allows for further investigation into alternative solutions.

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 [Bug] active-memory plugin causes severe event loop blocking (6853ms max delay) [1 comments, 2 participants]