openclaw - 💡(How to fix) Fix [Bug]: Gateway event-loop starvation blocks Feishu/Lark WebSocket when gh/curl/child-process hangs

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

Workaround

Manual gateway restart via:

openclaw gateway restart

Or WebUI → restart gateway

Code Example

gh auth refresh -h github.com -s delete_repo

---

openclaw gateway restart
RAW_BUFFERClick to expand / collapse

Describe the bug

A hanging child process (e.g., gh auth refresh waiting for browser authorization, or any long-running exec command) can block the entire Gateway event loop, causing the Feishu/Lark WebSocket connection to become unresponsive. The agent becomes unreachable from Feishu — messages are not received, reactions are not sent, and the only fix is a manual gateway restart.

To Reproduce

  1. Run a command that hangs waiting for user input, e.g.:

    gh auth refresh -h github.com -s delete_repo

    This spawns a child process that sits waiting for browser authorization indefinitely.

  2. While the process is hanging, try sending a message to the agent via Feishu.

  3. The message is never received by the agent. The gateway logs show no incoming Feishu events during this time.

  4. After a gateway restart (openclaw gateway restart), Feishu connectivity is restored immediately.

Expected behavior

The Gateway event loop should not be blocked by a hanging child process. Feishu WebSocket messages should still be processable even when other exec tasks are stalled.

Actual behavior

The entire Gateway event loop appears to starve when a child process hangs. Feishu WebSocket becomes completely unresponsive — no messages in, no reactions out.

Environment

  • OpenClaw version: 2026.4.1
  • OS: Ubuntu 24.04 on WSL2
  • Channel: Feishu (WebSocket mode, larksuite/openclaw-lark plugin)
  • Browser: Google Chrome 146.0.7680.153

Workaround

Manual gateway restart via:

openclaw gateway restart

Or WebUI → restart gateway

Related issues

  • #84903 A single stalled agent session blocks the entire Gateway event loop

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

The Gateway event loop should not be blocked by a hanging child process. Feishu WebSocket messages should still be processable even when other exec tasks are stalled.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING