-
-
Notifications
You must be signed in to change notification settings - Fork 52.6k
Closed
Labels
staleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Description
On macOS, when the network is disconnected (e.g., closing the laptop lid or switching to battery mode without stable Wi-Fi), the Gateway process frequently crashes. This is caused by an Unhandled promise rejection in the Slack plugin (and potentially others).
Impact
Rapid consecutive crashes trigger the macOS launchd throttling mechanism, leading to the service being marked as "Not Loaded" or "Throttled", requiring manual intervention to restore the service.
Logs
2026-02-22T10:17:21.624+08:00 [openclaw] Unhandled promise rejection: Error: A request error occurred: Client network socket disconnected before secure TLS connection was established
at requestErrorWithOriginal (/opt/homebrew/lib/node_modules/openclaw/node_modules/@slack/web-api/src/errors.ts:82:5)
at WebClient.<anonymous> (/opt/homebrew/lib/node_modules/openclaw/node_modules/@slack/web-api/src/WebClient.ts:767:43)
at Generator.throw (<anonymous>)
at rejected (/opt/homebrew/lib/node_modules/openclaw/node_modules/@slack/web-api/dist/WebClient.js:39:65)
at processTicksAndRejections (node:internal/process/task_queues:104:5)
Expected Behavior
Plugins should catch network-related errors and implement a retry/backoff mechanism instead of allowing the entire process to exit.
Environment
- OS: macOS 15.4 (Sequoia)
- Node: v25.6.1
- OpenClaw Version: 2026.2.20
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
staleMarked as stale due to inactivityMarked as stale due to inactivity