openclaw - 💡(How to fix) Fix [Performance] auth stage takes 5-8s per request, severe event loop blocking

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. Auth optimization - clarify whether auth can be cached to avoid re-authenticating every request
  2. Event loop blocking - investigate root cause of 24-55s P99 delay, reduce unnecessary blocking
  3. Workspace file caching - cache bootstrap files in memory instead of reloading every request
  4. Gateway startup speed - pre-warmed takes 73s on each restart
RAW_BUFFERClick to expand / collapse

Problem Description

In OpenClaw 5.24, every AI request goes through embedded_run with two critical performance issues:

1. embedded_run stage breakdown (per request)

StageDurationShare
uth5-8s/request~40-60%
ttempt-workspace3.9s/request~27%
Other stages<20ms-
Total~14-15s-

2. Severe event loop blocking

  • P99 delay: 24-55 seconds
  • Messages queued for 30-42 seconds before being processed
  • User experience: ~60 seconds total round-trip after sending a message

Environment

  • OpenClaw version: 2026.5.24 (8a94e82)
  • Model: minimax/MiniMax-M2.7
  • Trigger: Feishu DM

Recommended Priority for Official Fix

  1. Auth optimization - clarify whether auth can be cached to avoid re-authenticating every request
  2. Event loop blocking - investigate root cause of 24-55s P99 delay, reduce unnecessary blocking
  3. Workspace file caching - cache bootstrap files in memory instead of reloading every request
  4. Gateway startup speed - pre-warmed takes 73s on each restart

Core Request

Please prioritize smoothness improvements: reduce unnecessary blocking, speed up initialization, compilation and runtime — make the conversation response more fluid.

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 [Performance] auth stage takes 5-8s per request, severe event loop blocking