Repository navigation
Description
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
After upgrading from OpenClaw 2026.4.23 to 2026.4.26, reply delivery became noticeably slower in my NAS Docker environment.
This does not look like a pure model-inference slowdown or a Slack-only issue.
The stronger signal is that internal websocket/control-ui/browser-related requests sometimes stall for tens of seconds, and during those stalls outbound reply delivery becomes delayed.
Slack made the issue easy to observe because Socket Mode logs are explicit, but the underlying problem appears broader than Slack itself.
Steps to reproduce
- Run OpenClaw 2026.4.26 in the affected NAS Docker environment.
- Use the gateway normally with active control-ui/websocket/browser paths.
- Send messages and observe reply latency.
- Check gateway logs during delayed replies.
Expected behavior
Reply delivery should remain prompt under normal use, without long internal websocket stalls, repeated handshake failures, browser request delays, or channel delivery interruptions.
Actual behavior
Reply delivery becomes slow or inconsistent.
At the same time, logs show:
- very slow internal websocket responses such as node.list taking tens of seconds
- websocket handshake timeout / closed-before-connect events
- webchat/control-ui disconnect/reconnect events
- browser request delays or failures
- outbound delivery delays, with Slack showing the clearest visible symptoms in logs
OpenClaw version
2026.4.26
Operating system
Docker on Synology NAS
Install method
Docker / compose-based NAS deployment
Model
openai-codex/gpt-5.4
Provider / routing chain
Slack DM -> OpenClaw Gateway -> embedded agent runtime -> OpenAI Codex model
Additional provider/model setup details
Relevant active plugin/runtime paths visible in logs:
- slack
- browser
- acpx
- memory-core
- telegram
- talk-voice
- device-pair
- bonjour
Logs, screenshots, and evidence
Relevant log patterns observed during delayed replies:
- ws handshake timeout
- closed before connect
- webchat disconnected code=1006
- node.list 24397ms
- node.list 23778ms
- node.list 79528ms
- browser.request 27813ms errorCode=UNAVAILABLE
- A pong wasn't received from the server before the timeout of 5000ms
- socket disconnected (disconnect). retry 1/12 in 2s
- Failed to send a message as the client has no active connection
- Failed to send a WebSocket message as the client is not ready
- delivered reply only after reconnect/recoveryImpact and severity
his affects normal interactive use because individual replies become noticeably delayed.
Observed impact:
- delayed reply delivery
- unstable websocket/control-ui behavior
- internal request stalls lasting tens of seconds
- downstream channel delivery interruptions during those stalls
Additional information
Why this looks like a regression:
- The same environment/workflow did not show this behavior on 2026.4.23.
- The issue appeared after upgrading to 2026.4.26.
- The strongest correlation is not raw model inference speed, but internal websocket/control-ui/browser-path stalls that coincide with delayed outbound replies.
Current suspicion:
A regression introduced or exposed by 2026.4.26 in the websocket/control-ui/browser path is stalling gateway event processing enough to delay reply delivery across normal use.
Slack is where the delivery problem was easiest to verify from logs, but the root issue does not appear to be Slack-specific.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Apr 28, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve.
Keep open. This is a fresh multi-user regression report, and current main has adjacent mitigations and diagnostics, including a runtime-deps cache change that explicitly references this issue and the merged provider-discovery hot-path work from #73853, but I did not find high-confidence proof that the combined WebSocket, Control UI, browser.request, node.list, and delayed delivery symptoms are fully fixed. The focused follow-up #74135 is still open, and the latest maintainer comment asks for current-main or next-release validation rather than treating the report as resolved.
Required change / next step:
This needs maintainer-directed reproduction or release validation before another autonomous fix PR; the likely root spans provider discovery, runtime-deps mirroring, Gateway WebSocket handling, browser/node RPCs, and event-loop behavior under load, with related work already merged and #74135 still open.
Security review:
Security review: Non-PR issue triage; no patch security review applies.
Review details
Best possible solution:
Keep this as an active regression until maintainers either confirm current main or the next release fixes the affected workloads, or explicitly mark #74135 as the canonical tracker. The best end state is a verified Gateway latency fix with traces comparing 2026.4.23, 2026.4.26, and current main under NAS Docker or reverse-proxy load, plus a targeted regression guard for the blocking path once identified.
Acceptance criteria:
pnpm test src/gateway/server-startup.test.ts src/gateway/server-startup-post-attach.test.ts src/plugins/bundled-runtime-root.test.ts src/plugins/provider-discovery.runtime.test.ts src/agents/models-config.providers.implicit.discovery-scope.test.ts.What I checked:
CHANGELOG.md:66, fef42acda046)src/plugins/bundled-runtime-dist-mirror-cache.ts:10, fef42acda046)src/plugins/bundled-runtime-root.test.ts:220, fef42acda046)src/gateway/server-startup-post-attach.ts:201, fef42acda046)src/gateway/server/ws-connection.ts:328, fef42acda046)Likely related people:
src/gateway/server-startup-post-attach.ts,src/agents/models-config.providers.implicit.ts,src/plugins/provider-discovery.runtime.ts)src/plugins/bundled-runtime-dist-mirror-cache.ts,src/plugins/bundled-runtime-root.ts,src/gateway/server-startup-post-attach.ts)src/gateway/server/event-loop-health.ts,src/gateway/server-methods/agent.ts,docs/gateway/diagnostics.md)Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against fef42acda046.
antoniusfelix commentedon Apr 28, 2026
i have same problem too. now i downgrading to 25-04 version
jkobject commentedon Apr 28, 2026
Same issue here on a VPS with nginx reverse proxy (non-Docker setup), OpenClaw 2026.4.26.
Setup: OpenClaw on loopback (127.0.0.1:18789), nginx as reverse proxy at
clawd.jkobject.com, client connecting from Chrome/macOS.Observed: After a page refresh, the WebSocket handshake fails repeatedly with
handshake-timeout(12–63 seconds each attempt) before eventually connecting. During a ~6-minute window, we saw 15+ failed attempts before a successful connection.Logs pattern:
This happens consistently after a browser refresh, especially when the gateway is under load (multiple long-running sessions active). The user sees the Control UI stuck in disconnected state for minutes before recovering.
sallyom commentedon Apr 29, 2026
Thanks for the detailed report. This may be improved on current
mainby #73853, which reduced gateway/provider-discovery work in startup/runtime hot paths. If possible, please test onmainor the next release and report back.realistic-guy commentedon Apr 30, 2026
The main regression appears improved on 2026.4.27, so I’m closing this for now.
What looks better now in the affected NAS Docker environment:
If that residual pattern keeps showing up on later versions, I can open a smaller follow-up issue with fresh logs focused just on that remaining stall.