openclaw - 💡(How to fix) Fix [Bug]: CLI Local Commands Hang Indefinitely in OpenClaw 4.5 [1 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#62400Fetched 2026-04-08 03:04:48
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

CLI local commands (skills check/list, help) hang indefinitely after execution, consuming 90%+ CPU and never exiting.

Root Cause

Root cause identified:​ Child process (openclaw-skills) fails to close active handles (ChildProcess + 2 Sockets) after completing work, preventing Node.js event loop from exiting. Issue persists after removing all third-party plugins.

Fix Action

Fix / Workaround

Workaround:​ Use Gateway Web UI or RPC-based commands (config get, status)

Code Example

# Process tree showing hanging child processes
$ ps aux | grep openclaw
park     351226  94.3  6.8 698212 682MB ?   Sl   15:20  21:45 openclaw-skills
park     351412  94.4  8.0 800124 800MB ?   Sl   15:22  19:12 openclaw-skills
park     351688  94.5  8.4 840256 840MB ?   Sl   15:24  17:33 openclaw-skills

# Active handles preventing exit
$ node -e "console.log(process._getActiveHandles().length)"
3
$ node -e "console.log(process._getActiveRequests().length)"
0
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

CLI local commands (skills check/list, help) hang indefinitely after execution, consuming 90%+ CPU and never exiting.

Steps to reproduce

Install OpenClaw 2026.4.5 on Linux/WSL2

Run: openclaw skills check

Observe: Command hangs forever (doesn't exit with 0 code)

Verify: Check processes with ps aux | grep openclawshows multiple openclaw-skillsprocesses at ~94% CPU

Expected behavior

Local CLI commands should execute and exit with code 0 upon completion, as in previous OpenClaw versions (4.4.x).

Actual behavior

Commands hang indefinitely, requiring SIGKILL (10s timeout) to terminate. Background openclaw-skillszombie processes accumulate, each consuming 90-95% CPU.

OpenClaw version

2026.4.5

Operating system

Linux (WSL2/Ubuntu)

Install method

npm global (npm install -g openclaw@latest)

Model

minimax/opus

Provider / routing chain

openclaw->minimax

Additional provider/model setup details

No response

Logs, screenshots, and evidence

# Process tree showing hanging child processes
$ ps aux | grep openclaw
park     351226  94.3  6.8 698212 682MB ?   Sl   15:20  21:45 openclaw-skills
park     351412  94.4  8.0 800124 800MB ?   Sl   15:22  19:12 openclaw-skills
park     351688  94.5  8.4 840256 840MB ?   Sl   15:24  17:33 openclaw-skills

# Active handles preventing exit
$ node -e "console.log(process._getActiveHandles().length)"
3
$ node -e "console.log(process._getActiveRequests().length)"
0

Impact and severity

Affected users/systems:​ All users running OpenClaw 4.5 CLI local commands on Linux/WSL2

Severity:​ High (blocks CLI functionality, causes resource exhaustion)

Frequency:​ Always (100% reproducible)

Consequence:​ Users cannot use skills check/listor helpcommands; zombie processes consume all CPU

Additional information

Last known good version:​ 2026.4.4

First known bad version:​ 2026.4.5

Workaround:​ Use Gateway Web UI or RPC-based commands (config get, status)

Root cause identified:​ Child process (openclaw-skills) fails to close active handles (ChildProcess + 2 Sockets) after completing work, preventing Node.js event loop from exiting. Issue persists after removing all third-party plugins.

extent analysis

TL;DR

The most likely fix is to address the issue with child processes failing to close active handles in the OpenClaw 2026.4.5 version.

Guidance

  • Investigate the changes made between OpenClaw versions 2026.4.4 and 2026.4.5 to identify the cause of the child process handle closure issue.
  • Verify that the problem is indeed related to the child process (openclaw-skills) by checking the process tree and active handles using commands like ps aux | grep openclaw and node -e "console.log(process._getActiveHandles().length)".
  • Consider downgrading to version 2026.4.4 as a temporary workaround, given that it is identified as the last known good version.
  • Review the Node.js event loop documentation to understand how active handles can prevent the process from exiting and explore potential solutions to close these handles properly.

Example

No specific code example can be provided without more details on the OpenClaw codebase, but ensuring that all child processes and sockets are properly closed after use is crucial. For instance, in a typical Node.js context, you might use childProcess.kill() or socket.destroy() to close resources, but the exact implementation depends on the OpenClaw code.

Notes

The issue seems to be specific to the OpenClaw 2026.4.5 version on Linux/WSL2, and the root cause is identified as the failure of child processes to close active handles. However, without access to the OpenClaw codebase, providing a precise fix is challenging.

Recommendation

Apply the workaround by using the Gateway Web UI or RPC-based commands until a fix for the child process handle closure issue in OpenClaw 2026.4.5 is available, as this version causes significant resource exhaustion and blocks CLI functionality.

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

Local CLI commands should execute and exit with code 0 upon completion, as in previous OpenClaw versions (4.4.x).

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]: CLI Local Commands Hang Indefinitely in OpenClaw 4.5 [1 participants]