openclaw - 💡(How to fix) Fix [Bug]: openclaw message send can hang indefinitely with no internal timeout, ignores parent SIGTERM [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#75895Fetched 2026-05-02 05:28:21
View on GitHub
Comments
1
Participants
2
Timeline
1
Reactions
2
Author
Timeline (top)
commented ×1

Error Message

  • Consider emitting a clear terminal error when delivery exceeds timeout, instead of spinning indefinitely.

Code Example

openclaw message send --channel telegram --target -1003908329114 --thread-id 7 --message "[Ramp Mia follow-up check] ..."

---

timeout 60 openclaw message send ...
RAW_BUFFERClick to expand / collapse

On 2026-05-01, a cron-side delivery call hung indefinitely and ignored normal external termination.

Incident detail:

  • Cron 01019527 invoked:
openclaw message send --channel telegram --target -1003908329114 --thread-id 7 --message "[Ramp Mia follow-up check] ..."
  • The process spun at ~74% CPU for 9+ minutes before being killed externally.
  • A retry was wrapped in:
timeout 60 openclaw message send ...
  • timeout did not successfully terminate it. PID 752244 continued for 6:54 minutes at ~64% CPU.

Impact:

Cron jobs that call openclaw message send are unsafe without timeout -s KILL ...; one stuck delivery can consume CPU and contribute to gateway/agent pileups.

Request:

  • Add an internal request timeout to the openclaw message send CLI. Default 30s would be reasonable.
  • Ensure the CLI responds promptly to SIGTERM so external supervisors like GNU timeout work.
  • Consider emitting a clear terminal error when delivery exceeds timeout, instead of spinning indefinitely.

extent analysis

TL;DR

Add an internal request timeout to the openclaw message send CLI and ensure it responds to SIGTERM to prevent indefinite hangs.

Guidance

  • Implement a default internal request timeout of 30 seconds in the openclaw message send CLI to prevent prolonged execution.
  • Modify the CLI to respond promptly to SIGTERM signals, allowing external supervisors like timeout to effectively terminate it.
  • Consider adding a feature to emit a clear terminal error when delivery exceeds the timeout, providing feedback instead of spinning indefinitely.
  • Use timeout -s KILL as a temporary workaround to ensure cron jobs do not consume excessive CPU resources.

Example

No code snippet is provided as the issue does not imply a specific code change, but rather a design or configuration adjustment.

Notes

The solution requires modifications to the openclaw message send CLI, which may involve changes to its underlying implementation or configuration. The exact steps for implementing these changes are not specified in the issue.

Recommendation

Apply a workaround by using timeout -s KILL with the openclaw message send CLI until an internal request timeout is implemented, to prevent CPU consumption and potential gateway/agent pileups.

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 [Bug]: openclaw message send can hang indefinitely with no internal timeout, ignores parent SIGTERM [1 comments, 2 participants]