openclaw - 💡(How to fix) Fix [Bug]: System very buggy, unstable and slow since at least v2026.4.24 [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#76001Fetched 2026-05-03 04:43:26
View on GitHub
Comments
1
Participants
2
Timeline
9
Reactions
2
Author
Timeline (top)
labeled ×2mentioned ×2subscribed ×2closed ×1

I don't know if it was before 2026.04.24, that's the point where I have noticed it.

I think a lot of the tickets currently open have a similar problem but they see/show only one side of the problem.

plugin-runtime-deps, event_loop and gateway connection problems occur on every openclaw interaction / session (re)start

Error Message

07:57:30+00:00 info plugins {"subsystem":"plugins"} [plugins] runway staging bundled runtime deps (42 specs): @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6 07:57:30+00:00 info plugins {"subsystem":"plugins"} [plugins] runway installed bundled runtime deps in 3ms: @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6 07:57:40+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] startup stages: runId=3222c89b-1113-439d-80f6-d18e5fa821fb sessionId=206838dc-b862-47a3-b428-db93826770db phase=attempt-dispatch totalMs=16378 stages=workspace:0ms@0ms,runtime-plugins:8679ms@8679ms,hooks:0ms@8679ms,model-resolution:1621ms@10300ms,auth:3475ms@13775ms,context-engine:1ms@13776ms,attempt-dispatch:2602ms@16378ms 07:57:54+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13805,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"16c6ac15-6c59-4b63-9387-0106bfd86bff","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52867,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52867->127.0.0.1:18789"} closed before connect conn=a86b93d5-9ddd-4481-b0cc-19c17227225b peer=127.0.0.1:52867->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a 07:57:54+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13808,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"9579e7a8-6c2d-4720-8b16-fa0dc42f7780","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52866,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52866->127.0.0.1:18789"} closed before connect conn=5ab3357a-2339-480c-92f5-71fdb3c25621 peer=127.0.0.1:52866->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a 07:57:59+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=3222c89b-1113-439d-80f6-d18e5fa821fb sessionId=206838dc-b862-47a3-b428-db93826770db phase=stream-ready totalMs=19413 stages=workspace-sandbox:11ms@11ms,skills:0ms@11ms,core-plugin-tools:8794ms@8805ms,bootstrap-context:10ms@8815ms,bundle-tools:886ms@9701ms,system-prompt:4108ms@13809ms,session-resource-loader:1555ms@15364ms,agent-session:0ms@15364ms,stream-setup:4049ms@19413ms

07:58:05+00:00 info plugins {"subsystem":"plugins"} [plugins] acpx staging bundled runtime deps (42 specs): @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6 07:58:05+00:00 info plugins {"subsystem":"plugins"} [plugins] acpx installed bundled runtime deps in 3ms: @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6 07:58:06+00:00 info plugins {"subsystem":"plugins"} [plugins] bonjour staging bundled runtime deps (42 specs): @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6 07:58:06+00:00 info plugins {"subsystem":"plugins"} [plugins] bonjour installed bundled runtime deps in 5ms: @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6 07:58:07+00:00 info plugins {"subsystem":"plugins"} [plugins] document-extract staging bundled runtime deps (42 specs): @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6 07:58:07+00:00 info plugins {"subsystem":"plugins"} [plugins] document-extract installed bundled runtime deps in 4ms: @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6 07:58:11+00:00 info plugins {"subsystem":"plugins"} [plugins] runway staging bundled runtime deps (42 specs): @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6 07:58:11+00:00 info plugins {"subsystem":"plugins"} [plugins] runway installed bundled runtime deps in 3ms: @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6 07:58:21+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] startup stages: runId=535e59a7-3725-41a5-9d8f-192554c2592d sessionId=2f2bb953-5c8e-4b45-9b09-6362597e14ea phase=attempt-dispatch totalMs=16391 stages=workspace:0ms@0ms,runtime-plugins:8822ms@8822ms,hooks:0ms@8822ms,model-resolution:1631ms@10453ms,auth:3481ms@13934ms,context-engine:0ms@13934ms,attempt-dispatch:2457ms@16391ms 07:58:34+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13132,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"41a9a242-f763-42ff-81b7-475f7e1e24e1","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52877,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52877->127.0.0.1:18789"} closed before connect conn=03e8aa7e-6da0-4844-a631-54bb9db2ab76 peer=127.0.0.1:52877->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a 07:58:34+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13135,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"b2b10f69-ec1c-423c-ba0d-e49464e5f4ae","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52876,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52876->127.0.0.1:18789"} closed before connect conn=fad6ab54-89e1-44dc-a706-8922d4445f68 peer=127.0.0.1:52876->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a 07:58:43+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=535e59a7-3725-41a5-9d8f-192554c2592d sessionId=2f2bb953-5c8e-4b45-9b09-6362597e14ea phase=stream-ready totalMs=21686 stages=workspace-sandbox:7ms@7ms,skills:0ms@7ms,core-plugin-tools:10272ms@10279ms,bootstrap-context:109ms@10388ms,bundle-tools:1067ms@11455ms,system-prompt:4172ms@15627ms,session-resource-loader:1935ms@17562ms,agent-session:0ms@17562ms,stream-setup:4124ms@21686ms gateway connect failed: Error: gateway closed (1000): 07:58:57+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] startup stages: runId=e683d965-83b7-44f6-8484-af47484c8ad3 sessionId=1311d35c-8716-4f64-8fc1-896e77d73e49 phase=attempt-dispatch totalMs=10240 stages=workspace:0ms@0ms,runtime-plugins:2ms@2ms,hooks:0ms@2ms,model-resolution:4381ms@4383ms,auth:3466ms@7849ms,context-engine:0ms@7849ms,attempt-dispatch:2391ms@10240ms 07:59:16+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=e683d965-83b7-44f6-8484-af47484c8ad3 sessionId=1311d35c-8716-4f64-8fc1-896e77d73e49 phase=stream-ready totalMs=19607 stages=workspace-sandbox:9ms@9ms,skills:0ms@9ms,core-plugin-tools:8913ms@8922ms,bootstrap-context:4ms@8926ms,bundle-tools:878ms@9804ms,system-prompt:4151ms@13955ms,session-resource-loader:1580ms@15535ms,agent-session:0ms@15535ms,stream-setup:4072ms@19607ms 07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=fb0f9cfd-84c3-4187-ae3b-e9cf0522d618 peer=127.0.0.1:52889->127.0.0.1:18789 remote=127.0.0.1 07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=59aae525-421e-49cc-b179-86df25b89a38 peer=127.0.0.1:52890->127.0.0.1:18789 remote=127.0.0.1 07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21365,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"1613f8c4-59b5-472e-89cc-2443d438f74c","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52890,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52890->127.0.0.1:18789","handshakeMs":21235} closed before connect conn=59aae525-421e-49cc-b179-86df25b89a38 peer=127.0.0.1:52890->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1000 reason=n/a 07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21370,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"3bcb1846-a875-495f-9066-769c14b96202","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52889,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52889->127.0.0.1:18789","handshakeMs":21238} closed before connect conn=fb0f9cfd-84c3-4187-ae3b-e9cf0522d618 peer=127.0.0.1:52889->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1000 reason=n/a 07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000): 07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000): 07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000): 07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000): 07:59:24+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ logs.tail 709ms conn=63a91fbe…4a91 id=f3e5e3ab…5bb8 07:59:24+00:00 warn diagnostic {"subsystem":"diagnostic"} liveness warning: reasons=event_loop_delay,cpu interval=30s eventLoopDelayP99Ms=2520.8 eventLoopDelayMaxMs=8925.5 eventLoopUtilization=0.866 cpuCoreRatio=1.038 active=0 waiting=0 queued=0 07:59:54+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=bce0ff38-5df3-4690-99c8-d3e959496571 sessionId=148e8dff-d673-43d2-b40f-aa8117be4d37 phase=stream-ready totalMs=19641 stages=workspace-sandbox:11ms@11ms,skills:0ms@11ms,core-plugin-tools:8870ms@8881ms,bootstrap-context:192ms@9073ms,bundle-tools:838ms@9911ms,system-prompt:4128ms@14039ms,session-resource-loader:1566ms@15605ms,agent-session:0ms@15605ms,stream-setup:4036ms@19641ms 07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=ff0d9bb0-d25a-4037-95e7-62700e2ae696 peer=127.0.0.1:52910->127.0.0.1:18789 remote=127.0.0.1 07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=6bfda6d5-e544-4277-b3f9-d2a5d8cdc3e4 peer=127.0.0.1:52911->127.0.0.1:18789 remote=127.0.0.1 07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21281,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"d952e812-7c53-4824-8c43-413f0296d03b","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52911,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52911->127.0.0.1:18789","handshakeMs":21279} closed before connect conn=6bfda6d5-e544-4277-b3f9-d2a5d8cdc3e4 peer=127.0.0.1:52911->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a 07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21286,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"f061173b-88c8-43a4-8026-13f019651fca","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52910,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52910->127.0.0.1:18789","handshakeMs":21283} closed before connect conn=ff0d9bb0-d25a-4037-95e7-62700e2ae696 peer=127.0.0.1:52910->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a

Root Cause

I don't know if it was before 2026.04.24, that's the point where I have noticed it.

I think a lot of the tickets currently open have a similar problem but they see/show only one side of the problem.

plugin-runtime-deps, event_loop and gateway connection problems occur on every openclaw interaction / session (re)start

Fix Action

Fix / Workaround

07:57:30+00:00 info plugins {"subsystem":"plugins"} [plugins] runway staging bundled runtime deps (42 specs): @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:57:30+00:00 info plugins {"subsystem":"plugins"} [plugins] runway installed bundled runtime deps in 3ms: @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:57:40+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] startup stages: runId=3222c89b-1113-439d-80f6-d18e5fa821fb sessionId=206838dc-b862-47a3-b428-db93826770db phase=attempt-dispatch totalMs=16378 stages=workspace:0ms@0ms,runtime-plugins:8679ms@8679ms,hooks:0ms@8679ms,model-resolution:1621ms@10300ms,auth:3475ms@13775ms,context-engine:1ms@13776ms,attempt-dispatch:2602ms@16378ms
07:57:54+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13805,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"16c6ac15-6c59-4b63-9387-0106bfd86bff","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52867,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52867->127.0.0.1:18789"} closed before connect conn=a86b93d5-9ddd-4481-b0cc-19c17227225b peer=127.0.0.1:52867->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
07:57:54+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13808,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"9579e7a8-6c2d-4720-8b16-fa0dc42f7780","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52866,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52866->127.0.0.1:18789"} closed before connect conn=5ab3357a-2339-480c-92f5-71fdb3c25621 peer=127.0.0.1:52866->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
07:57:59+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=3222c89b-1113-439d-80f6-d18e5fa821fb sessionId=206838dc-b862-47a3-b428-db93826770db phase=stream-ready totalMs=19413 stages=workspace-sandbox:11ms@11ms,skills:0ms@11ms,core-plugin-tools:8794ms@8805ms,bootstrap-context:10ms@8815ms,bundle-tools:886ms@9701ms,system-prompt:4108ms@13809ms,session-resource-loader:1555ms@15364ms,agent-session:0ms@15364ms,stream-setup:4049ms@19413ms

07:58:05+00:00 info plugins {"subsystem":"plugins"} [plugins] acpx staging bundled runtime deps (42 specs): @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:05+00:00 info plugins {"subsystem":"plugins"} [plugins] acpx installed bundled runtime deps in 3ms: @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:06+00:00 info plugins {"subsystem":"plugins"} [plugins] bonjour staging bundled runtime deps (42 specs): @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:06+00:00 info plugins {"subsystem":"plugins"} [plugins] bonjour installed bundled runtime deps in 5ms: @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:07+00:00 info plugins {"subsystem":"plugins"} [plugins] document-extract staging bundled runtime deps (42 specs): @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:07+00:00 info plugins {"subsystem":"plugins"} [plugins] document-extract installed bundled runtime deps in 4ms: @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:11+00:00 info plugins {"subsystem":"plugins"} [plugins] runway staging bundled runtime deps (42 specs): @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:11+00:00 info plugins {"subsystem":"plugins"} [plugins] runway installed bundled runtime deps in 3ms: @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:21+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] startup stages: runId=535e59a7-3725-41a5-9d8f-192554c2592d sessionId=2f2bb953-5c8e-4b45-9b09-6362597e14ea phase=attempt-dispatch totalMs=16391 stages=workspace:0ms@0ms,runtime-plugins:8822ms@8822ms,hooks:0ms@8822ms,model-resolution:1631ms@10453ms,auth:3481ms@13934ms,context-engine:0ms@13934ms,attempt-dispatch:2457ms@16391ms
07:58:34+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13132,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"41a9a242-f763-42ff-81b7-475f7e1e24e1","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52877,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52877->127.0.0.1:18789"} closed before connect conn=03e8aa7e-6da0-4844-a631-54bb9db2ab76 peer=127.0.0.1:52877->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
07:58:34+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13135,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"b2b10f69-ec1c-423c-ba0d-e49464e5f4ae","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52876,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52876->127.0.0.1:18789"} closed before connect conn=fad6ab54-89e1-44dc-a706-8922d4445f68 peer=127.0.0.1:52876->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
07:58:43+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=535e59a7-3725-41a5-9d8f-192554c2592d sessionId=2f2bb953-5c8e-4b45-9b09-6362597e14ea phase=stream-ready totalMs=21686 stages=workspace-sandbox:7ms@7ms,skills:0ms@7ms,core-plugin-tools:10272ms@10279ms,bootstrap-context:109ms@10388ms,bundle-tools:1067ms@11455ms,system-prompt:4172ms@15627ms,session-resource-loader:1935ms@17562ms,agent-session:0ms@17562ms,stream-setup:4124ms@21686ms
gateway connect failed: Error: gateway closed (1000):
07:58:57+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] startup stages: runId=e683d965-83b7-44f6-8484-af47484c8ad3 sessionId=1311d35c-8716-4f64-8fc1-896e77d73e49 phase=attempt-dispatch totalMs=10240 stages=workspace:0ms@0ms,runtime-plugins:2ms@2ms,hooks:0ms@2ms,model-resolution:4381ms@4383ms,auth:3466ms@7849ms,context-engine:0ms@7849ms,attempt-dispatch:2391ms@10240ms
07:59:16+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=e683d965-83b7-44f6-8484-af47484c8ad3 sessionId=1311d35c-8716-4f64-8fc1-896e77d73e49 phase=stream-ready totalMs=19607 stages=workspace-sandbox:9ms@9ms,skills:0ms@9ms,core-plugin-tools:8913ms@8922ms,bootstrap-context:4ms@8926ms,bundle-tools:878ms@9804ms,system-prompt:4151ms@13955ms,session-resource-loader:1580ms@15535ms,agent-session:0ms@15535ms,stream-setup:4072ms@19607ms
07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=fb0f9cfd-84c3-4187-ae3b-e9cf0522d618 peer=127.0.0.1:52889->127.0.0.1:18789 remote=127.0.0.1
07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=59aae525-421e-49cc-b179-86df25b89a38 peer=127.0.0.1:52890->127.0.0.1:18789 remote=127.0.0.1
07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21365,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"1613f8c4-59b5-472e-89cc-2443d438f74c","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52890,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52890->127.0.0.1:18789","handshakeMs":21235} closed before connect conn=59aae525-421e-49cc-b179-86df25b89a38 peer=127.0.0.1:52890->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1000 reason=n/a
07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21370,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"3bcb1846-a875-495f-9066-769c14b96202","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52889,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52889->127.0.0.1:18789","handshakeMs":21238} closed before connect conn=fb0f9cfd-84c3-4187-ae3b-e9cf0522d618 peer=127.0.0.1:52889->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1000 reason=n/a
07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000):
07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000):
07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000):
07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000):
07:59:24+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ logs.tail 709ms conn=63a91fbe…4a91 id=f3e5e3ab…5bb8
07:59:24+00:00 warn diagnostic {"subsystem":"diagnostic"} liveness warning: reasons=event_loop_delay,cpu interval=30s eventLoopDelayP99Ms=2520.8 eventLoopDelayMaxMs=8925.5 eventLoopUtilization=0.866 cpuCoreRatio=1.038 active=0 waiting=0 queued=0
07:59:54+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=bce0ff38-5df3-4690-99c8-d3e959496571 sessionId=148e8dff-d673-43d2-b40f-aa8117be4d37 phase=stream-ready totalMs=19641 stages=workspace-sandbox:11ms@11ms,skills:0ms@11ms,core-plugin-tools:8870ms@8881ms,bootstrap-context:192ms@9073ms,bundle-tools:838ms@9911ms,system-prompt:4128ms@14039ms,session-resource-loader:1566ms@15605ms,agent-session:0ms@15605ms,stream-setup:4036ms@19641ms
07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=ff0d9bb0-d25a-4037-95e7-62700e2ae696 peer=127.0.0.1:52910->127.0.0.1:18789 remote=127.0.0.1
07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=6bfda6d5-e544-4277-b3f9-d2a5d8cdc3e4 peer=127.0.0.1:52911->127.0.0.1:18789 remote=127.0.0.1
07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21281,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"d952e812-7c53-4824-8c43-413f0296d03b","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52911,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52911->127.0.0.1:18789","handshakeMs":21279} closed before connect conn=6bfda6d5-e544-4277-b3f9-d2a5d8cdc3e4 peer=127.0.0.1:52911->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21286,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"f061173b-88c8-43a4-8026-13f019651fca","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52910,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52910->127.0.0.1:18789","handshakeMs":21283} closed before connect conn=ff0d9bb0-d25a-4037-95e7-62700e2ae696 peer=127.0.0.1:52910->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a

Code Example

// In buildCacheKey():
const bundledRuntimeDepsMode = params.installBundledRuntimeDeps === false 
 ? "skip-runtime-deps" 
 : "install-runtime-deps"; // ← DEFAULT, if not explicitly false

---

// In loadOpenClawPlugins():
if (shouldLoadModules && shouldInstallBundledRuntimeDeps && candidate.origin === "bundled") {
 // for EACH Plugin-Load → staging + install
 installDeps(installParams); // "staging bundled runtime deps..."
}

---

07:57:30+00:00 info plugins {"subsystem":"plugins"} [plugins] runway staging bundled runtime deps (42 specs): @agentclientprotocol/claude-agent-acp@0.31.1, @agentclientprotocol/sdk@0.21.0, @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/node-pty@1.2.0-beta.12, @mariozechner/pi-ai@0.70.6, @mariozechner/pi-coding-agent@0.70.6, @modelcontextprotocol/sdk@1.29.0, @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/codex-acp@0.12.0, acpx@0.6.1, ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, express@5.2.1, global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, markdown-it@14.1.1, minimatch@10.2.4, mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, playwright-core@1.59.1, semver@7.7.4, silk-wasm@^3.7.1, sqlite-vec@0.1.9, tar@7.5.13, tslog@^4.10.2, typebox@1.1.34, undici@8.1.0, web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:57:30+00:00 info plugins {"subsystem":"plugins"} [plugins] runway installed bundled runtime deps in 3ms: @agentclientprotocol/claude-agent-acp@0.31.1, @agentclientprotocol/sdk@0.21.0, @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/node-pty@1.2.0-beta.12, @mariozechner/pi-ai@0.70.6, @mariozechner/pi-coding-agent@0.70.6, @modelcontextprotocol/sdk@1.29.0, @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/codex-acp@0.12.0, acpx@0.6.1, ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, express@5.2.1, global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, markdown-it@14.1.1, minimatch@10.2.4, mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, playwright-core@1.59.1, semver@7.7.4, silk-wasm@^3.7.1, sqlite-vec@0.1.9, tar@7.5.13, tslog@^4.10.2, typebox@1.1.34, undici@8.1.0, web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:57:40+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] startup stages: runId=3222c89b-1113-439d-80f6-d18e5fa821fb sessionId=206838dc-b862-47a3-b428-db93826770db phase=attempt-dispatch totalMs=16378 stages=workspace:0ms@0ms,runtime-plugins:8679ms@8679ms,hooks:0ms@8679ms,model-resolution:1621ms@10300ms,auth:3475ms@13775ms,context-engine:1ms@13776ms,attempt-dispatch:2602ms@16378ms
07:57:54+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13805,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"16c6ac15-6c59-4b63-9387-0106bfd86bff","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52867,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52867->127.0.0.1:18789"} closed before connect conn=a86b93d5-9ddd-4481-b0cc-19c17227225b peer=127.0.0.1:52867->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
07:57:54+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13808,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"9579e7a8-6c2d-4720-8b16-fa0dc42f7780","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52866,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52866->127.0.0.1:18789"} closed before connect conn=5ab3357a-2339-480c-92f5-71fdb3c25621 peer=127.0.0.1:52866->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
07:57:59+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=3222c89b-1113-439d-80f6-d18e5fa821fb sessionId=206838dc-b862-47a3-b428-db93826770db phase=stream-ready totalMs=19413 stages=workspace-sandbox:11ms@11ms,skills:0ms@11ms,core-plugin-tools:8794ms@8805ms,bootstrap-context:10ms@8815ms,bundle-tools:886ms@9701ms,system-prompt:4108ms@13809ms,session-resource-loader:1555ms@15364ms,agent-session:0ms@15364ms,stream-setup:4049ms@19413ms

07:58:05+00:00 info plugins {"subsystem":"plugins"} [plugins] acpx staging bundled runtime deps (42 specs): @agentclientprotocol/claude-agent-acp@0.31.1, @agentclientprotocol/sdk@0.21.0, @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/node-pty@1.2.0-beta.12, @mariozechner/pi-ai@0.70.6, @mariozechner/pi-coding-agent@0.70.6, @modelcontextprotocol/sdk@1.29.0, @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/codex-acp@0.12.0, acpx@0.6.1, ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, express@5.2.1, global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, markdown-it@14.1.1, minimatch@10.2.4, mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, playwright-core@1.59.1, semver@7.7.4, silk-wasm@^3.7.1, sqlite-vec@0.1.9, tar@7.5.13, tslog@^4.10.2, typebox@1.1.34, undici@8.1.0, web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:05+00:00 info plugins {"subsystem":"plugins"} [plugins] acpx installed bundled runtime deps in 3ms: @agentclientprotocol/claude-agent-acp@0.31.1, @agentclientprotocol/sdk@0.21.0, @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/node-pty@1.2.0-beta.12, @mariozechner/pi-ai@0.70.6, @mariozechner/pi-coding-agent@0.70.6, @modelcontextprotocol/sdk@1.29.0, @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/codex-acp@0.12.0, acpx@0.6.1, ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, express@5.2.1, global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, markdown-it@14.1.1, minimatch@10.2.4, mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, playwright-core@1.59.1, semver@7.7.4, silk-wasm@^3.7.1, sqlite-vec@0.1.9, tar@7.5.13, tslog@^4.10.2, typebox@1.1.34, undici@8.1.0, web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:06+00:00 info plugins {"subsystem":"plugins"} [plugins] bonjour staging bundled runtime deps (42 specs): @agentclientprotocol/claude-agent-acp@0.31.1, @agentclientprotocol/sdk@0.21.0, @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/node-pty@1.2.0-beta.12, @mariozechner/pi-ai@0.70.6, @mariozechner/pi-coding-agent@0.70.6, @modelcontextprotocol/sdk@1.29.0, @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/codex-acp@0.12.0, acpx@0.6.1, ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, express@5.2.1, global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, markdown-it@14.1.1, minimatch@10.2.4, mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, playwright-core@1.59.1, semver@7.7.4, silk-wasm@^3.7.1, sqlite-vec@0.1.9, tar@7.5.13, tslog@^4.10.2, typebox@1.1.34, undici@8.1.0, web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:06+00:00 info plugins {"subsystem":"plugins"} [plugins] bonjour installed bundled runtime deps in 5ms: @agentclientprotocol/claude-agent-acp@0.31.1, @agentclientprotocol/sdk@0.21.0, @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/node-pty@1.2.0-beta.12, @mariozechner/pi-ai@0.70.6, @mariozechner/pi-coding-agent@0.70.6, @modelcontextprotocol/sdk@1.29.0, @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/codex-acp@0.12.0, acpx@0.6.1, ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, express@5.2.1, global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, markdown-it@14.1.1, minimatch@10.2.4, mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, playwright-core@1.59.1, semver@7.7.4, silk-wasm@^3.7.1, sqlite-vec@0.1.9, tar@7.5.13, tslog@^4.10.2, typebox@1.1.34, undici@8.1.0, web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:07+00:00 info plugins {"subsystem":"plugins"} [plugins] document-extract staging bundled runtime deps (42 specs): @agentclientprotocol/claude-agent-acp@0.31.1, @agentclientprotocol/sdk@0.21.0, @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/node-pty@1.2.0-beta.12, @mariozechner/pi-ai@0.70.6, @mariozechner/pi-coding-agent@0.70.6, @modelcontextprotocol/sdk@1.29.0, @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/codex-acp@0.12.0, acpx@0.6.1, ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, express@5.2.1, global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, markdown-it@14.1.1, minimatch@10.2.4, mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, playwright-core@1.59.1, semver@7.7.4, silk-wasm@^3.7.1, sqlite-vec@0.1.9, tar@7.5.13, tslog@^4.10.2, typebox@1.1.34, undici@8.1.0, web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:07+00:00 info plugins {"subsystem":"plugins"} [plugins] document-extract installed bundled runtime deps in 4ms: @agentclientprotocol/claude-agent-acp@0.31.1, @agentclientprotocol/sdk@0.21.0, @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/node-pty@1.2.0-beta.12, @mariozechner/pi-ai@0.70.6, @mariozechner/pi-coding-agent@0.70.6, @modelcontextprotocol/sdk@1.29.0, @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/codex-acp@0.12.0, acpx@0.6.1, ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, express@5.2.1, global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, markdown-it@14.1.1, minimatch@10.2.4, mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, playwright-core@1.59.1, semver@7.7.4, silk-wasm@^3.7.1, sqlite-vec@0.1.9, tar@7.5.13, tslog@^4.10.2, typebox@1.1.34, undici@8.1.0, web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:11+00:00 info plugins {"subsystem":"plugins"} [plugins] runway staging bundled runtime deps (42 specs): @agentclientprotocol/claude-agent-acp@0.31.1, @agentclientprotocol/sdk@0.21.0, @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/node-pty@1.2.0-beta.12, @mariozechner/pi-ai@0.70.6, @mariozechner/pi-coding-agent@0.70.6, @modelcontextprotocol/sdk@1.29.0, @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/codex-acp@0.12.0, acpx@0.6.1, ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, express@5.2.1, global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, markdown-it@14.1.1, minimatch@10.2.4, mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, playwright-core@1.59.1, semver@7.7.4, silk-wasm@^3.7.1, sqlite-vec@0.1.9, tar@7.5.13, tslog@^4.10.2, typebox@1.1.34, undici@8.1.0, web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:11+00:00 info plugins {"subsystem":"plugins"} [plugins] runway installed bundled runtime deps in 3ms: @agentclientprotocol/claude-agent-acp@0.31.1, @agentclientprotocol/sdk@0.21.0, @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/node-pty@1.2.0-beta.12, @mariozechner/pi-ai@0.70.6, @mariozechner/pi-coding-agent@0.70.6, @modelcontextprotocol/sdk@1.29.0, @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/codex-acp@0.12.0, acpx@0.6.1, ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, express@5.2.1, global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, markdown-it@14.1.1, minimatch@10.2.4, mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, playwright-core@1.59.1, semver@7.7.4, silk-wasm@^3.7.1, sqlite-vec@0.1.9, tar@7.5.13, tslog@^4.10.2, typebox@1.1.34, undici@8.1.0, web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:21+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] startup stages: runId=535e59a7-3725-41a5-9d8f-192554c2592d sessionId=2f2bb953-5c8e-4b45-9b09-6362597e14ea phase=attempt-dispatch totalMs=16391 stages=workspace:0ms@0ms,runtime-plugins:8822ms@8822ms,hooks:0ms@8822ms,model-resolution:1631ms@10453ms,auth:3481ms@13934ms,context-engine:0ms@13934ms,attempt-dispatch:2457ms@16391ms
07:58:34+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13132,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"41a9a242-f763-42ff-81b7-475f7e1e24e1","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52877,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52877->127.0.0.1:18789"} closed before connect conn=03e8aa7e-6da0-4844-a631-54bb9db2ab76 peer=127.0.0.1:52877->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
07:58:34+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13135,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"b2b10f69-ec1c-423c-ba0d-e49464e5f4ae","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52876,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52876->127.0.0.1:18789"} closed before connect conn=fad6ab54-89e1-44dc-a706-8922d4445f68 peer=127.0.0.1:52876->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
07:58:43+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=535e59a7-3725-41a5-9d8f-192554c2592d sessionId=2f2bb953-5c8e-4b45-9b09-6362597e14ea phase=stream-ready totalMs=21686 stages=workspace-sandbox:7ms@7ms,skills:0ms@7ms,core-plugin-tools:10272ms@10279ms,bootstrap-context:109ms@10388ms,bundle-tools:1067ms@11455ms,system-prompt:4172ms@15627ms,session-resource-loader:1935ms@17562ms,agent-session:0ms@17562ms,stream-setup:4124ms@21686ms
gateway connect failed: Error: gateway closed (1000):
07:58:57+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] startup stages: runId=e683d965-83b7-44f6-8484-af47484c8ad3 sessionId=1311d35c-8716-4f64-8fc1-896e77d73e49 phase=attempt-dispatch totalMs=10240 stages=workspace:0ms@0ms,runtime-plugins:2ms@2ms,hooks:0ms@2ms,model-resolution:4381ms@4383ms,auth:3466ms@7849ms,context-engine:0ms@7849ms,attempt-dispatch:2391ms@10240ms
07:59:16+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=e683d965-83b7-44f6-8484-af47484c8ad3 sessionId=1311d35c-8716-4f64-8fc1-896e77d73e49 phase=stream-ready totalMs=19607 stages=workspace-sandbox:9ms@9ms,skills:0ms@9ms,core-plugin-tools:8913ms@8922ms,bootstrap-context:4ms@8926ms,bundle-tools:878ms@9804ms,system-prompt:4151ms@13955ms,session-resource-loader:1580ms@15535ms,agent-session:0ms@15535ms,stream-setup:4072ms@19607ms
07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=fb0f9cfd-84c3-4187-ae3b-e9cf0522d618 peer=127.0.0.1:52889->127.0.0.1:18789 remote=127.0.0.1
07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=59aae525-421e-49cc-b179-86df25b89a38 peer=127.0.0.1:52890->127.0.0.1:18789 remote=127.0.0.1
07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21365,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"1613f8c4-59b5-472e-89cc-2443d438f74c","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52890,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52890->127.0.0.1:18789","handshakeMs":21235} closed before connect conn=59aae525-421e-49cc-b179-86df25b89a38 peer=127.0.0.1:52890->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1000 reason=n/a
07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21370,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"3bcb1846-a875-495f-9066-769c14b96202","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52889,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52889->127.0.0.1:18789","handshakeMs":21238} closed before connect conn=fb0f9cfd-84c3-4187-ae3b-e9cf0522d618 peer=127.0.0.1:52889->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1000 reason=n/a
07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000):
07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000):
07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000):
07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000):
07:59:24+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ logs.tail 709ms conn=63a91fbe…4a91 id=f3e5e3ab…5bb8
07:59:24+00:00 warn diagnostic {"subsystem":"diagnostic"} liveness warning: reasons=event_loop_delay,cpu interval=30s eventLoopDelayP99Ms=2520.8 eventLoopDelayMaxMs=8925.5 eventLoopUtilization=0.866 cpuCoreRatio=1.038 active=0 waiting=0 queued=0
07:59:54+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=bce0ff38-5df3-4690-99c8-d3e959496571 sessionId=148e8dff-d673-43d2-b40f-aa8117be4d37 phase=stream-ready totalMs=19641 stages=workspace-sandbox:11ms@11ms,skills:0ms@11ms,core-plugin-tools:8870ms@8881ms,bootstrap-context:192ms@9073ms,bundle-tools:838ms@9911ms,system-prompt:4128ms@14039ms,session-resource-loader:1566ms@15605ms,agent-session:0ms@15605ms,stream-setup:4036ms@19641ms
07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=ff0d9bb0-d25a-4037-95e7-62700e2ae696 peer=127.0.0.1:52910->127.0.0.1:18789 remote=127.0.0.1
07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=6bfda6d5-e544-4277-b3f9-d2a5d8cdc3e4 peer=127.0.0.1:52911->127.0.0.1:18789 remote=127.0.0.1
07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21281,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"d952e812-7c53-4824-8c43-413f0296d03b","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52911,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52911->127.0.0.1:18789","handshakeMs":21279} closed before connect conn=6bfda6d5-e544-4277-b3f9-d2a5d8cdc3e4 peer=127.0.0.1:52911->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21286,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"f061173b-88c8-43a4-8026-13f019651fca","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52910,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52910->127.0.0.1:18789","handshakeMs":21283} closed before connect conn=ff0d9bb0-d25a-4037-95e7-62700e2ae696 peer=127.0.0.1:52910->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

I don't know if it was before 2026.04.24, that's the point where I have noticed it.

I think a lot of the tickets currently open have a similar problem but they see/show only one side of the problem.

plugin-runtime-deps, event_loop and gateway connection problems occur on every openclaw interaction / session (re)start

Steps to reproduce

I have setup openclaw fresh, added my memories from a previous installation (on a M1 Mac) and got similar results

Expected behavior

Messages should return in a reasonable time, without warnings in the log, without restarting gateway, without constantly reinstalling dependency deps.

Actual behavior

The System feels unstable, unreliable, slow and does not feels working as expected atm.

I have a lot of log messages like shown below.

When I ask my openclaw to identify why it has a gateway connection error it told me the times it needed:

  • core-plugin-tools: ~8200ms (8+ seconds!)
  • system-prompt: ~3800ms
  • stream-setup: ~3700ms

Well, if every action in Openclaw tries to install a lot of packages, before it can work, I can imagine why everything is slow.

My openclaw summarized it for me:

In the last 12h (overnight - no one was using the system and the system had nothing to do) the system tried to install 42 dependencies 933 times. I don't know how npm handles a situation if another process tries to do the same action, but maybe here is the source of the problem?

If I try to ask my openclaw to analyze the problem it tells me, that the cache-key will never hit:

// In buildCacheKey():
const bundledRuntimeDepsMode = params.installBundledRuntimeDeps === false 
 ? "skip-runtime-deps" 
 : "install-runtime-deps"; // ← DEFAULT, if not explicitly false

And after that the code does

// In loadOpenClawPlugins():
if (shouldLoadModules && shouldInstallBundledRuntimeDeps && candidate.origin === "bundled") {
 // for EACH Plugin-Load → staging + install
 installDeps(installParams); // "staging bundled runtime deps..."
}

And he told me, that there is no "check if plugin dependencies are already installed" kinda code. I am using glm-5.1. So if it totally hallucinated, I am sorry for the confusion.

OpenClaw version

2026.04.29

Operating system

macOS (Darwin 25.4.0, arm64)

Install method

Curl with bash as the documentation said

Model

ollama/glm-5.1

Provider / routing chain

Openclaw -> ollama

Additional provider/model setup details

No response

Logs, screenshots, and evidence

07:57:30+00:00 info plugins {"subsystem":"plugins"} [plugins] runway staging bundled runtime deps (42 specs): @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:57:30+00:00 info plugins {"subsystem":"plugins"} [plugins] runway installed bundled runtime deps in 3ms: @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:57:40+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] startup stages: runId=3222c89b-1113-439d-80f6-d18e5fa821fb sessionId=206838dc-b862-47a3-b428-db93826770db phase=attempt-dispatch totalMs=16378 stages=workspace:0ms@0ms,runtime-plugins:8679ms@8679ms,hooks:0ms@8679ms,model-resolution:1621ms@10300ms,auth:3475ms@13775ms,context-engine:1ms@13776ms,attempt-dispatch:2602ms@16378ms
07:57:54+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13805,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"16c6ac15-6c59-4b63-9387-0106bfd86bff","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52867,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52867->127.0.0.1:18789"} closed before connect conn=a86b93d5-9ddd-4481-b0cc-19c17227225b peer=127.0.0.1:52867->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
07:57:54+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13808,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"9579e7a8-6c2d-4720-8b16-fa0dc42f7780","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52866,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52866->127.0.0.1:18789"} closed before connect conn=5ab3357a-2339-480c-92f5-71fdb3c25621 peer=127.0.0.1:52866->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
07:57:59+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=3222c89b-1113-439d-80f6-d18e5fa821fb sessionId=206838dc-b862-47a3-b428-db93826770db phase=stream-ready totalMs=19413 stages=workspace-sandbox:11ms@11ms,skills:0ms@11ms,core-plugin-tools:8794ms@8805ms,bootstrap-context:10ms@8815ms,bundle-tools:886ms@9701ms,system-prompt:4108ms@13809ms,session-resource-loader:1555ms@15364ms,agent-session:0ms@15364ms,stream-setup:4049ms@19413ms

07:58:05+00:00 info plugins {"subsystem":"plugins"} [plugins] acpx staging bundled runtime deps (42 specs): @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:05+00:00 info plugins {"subsystem":"plugins"} [plugins] acpx installed bundled runtime deps in 3ms: @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:06+00:00 info plugins {"subsystem":"plugins"} [plugins] bonjour staging bundled runtime deps (42 specs): @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:06+00:00 info plugins {"subsystem":"plugins"} [plugins] bonjour installed bundled runtime deps in 5ms: @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:07+00:00 info plugins {"subsystem":"plugins"} [plugins] document-extract staging bundled runtime deps (42 specs): @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:07+00:00 info plugins {"subsystem":"plugins"} [plugins] document-extract installed bundled runtime deps in 4ms: @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:11+00:00 info plugins {"subsystem":"plugins"} [plugins] runway staging bundled runtime deps (42 specs): @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:11+00:00 info plugins {"subsystem":"plugins"} [plugins] runway installed bundled runtime deps in 3ms: @agentclientprotocol/[email protected], @agentclientprotocol/[email protected], @clack/prompts@^1.2.0, @homebridge/ciao@^1.3.7, @lydell/[email protected], @mariozechner/[email protected], @mariozechner/[email protected], @modelcontextprotocol/[email protected], @mozilla/readability@^0.6.0, @tencent-connect/qqbot-connector@^1.1.0, @zed-industries/[email protected], [email protected], ajv@^8.20.0, chokidar@^5.0.0, commander@^14.0.3, croner@^10.0.1, dotenv@^17.4.2, [email protected], global-agent@^4.1.3, https-proxy-agent@^9.0.0, jiti@^2.6.1, json5@^2.2.3, jszip@^3.10.1, linkedom@^0.18.12, [email protected], [email protected], mpg123-decoder@^1.0.3, node-edge-tts@^1.2.10, openai@^6.34.0, pdfjs-dist@^5.7.284, [email protected], [email protected], silk-wasm@^3.7.1, [email protected], [email protected], tslog@^4.10.2, [email protected], [email protected], web-push@^3.6.7, ws@^8.20.0, yaml@^2.8.3, zod@^4.3.6
07:58:21+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] startup stages: runId=535e59a7-3725-41a5-9d8f-192554c2592d sessionId=2f2bb953-5c8e-4b45-9b09-6362597e14ea phase=attempt-dispatch totalMs=16391 stages=workspace:0ms@0ms,runtime-plugins:8822ms@8822ms,hooks:0ms@8822ms,model-resolution:1631ms@10453ms,auth:3481ms@13934ms,context-engine:0ms@13934ms,attempt-dispatch:2457ms@16391ms
07:58:34+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13132,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"41a9a242-f763-42ff-81b7-475f7e1e24e1","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52877,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52877->127.0.0.1:18789"} closed before connect conn=03e8aa7e-6da0-4844-a631-54bb9db2ab76 peer=127.0.0.1:52877->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
07:58:34+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"handshake":"pending","durationMs":13135,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"b2b10f69-ec1c-423c-ba0d-e49464e5f4ae","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52876,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52876->127.0.0.1:18789"} closed before connect conn=fad6ab54-89e1-44dc-a706-8922d4445f68 peer=127.0.0.1:52876->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
07:58:43+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=535e59a7-3725-41a5-9d8f-192554c2592d sessionId=2f2bb953-5c8e-4b45-9b09-6362597e14ea phase=stream-ready totalMs=21686 stages=workspace-sandbox:7ms@7ms,skills:0ms@7ms,core-plugin-tools:10272ms@10279ms,bootstrap-context:109ms@10388ms,bundle-tools:1067ms@11455ms,system-prompt:4172ms@15627ms,session-resource-loader:1935ms@17562ms,agent-session:0ms@17562ms,stream-setup:4124ms@21686ms
gateway connect failed: Error: gateway closed (1000):
07:58:57+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] startup stages: runId=e683d965-83b7-44f6-8484-af47484c8ad3 sessionId=1311d35c-8716-4f64-8fc1-896e77d73e49 phase=attempt-dispatch totalMs=10240 stages=workspace:0ms@0ms,runtime-plugins:2ms@2ms,hooks:0ms@2ms,model-resolution:4381ms@4383ms,auth:3466ms@7849ms,context-engine:0ms@7849ms,attempt-dispatch:2391ms@10240ms
07:59:16+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=e683d965-83b7-44f6-8484-af47484c8ad3 sessionId=1311d35c-8716-4f64-8fc1-896e77d73e49 phase=stream-ready totalMs=19607 stages=workspace-sandbox:9ms@9ms,skills:0ms@9ms,core-plugin-tools:8913ms@8922ms,bootstrap-context:4ms@8926ms,bundle-tools:878ms@9804ms,system-prompt:4151ms@13955ms,session-resource-loader:1580ms@15535ms,agent-session:0ms@15535ms,stream-setup:4072ms@19607ms
07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=fb0f9cfd-84c3-4187-ae3b-e9cf0522d618 peer=127.0.0.1:52889->127.0.0.1:18789 remote=127.0.0.1
07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=59aae525-421e-49cc-b179-86df25b89a38 peer=127.0.0.1:52890->127.0.0.1:18789 remote=127.0.0.1
07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21365,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"1613f8c4-59b5-472e-89cc-2443d438f74c","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52890,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52890->127.0.0.1:18789","handshakeMs":21235} closed before connect conn=59aae525-421e-49cc-b179-86df25b89a38 peer=127.0.0.1:52890->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1000 reason=n/a
07:59:18+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21370,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"3bcb1846-a875-495f-9066-769c14b96202","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52889,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52889->127.0.0.1:18789","handshakeMs":21238} closed before connect conn=fb0f9cfd-84c3-4187-ae3b-e9cf0522d618 peer=127.0.0.1:52889->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1000 reason=n/a
07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000):
07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000):
07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000):
07:59:18+00:00 error gateway connect failed: Error: gateway closed (1000):
07:59:24+00:00 info gateway/ws {"subsystem":"gateway/ws"} ⇄ res ✓ logs.tail 709ms conn=63a91fbe…4a91 id=f3e5e3ab…5bb8
07:59:24+00:00 warn diagnostic {"subsystem":"diagnostic"} liveness warning: reasons=event_loop_delay,cpu interval=30s eventLoopDelayP99Ms=2520.8 eventLoopDelayMaxMs=8925.5 eventLoopUtilization=0.866 cpuCoreRatio=1.038 active=0 waiting=0 queued=0
07:59:54+00:00 warn agent/embedded {"subsystem":"agent/embedded"} [trace:embedded-run] prep stages: runId=bce0ff38-5df3-4690-99c8-d3e959496571 sessionId=148e8dff-d673-43d2-b40f-aa8117be4d37 phase=stream-ready totalMs=19641 stages=workspace-sandbox:11ms@11ms,skills:0ms@11ms,core-plugin-tools:8870ms@8881ms,bootstrap-context:192ms@9073ms,bundle-tools:838ms@9911ms,system-prompt:4128ms@14039ms,session-resource-loader:1566ms@15605ms,agent-session:0ms@15605ms,stream-setup:4036ms@19641ms
07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=ff0d9bb0-d25a-4037-95e7-62700e2ae696 peer=127.0.0.1:52910->127.0.0.1:18789 remote=127.0.0.1
07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} handshake timeout conn=6bfda6d5-e544-4277-b3f9-d2a5d8cdc3e4 peer=127.0.0.1:52911->127.0.0.1:18789 remote=127.0.0.1
07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21281,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"d952e812-7c53-4824-8c43-413f0296d03b","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52911,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52911->127.0.0.1:18789","handshakeMs":21279} closed before connect conn=6bfda6d5-e544-4277-b3f9-d2a5d8cdc3e4 peer=127.0.0.1:52911->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a
07:59:55+00:00 warn gateway/ws {"subsystem":"gateway/ws"} {"cause":"handshake-timeout","handshake":"failed","durationMs":21286,"lastFrameType":"req","lastFrameMethod":"connect","lastFrameId":"f061173b-88c8-43a4-8026-13f019651fca","host":"127.0.0.1:18789","remoteAddr":"127.0.0.1","remotePort":52910,"localAddr":"127.0.0.1","localPort":18789,"endpoint":"127.0.0.1:52910->127.0.0.1:18789","handshakeMs":21283} closed before connect conn=ff0d9bb0-d25a-4037-95e7-62700e2ae696 peer=127.0.0.1:52910->127.0.0.1:18789 remote=127.0.0.1 fwd=n/a origin=n/a host=127.0.0.1:18789 ua=n/a code=1005 reason=n/a

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The issue is likely caused by the repeated installation of bundled runtime dependencies, which can be mitigated by setting installBundledRuntimeDeps to false or implementing a check to avoid redundant installations.

Guidance

  1. Review the buildCacheKey function: Ensure that the cache key is correctly generated to avoid unnecessary reinstallations of dependencies.
  2. Implement a check for existing dependencies: Before installing bundled runtime dependencies, verify if they are already installed to prevent redundant installations.
  3. Set installBundledRuntimeDeps to false: If possible, set this parameter to false to skip the installation of bundled runtime dependencies.
  4. Monitor the system's performance: Keep an eye on the system's performance and adjust the installation process as needed to prevent slowdowns.

Example

// In loadOpenClawPlugins():
if (shouldLoadModules && shouldInstallBundledRuntimeDeps && candidate.origin === "bundled") {
  // Check if dependencies are already installed before installing
  const dependenciesInstalled = checkDependenciesInstalled(installParams);
  if (!dependenciesInstalled) {
    installDeps(installParams); // "staging bundled runtime deps..."
  }
}

Notes

The provided logs indicate that the system is attempting to install dependencies repeatedly, which may be causing performance issues. However, without more information about the system's configuration and the specific requirements of the dependencies, it is difficult to provide a more detailed solution.

Recommendation

Apply a workaround by setting installBundledRuntimeDeps to false or implementing a check to avoid redundant installations, as this is likely to mitigate the issue.

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

Messages should return in a reasonable time, without warnings in the log, without restarting gateway, without constantly reinstalling dependency deps.

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]: System very buggy, unstable and slow since at least v2026.4.24 [1 comments, 2 participants]