openclaw - 💡(How to fix) Fix tool-policy + plugin-tools ~4s blocking per call; exec hang with recovery=none

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…

Root Cause

  1. plugin-tools 无预加载:每次 tool-call 才动态加载全部7个 plugin-skills,虽然有 \\PluginLruCache\\ 但不主动预热
  2. tool-policy 无结果缓存:每次 evaluate 都完整遍历展开 group,~1500ms/次纯 CPU
  3. exec 超时后无 recovery:卡死后 \
    ecovery=none\\,需手动干预
RAW_BUFFERClick to expand / collapse

Problem Description

每次 tool-call 都会触发事件循环阻塞,有2次 exec 卡死超过150秒,recovery=none 无自动恢复。

Diagnostic Data

Trace 采样(每次 tool-call 都重现): \\\ core-plugin-tool stages: tool-policy: 1501ms plugin-tools: 2223ms total: ~3845ms \\\

Liveness warning(5次中选取最严重的2次):

  1. 19:40:21 — EventLoopDelay Max=28118ms,ELU=90.1% \\\ work=[active=agent:main:main(processing/tool_call,age=153s last=tool:exec:started)] \\\

  2. 19:43:03 — EventLoopDelay Max=44258ms,ELU=91.3% \\\ work=[active=agent:main:main(processing/tool_call,age=60s last=tool:exec:started)] \\\

long-running session 告警: \\\ activeTool=exec activeToolCallId=call_function_b168215z0u7g_1 activeToolAge=153s, lastProgressAge=34s recovery=none \\\

Root Cause Analysis

  1. plugin-tools 无预加载:每次 tool-call 才动态加载全部7个 plugin-skills,虽然有 \\PluginLruCache\\ 但不主动预热
  2. tool-policy 无结果缓存:每次 evaluate 都完整遍历展开 group,~1500ms/次纯 CPU
  3. exec 超时后无 recovery:卡死后 \
    ecovery=none\\,需手动干预

Suggested Fixes

  • P0:exec 超时后增加 recovery 逻辑,避免 session 永久卡住
  • P1:Gateway 启动时预加载所有 skill,而不是等第一次 tool-call
  • P2:缓存 \\expandToolGroups\\ / \\expandPluginGroups\\ 结果

Environment

  • OS: Windows_NT (x64), Node v24.15.0
  • 插件: browser-automation, feishu-doc, feishu-drive, feishu-perm, feishu-wiki, proactivity, self-improving

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