openclaw - 💡(How to fix) Fix Long-running exec processes killed on session heartbeat timeout

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…

Fix Action

Fix / Workaround

Current Workaround

RAW_BUFFERClick to expand / collapse

Problem

When an agent starts a long-running exec process (e.g., data collection taking 15-30 minutes), the process is terminated with SIGTERM when the parent session's heartbeat times out. This happens even when the process output is still being produced.

Steps to Reproduce

  1. Start a long-running command via exec (e.g., a Python data pipeline that takes 20+ minutes)
  2. Wait for heartbeat timeout on the session
  3. Process receives SIGTERM and dies

Expected Behavior

Long-running exec processes should survive session heartbeat timeouts, or at minimum there should be an opt-in mechanism (e.g., detach: true option on exec) to decouple the process lifecycle from the session.

Current Workaround

Using nohup + pid file + log file pattern, but this is fragile and loses the nice integration with process tool (poll/log/write).

Environment

  • OpenClaw: 2026.5.3
  • OS: WSL2 Ubuntu
  • Channel: webchat

Impact

Any workflow involving long API-bound data collection or model training is unreliable. The process must be restarted multiple times before it can complete within a heartbeat window.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Long-running exec processes killed on session heartbeat timeout