openclaw - 💡(How to fix) Fix [Bug]: openclaw gateway shut down suddenly without prompt [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#61733Fetched 2026-04-08 02:55:15
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
3
Author
Timeline (top)
commented ×2labeled ×2subscribed ×2

openclaw gateway crashed suddenly.

Error Message

14:33:22+08:00 [openclaw] Unhandled promise rejection: Error: Agent listener invoked outside active run at Agent.processEvents (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/node_modules/@mariozechner/pi-agent-core/src/agent.ts:533:10) at file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/node_modules/@mariozechner/pi-agent-core/src/agent.ts:380:21 at Object.onUpdate (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/node_modules/@mariozechner/pi-agent-core/src/agent-loop.ts:539:7) at emitUpdate (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1524:8) at handleStdout (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1546:4) at Object.onSupervisorStdout [as onStdout] (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1610:3) at file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1007:21 at Socket.<anonymous> (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:568:4) at Socket.emit (node:events:508:20) at addChunk (node:internal/streams/readable:564:12)

Root Cause

openclaw gateway crashed suddenly.

Code Example

14:33:22+08:00 [openclaw] Unhandled promise rejection: Error: Agent listener invoked outside active run
at Agent.processEvents (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/node_modules/@mariozechner/pi-agent-core/src/agent.ts:533:10)
at file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/node_modules/@mariozechner/pi-agent-core/src/agent.ts:380:21
at Object.onUpdate (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/node_modules/@mariozechner/pi-agent-core/src/agent-loop.ts:539:7)
at emitUpdate (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1524:8)
at handleStdout (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1546:4)
at Object.onSupervisorStdout [as onStdout] (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1610:3)
at file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1007:21
at Socket.<anonymous> (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:568:4)
at Socket.emit (node:events:508:20)
at addChunk (node:internal/streams/readable:564:12)
RAW_BUFFERClick to expand / collapse

Bug type

Crash (process/app exits or hangs)

Beta release blocker

No

Summary

openclaw gateway crashed suddenly.

Steps to reproduce

1.start the newly updated version 4.5 again 2. maybe less than 10 minutes the gateway services shut down

Expected behavior

the first time appeared, and I first roll over the previous version 4.2.

Actual behavior

14:33:22+08:00 [openclaw] Unhandled promise rejection: Error: Agent listener invoked outside active run at Agent.processEvents (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/node_modules/@mariozechner/pi-agent-core/src/agent.ts:533:10) at file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/node_modules/@mariozechner/pi-agent-core/src/agent.ts:380:21 at Object.onUpdate (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/node_modules/@mariozechner/pi-agent-core/src/agent-loop.ts:539:7) at emitUpdate (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1524:8) at handleStdout (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1546:4) at Object.onSupervisorStdout [as onStdout] (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1610:3) at file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1007:21 at Socket.<anonymous> (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:568:4) at Socket.emit (node:events:508:20) at addChunk (node:internal/streams/readable:564:12)

OpenClaw version

2026.4.5

Operating system

Windows11

Install method

No response

Model

gpt5.4

Provider / routing chain

openclaw-clash proxy- webui - gpt 5.4

Additional provider/model setup details

No response

Logs, screenshots, and evidence

14:33:22+08:00 [openclaw] Unhandled promise rejection: Error: Agent listener invoked outside active run
at Agent.processEvents (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/node_modules/@mariozechner/pi-agent-core/src/agent.ts:533:10)
at file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/node_modules/@mariozechner/pi-agent-core/src/agent.ts:380:21
at Object.onUpdate (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/node_modules/@mariozechner/pi-agent-core/src/agent-loop.ts:539:7)
at emitUpdate (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1524:8)
at handleStdout (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1546:4)
at Object.onSupervisorStdout [as onStdout] (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1610:3)
at file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1007:21
at Socket.<anonymous> (file:///C:/Users/xudaz/AppData/Roaming/npm/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:568:4)
at Socket.emit (node:events:508:20)
at addChunk (node:internal/streams/readable:564:12)

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The OpenClaw gateway crash is likely due to an unhandled promise rejection, and rolling back to version 4.2 may serve as a temporary workaround.

Guidance

  1. Review the error message: The error "Agent listener invoked outside active run" suggests an issue with the agent's event processing, potentially related to the @mariozechner/pi-agent-core module.
  2. Check for updates or fixes: Look for any updates or patches for OpenClaw version 2026.4.5 that may address this issue.
  3. Verify the rollback: If rolling back to version 4.2, ensure that all dependencies and configurations are compatible with the older version.
  4. Monitor the application: After applying the workaround or fix, closely monitor the OpenClaw gateway for any further crashes or issues.

Example

No specific code example is provided, as the issue seems to be related to a specific module or version of OpenClaw.

Notes

The root cause of the issue is unclear, and the provided information does not specify any recent changes or updates that may have triggered the crash. Further investigation into the @mariozechner/pi-agent-core module and the OpenClaw version 2026.4.5 may be necessary to identify the root cause.

Recommendation

Apply the workaround by rolling back to version 4.2, as it has been reported to resolve the issue temporarily. This will allow for continued use of the OpenClaw gateway while a more permanent fix is investigated.

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 first time appeared, and I first roll over the previous version 4.2.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING