openclaw - ✅(Solved) Fix exec tool: SIGKILL when calling any openclaw CLI subcommand (v2026.4.8) [1 pull requests, 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#63124Fetched 2026-04-09 07:58:13
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Participants
Timeline (top)
cross-referenced ×2commented ×1labeled ×1

All openclaw CLI subcommands invoked via exec tool are killed with SIGKILL after output is produced. Gateway API works normally.

Root Cause

All openclaw CLI subcommands invoked via exec tool are killed with SIGKILL after output is produced. Gateway API works normally.

PR fix notes

PR #64072: fix(process): settle Windows supervisor waits from exit state

Description (problem / solution / changelog)

Summary

Fix the Windows supervisor child adapter so wait() resolves after the process exits even when close lags or needs the stdio fallback path.

Fixes #63124

Why

Windows CLI and exec runs could print output, then never finish because the supervisor kept waiting on close. On timeout or cancellation, that surfaced as a later SIGKILL.

Test

  • pnpm test src/process/supervisor/adapters/child.test.ts
  • pnpm test src/process/supervisor/supervisor.test.ts

Changed files

  • CHANGELOG.md (modified, +1/-0)
  • src/process/supervisor/adapters/child.test.ts (modified, +49/-1)
  • src/process/supervisor/adapters/child.ts (modified, +74/-1)
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

All openclaw CLI subcommands invoked via exec tool are killed with SIGKILL after output is produced. Gateway API works normally.

Steps to reproduce

  1. OpenClaw 2026.4.8 running on Windows
  2. Use exec tool to run: openclaw version (or any openclaw subcommand)
  3. Command outputs normally but then immediately receives SIGKILL
  4. Example: exec openclaw doctor - output shows correctly then SIGKILL
  5. Gateway API calls work fine - only CLI via exec is affected

Expected behavior

openclaw CLI commands should exit normally with code 0 after completing, not be killed with SIGKILL

Actual behavior

Commands like openclaw doctor, openclaw version, openclaw gateway status all output correctly then immediately receive SIGKILL. The output appears in logs but the exec session is terminated. Gateway API calls (via gateway tool) work perfectly fine.

OpenClaw version

2026.4.8 (9ece252)

Operating system

Windows_NT 10.0.26200 (x64), Node.js v24.14.0

Install method

No response

Model

minimax/MiniMax-M2.7

Provider / routing chain

minimax:cn (direct)

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

Investigate the exec tool configuration or implementation to identify why it is sending a SIGKILL signal to OpenClaw CLI subcommands after they produce output.

Guidance

  • Verify if the issue persists when running OpenClaw CLI subcommands directly without the exec tool to isolate the problem.
  • Check the exec tool's documentation or source code to see if there are any settings or options that could be causing it to send a SIGKILL signal after command execution.
  • Compare the behavior of the exec tool with other command execution methods to determine if this is a specific issue with the exec tool or a more general problem.
  • Test if the issue is specific to the OpenClaw version 2026.4.8 or if it also occurs with previous versions.

Example

No specific code example is provided as the issue seems to be related to the interaction between the exec tool and OpenClaw CLI, and without more information about the exec tool's implementation, it's difficult to provide a relevant code snippet.

Notes

The fact that Gateway API calls work normally suggests that the issue is specific to the CLI or the exec tool, rather than a general problem with OpenClaw.

Recommendation

Apply workaround: Investigate alternative command execution methods or tools that do not send a SIGKILL signal after command execution, as the root cause of the issue seems to be related to the exec tool's behavior.

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

openclaw CLI commands should exit normally with code 0 after completing, not be killed with SIGKILL

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING