openclaw - 💡(How to fix) Fix [Bug]: Feishu/lark channel agent response extremely slow (26-46s per message) — core-plugin-tools and event loop delay

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…

Feishu/Lark channel users experience 26-46 seconds response delay on every message. The slowness is not from model API inference (~1s) but from OpenClaw internal startup stages that run on every message, with no caching between runs.

When sending a simple message through Feishu, it takes 30-50 seconds before the agent even starts generating a reply. This applies to trivial queries.

Root Cause

The core-plugin-tools stage rebuilds plugin tool definitions on every single message, despite the same session, same agent, same configuration. There is no caching layer for tool schemas, plugin tool registrations, or system prompt assembly.

Deleting unused workspace skills (from 53 to 21) had zero impact on load time, confirming the bottleneck is in OpenClaw core plugin tool infrastructure, not user-installed skills.

Fix Action

Fix / Workaround

After prep, the dispatch completes at:

feishu[default][msg:...]: dispatch complete (replies=1, elapsed=46554ms)

Code Example

[trace:embedded-run] prep stages: totalMs=27293
  core-plugin-tools: 14062ms    ← 14 seconds loading plugin tools
  system-prompt: 5375ms          ← 5 seconds assembling system prompt
  stream-setup: 5292ms           ← 5 seconds stream setup
  bundle-tools: 1123ms
  session-resource-loader: 1120ms
  total: ~27 seconds PREP TIME before model even starts
RAW_BUFFERClick to expand / collapse

Bug type

Performance issue

Summary

Feishu/Lark channel users experience 26-46 seconds response delay on every message. The slowness is not from model API inference (~1s) but from OpenClaw internal startup stages that run on every message, with no caching between runs.

When sending a simple message through Feishu, it takes 30-50 seconds before the agent even starts generating a reply. This applies to trivial queries.

Steps to reproduce

  1. Configure Feishu/Lark channel (openclaw-lark plugin)
  2. Send any message (e.g., "test" or "hello")
  3. Wait 30-50 seconds for a reply
  4. Check the logs at /tmp/openclaw/openclaw-YYYY-MM-DD.log

Actual behavior

Log output shows the bottleneck:

[trace:embedded-run] prep stages: totalMs=27293
  core-plugin-tools: 14062ms    ← 14 seconds loading plugin tools
  system-prompt: 5375ms          ← 5 seconds assembling system prompt
  stream-setup: 5292ms           ← 5 seconds stream setup
  bundle-tools: 1123ms
  session-resource-loader: 1120ms
  total: ~27 seconds PREP TIME before model even starts

After prep, the dispatch completes at:

feishu[default][msg:...]: dispatch complete (replies=1, elapsed=46554ms)

Additionally, liveness warnings show severe event loop delays:

liveness warning: eventLoopDelayMaxMs=13866.4 eventLoopUtilization=0.7 active=1 queued=1

Expected behavior

Agent response should complete in 3-5 seconds for simple queries. The startup pipeline (plugin tools loading, system prompt assembly, stream setup) should be cached between runs within the same session.

Environment

  • OpenClaw: v2026.4.29
  • Channel: Feishu/Lark (openclaw-lark plugin)
  • OS: Ubuntu 24.04, x86, SATA SSD (970MB/s seq read)
  • RAM: 14GB (11GB available, not memory constrained)
  • CPU: Mostly idle (85%+ idle during delay)
  • Node: v24.14.0

Related issues

  • #78851 — reported model-resolution taking 7-8s per run. This issue complements it: core-plugin-tools is an additional 13-14s bottleneck.
  • #82021 — Feishu user reporting 5-minute response times on v5.12 (Windows). Same symptom (event loop starvation + slow responses).

Root cause analysis

The core-plugin-tools stage rebuilds plugin tool definitions on every single message, despite the same session, same agent, same configuration. There is no caching layer for tool schemas, plugin tool registrations, or system prompt assembly.

Deleting unused workspace skills (from 53 to 21) had zero impact on load time, confirming the bottleneck is in OpenClaw core plugin tool infrastructure, not user-installed skills.

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…

FAQ

Expected behavior

Agent response should complete in 3-5 seconds for simple queries. The startup pipeline (plugin tools loading, system prompt assembly, stream setup) should be cached between runs within the same session.

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]: Feishu/lark channel agent response extremely slow (26-46s per message) — core-plugin-tools and event loop delay