openclaw - 💡(How to fix) Fix [Bug]: CLI hooks enable times out / SIGKILL on Windows [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#70451Fetched 2026-04-24 05:57:57
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

Root Cause

Consistent with #64306: CLI hangs in ensureCliPluginRegistryLoaded() during bootstrap, which deadlocks on Windows.

Fix Action

Fix / Workaround

Attempted Workaround

Copied hook handler manually to ~/.openclaw/hooks/self-improvement-handler.js (Node module, exports a handler function).

RAW_BUFFERClick to expand / collapse

Bug Description

On Windows (OpenClaw 2026.4.21), running openclaw hooks enable self-improvement hangs and is killed by SIGKILL after ~60 seconds.

All CLI commands except --help and --version hang for 60+ seconds. This is consistent with issue #64306 (CLI commands hang in ensureCliPluginRegistryLoaded).

Environment

  • OpenClaw: 2026.4.21
  • Node.js: v24.13.0
  • OS: Windows_NT 10.0.26200
  • Gateway: running on port 18789

Symptoms

  • openclaw hooks enable self-improvement → times out, SIGKILL
  • openclaw hooks list → times out, SIGKILL
  • openclaw hooks --help → same
  • openclaw status → times out, SIGKILL
  • Only openclaw --version and openclaw --help work

Attempted Workaround

Copied hook handler manually to ~/.openclaw/hooks/self-improvement-handler.js (Node module, exports a handler function).

The handler itself works when tested - it exports a valid function.

Root Cause

Consistent with #64306: CLI hangs in ensureCliPluginRegistryLoaded() during bootstrap, which deadlocks on Windows.

Questions

  1. Is there a config-only way to register hooks without using the CLI?
  2. Is there a direct API endpoint to manage hook registration?
  3. Any ETA on the fix for #64306?

extent analysis

TL;DR

The issue can be potentially mitigated by exploring alternative methods for registering hooks without relying on the CLI, which is currently hanging due to a known issue.

Guidance

  • Investigate if there's a configuration file or environment variable that can be used to register hooks without using the CLI, as a potential workaround for the hanging issue.
  • Look into the OpenClaw documentation or source code for any direct API endpoints or programmatic ways to manage hook registration, which could bypass the CLI altogether.
  • Since the handler itself works when tested, focus on finding an alternative registration method rather than modifying the handler.
  • Consider reaching out to the OpenClaw community or developers for an ETA on the fix for issue #64306, as it directly addresses the root cause of the problem.

Example

No specific code example can be provided without more details on OpenClaw's internal APIs or configuration options.

Notes

The provided information suggests that the issue is specific to the CLI and related to a known problem on Windows. Any solution or workaround will depend on the specifics of OpenClaw's architecture and configuration options, which are not fully detailed in the issue.

Recommendation

Apply workaround: Given the CLI hang issue is due to a known problem, exploring and applying a workaround such as a config-only registration method or using a direct API endpoint (if available) seems to be the most viable immediate solution.

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