openclaw - 💡(How to fix) Fix [Bug]: QQ Bot streaming repeatedly falls back to static after 2026.4.29 update, likely related to dist pruning regression [2 comments, 3 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#75538Fetched 2026-05-02 05:33:27
View on GitHub
Comments
2
Participants
3
Timeline
14
Reactions
2
Author
Timeline (top)
mentioned ×5subscribed ×5commented ×2closed ×1

After updating to OpenClaw 2026.4.29, the QQ Bot channel exhibits severe instability: streaming responses repeatedly fall back to static mode (6+ times today), connection timeouts occur frequently, and the Gateway itself crashed once due to ERR_MODULE_NOT_FOUND. These symptoms appear consistent with the dist file pruning regression reported in #72042 (2026.4.24), and the Gateway timeout/connect issues described in #72904.

Error Message

[qqbot] connect error: gateway request timeout for connect [qqbot] [default] [qqbot:api] <<< Timeout after 30000ms [qqbot] [default] Connection failed: Request timeout [/gateway]: exceeded 30000ms

Root Cause

Gateway crash (root cause):

[openclaw] Unhandled promise rejection: Error [ERR_MODULE_NOT_FOUND]: 
Cannot find module '/usr/local/lib/node_modules/openclaw/dist/restart--yFw2sFh.js' 
imported from /usr/local/lib/node_modules/openclaw/dist/run-BDvpbL6X.js

Code Example

[qqbot] [default] [qqbot:default:streaming] acquireCallbackLock: locked to "deliver"
[qqbot] [default] [qqbot:default:streaming] onDeliver: deliver in control, falling back to static
[qqbot] [default] [qqbot:default:streaming] phase: idle → aborted (source: onDeliver, reason: deliver_arrived_first_fallback_to_static)
[qqbot] [default] Streaming API unavailable, falling back to static for this deliver

---

[qqbot] connect error: gateway request timeout for connect
[qqbot] [default] [qqbot:api] <<< Timeout after 30000ms
[qqbot] [default] Connection failed: Request timeout [/gateway]: exceeded 30000ms

---

[openclaw] Unhandled promise rejection: Error [ERR_MODULE_NOT_FOUND]: 
Cannot find module '/usr/local/lib/node_modules/openclaw/dist/restart--yFw2sFh.js' 
imported from /usr/local/lib/node_modules/openclaw/dist/run-BDvpbL6X.js

---

[qqbot] [default] Error 4009 (session timed out), will re-identify
RAW_BUFFERClick to expand / collapse

[Bug]: QQ Bot streaming repeatedly falls back to static and connection timeouts after 2026.4.29 update, likely related to dist file pruning regression

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

After updating to OpenClaw 2026.4.29, the QQ Bot channel exhibits severe instability: streaming responses repeatedly fall back to static mode (6+ times today), connection timeouts occur frequently, and the Gateway itself crashed once due to ERR_MODULE_NOT_FOUND. These symptoms appear consistent with the dist file pruning regression reported in #72042 (2026.4.24), and the Gateway timeout/connect issues described in #72904.

Steps to reproduce

  1. Update OpenClaw to 2026.4.29 (via npm / openclaw update)
  2. Use QQ Bot channel for normal C2C conversations
  3. Observe that streaming responses intermittently fall back to static mode
  4. Check logs for Timeout after 30000ms, connect error: gateway request timeout, and Streaming API unavailable, falling back to static

Timeline of events (2026-05-01)

Time (UTC+8)EventImpact
12:01Gateway request handler failed: ERR_MODULE_NOT_FOUND for status.link-channel-Cb-E2Aqb.jsStatus API broken
12:16Gateway crashed: Unhandled promise rejection: Cannot find module 'restart--yFw2sFh.js'Gateway exit code 1, systemd auto-restarted
12:33First Streaming API unavailable, falling back to static after restartQQ Bot streaming broken
12:35-13:57Multiple Timeout after 30000ms and connect error: gateway request timeoutConnection instability
13:49Error 4009 (session timed out), will re-identifyQQ session expired
15:04-15:30Repeated Gateway connection timeouts (7 occurrences)Intermittent connectivity
15:56Another Error 4009 (session timed out)Session re-authentication
16:07-16:085 consecutive streaming fallbacks within 1 minuteSevere degradation, user-visible slowdown
16:09Streaming resumed normally (phase: streaming → completed)Temporary recovery

Observed log patterns

Streaming fallback (6 total today):

[qqbot] [default] [qqbot:default:streaming] acquireCallbackLock: locked to "deliver"
[qqbot] [default] [qqbot:default:streaming] onDeliver: deliver in control, falling back to static
[qqbot] [default] [qqbot:default:streaming] phase: idle → aborted (source: onDeliver, reason: deliver_arrived_first_fallback_to_static)
[qqbot] [default] Streaming API unavailable, falling back to static for this deliver

Connection timeouts:

[qqbot] connect error: gateway request timeout for connect
[qqbot] [default] [qqbot:api] <<< Timeout after 30000ms
[qqbot] [default] Connection failed: Request timeout [/gateway]: exceeded 30000ms

Gateway crash (root cause):

[openclaw] Unhandled promise rejection: Error [ERR_MODULE_NOT_FOUND]: 
Cannot find module '/usr/local/lib/node_modules/openclaw/dist/restart--yFw2sFh.js' 
imported from /usr/local/lib/node_modules/openclaw/dist/run-BDvpbL6X.js

QQ session timeouts:

[qqbot] [default] Error 4009 (session timed out), will re-identify

Expected behavior

  • QQ Bot streaming should remain stable throughout the day
  • Gateway should not crash with ERR_MODULE_NOT_FOUND after update
  • Connection timeouts should be rare, not frequent

Actual behavior

  • Streaming fell back to static 6 times today (5 within 1 minute at peak)
  • 85+ error/warn/timeout/fallback log entries related to QQ Bot
  • Gateway crashed once due to missing dist file (restart--yFw2sFh.js)
  • Multiple 30-second API timeouts
  • QQ session expired and re-authenticated 3+ times

Related issues

  • #72042 — [Bug]: Gateway startup fails after update to 2026.4.24 — ERR_MODULE_NOT_FOUND, 1617 dist files missing from installed package (postinstall pruning bug)
    • Our crash (restart--yFw2sFh.js missing) matches this pattern exactly
  • #72904 — [Bug]: Gateway startup blocked by model pricing fetch timeout causing TUI connection failure
    • The gateway request timeout for connect pattern is similar

OpenClaw version

2026.4.29

Operating system

Ubuntu 24.04 (Linux 6.8.0-107-generic)

Node version

24.15.0

Install method

npm i -g openclaw

Channel

QQ Bot (official API, C2C)

Model

kimi-for-coding (kimi/kimi-for-coding)

Logs, screenshots, and evidence

Full journalctl output available. Key statistics:

  • 146 qqbot-related log lines mentioning "streaming"
  • 97 qqbot-related error/warn/timeout/fail log lines
  • Gateway restarted by systemd at 12:16 (PID 1876713 replacing crashed 1814471)

Additional context

  • The Gateway crash and subsequent restart appear to be the root cause of the QQ Bot instability
  • After systemd auto-restarted Gateway, QQ Bot reconnected but streaming was degraded
  • Session 4009 timeouts are normal QQ protocol behavior, but the frequency today was higher than usual
  • Other channels (openclaw-weixin) did not exhibit the same severity of issues

Impact and severity

  • Medium-High: Streaming fallback significantly degrades user experience (waiting for full response vs. real-time streaming)
  • Gateway crash is critical but systemd auto-recovery masked it
  • Connection timeouts may cause message loss or delayed delivery

extent analysis

TL;DR

The most likely fix for the QQ Bot streaming instability and connection timeouts is to revert to a previous version of OpenClaw or wait for a patch that addresses the dist file pruning regression.

Guidance

  • Verify that the issue is indeed related to the dist file pruning regression by checking the logs for ERR_MODULE_NOT_FOUND errors and comparing the symptoms to those described in #72042.
  • Consider reverting to OpenClaw version 2026.4.24 or earlier, as the issue seems to have been introduced in version 2026.4.29.
  • Monitor the Gateway logs for any signs of instability or crashes, and be prepared to restart the service if necessary.
  • Keep an eye on the QQ Bot session timeouts, as they may be related to the underlying issue, and consider adjusting the session timeout settings if possible.

Example

No code snippet is provided, as the issue seems to be related to a regression in the OpenClaw library rather than a specific code error.

Notes

The issue may be specific to the QQ Bot channel and the OpenClaw version 2026.4.29. Other channels, such as openclaw-weixin, do not seem to be affected. The Gateway crash and subsequent restart appear to be the root cause of the QQ Bot instability.

Recommendation

Apply a workaround by reverting to a previous version of OpenClaw, as the current version (2026.4.29) seems to be causing the instability. This should help mitigate the issue until a patch is released that addresses the dist file pruning regression.

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

  • QQ Bot streaming should remain stable throughout the day
  • Gateway should not crash with ERR_MODULE_NOT_FOUND after update
  • Connection timeouts should be rare, not frequent

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]: QQ Bot streaming repeatedly falls back to static after 2026.4.29 update, likely related to dist pruning regression [2 comments, 3 participants]