Skip to content

[Bug]: Regression after upgrading from 2026.4.23 to 2026.4.26: delayed reply delivery and websocket/control-ui/browser stalls in NAS Docker environment #73421

Closed

Description

@realistic-guy

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

  1. Run OpenClaw 2026.4.26 in the affected NAS Docker environment.
  2. Use the gateway normally with active control-ui/websocket/browser paths.
  3. Send messages and observe reply latency.
  4. 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/recovery

Impact 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.

Activity

  1. clawsweeper commented on Apr 28, 2026

    @clawsweeper
    Contributor

    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:

    • Validate 2026.4.23, 2026.4.26, and current main or the next release in the affected NAS Docker or VPS/nginx environment with timestamped node.list, browser.request, WebChat reconnect, Slack/Telegram delivery, and event-loop health traces.
    • If code changes are made, run targeted tests for the touched surfaces, likely including 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.
    • For release validation, confirm whether the first shipped tag after v2026.4.26 contains the dist-mirror cache and [AI-assisted] fix(plugins): reduce startup provider registry reloads #73853 provider-discovery mitigations.

    What I checked:

    • Fresh multi-user regression report: The issue body reports 2026.4.26 regressions with node.list calls taking 23-79s, browser.request UNAVAILABLE after about 27s, WebSocket handshake timeouts, WebChat disconnects, Slack pong timeouts, and delayed delivery; two non-maintainer commenters reported similar symptoms, including a VPS/nginx case.
    • Current main has an adjacent fix that references this issue: The 2026.4.27 changelog says packaged bundled runtime dist-mirror preparation is memoized so constrained Docker/VPS installs avoid repeated root scans before chat turns, and it references this issue, but the entry says Refs rather than Fixes. (CHANGELOG.md:66, fef42acda046)
    • Runtime dist-mirror cache exists on main: Current main skips repeated bundled runtime dist-root mirroring once a packaged mirror is marked prepared, while deliberately avoiding this cache for source checkouts. (src/plugins/bundled-runtime-dist-mirror-cache.ts:10, fef42acda046)
    • Regression coverage for the mirror cache: The bundled runtime root test exercises two bundled plugins and asserts the dist root is scanned once, showing coverage for the repeated-root-scan mitigation. (src/plugins/bundled-runtime-root.test.ts:220, fef42acda046)
    • Startup provider-discovery mitigation exists: Gateway startup prewarm now keeps provider discovery metadata-only, scopes discovery to the configured provider, and applies a startup timeout, matching the [AI-assisted] fix(plugins): reduce startup provider registry reloads #73853 direction the maintainer mentioned as a possible improvement. (src/gateway/server-startup-post-attach.ts:201, fef42acda046)
    • Reported WebSocket signatures remain live code paths: The Gateway still has the preauth handshake timeout timer and logs the same closed-before-connect/webchat-disconnected signatures, so the observed surface remains active and needs validation under load. (src/gateway/server/ws-connection.ts:328, fef42acda046)

    Likely related people:

    • brokemac79: Authored merged [AI-assisted] fix(plugins): reduce startup provider registry reloads #73853, which the maintainer linked as possibly improving this issue by reducing startup/provider-discovery work in Gateway hot paths. (role: recent related PR author; confidence: medium; commits: e5e6fe1d52d8, #73853; files: src/gateway/server-startup-post-attach.ts, src/agents/models-config.providers.implicit.ts, src/plugins/provider-discovery.runtime.ts)
    • HemantSudarshan: Local blame for the current inspected main tree points to db69510 for the dist-mirror cache, startup prewarm mitigation, WebSocket timeout handling, and event-loop health files; the commit is broad, so this is a routing hint rather than sole ownership. (role: current-main local blame owner; confidence: medium; commits: db6951088a19; files: src/plugins/bundled-runtime-dist-mirror-cache.ts, src/plugins/bundled-runtime-root.ts, src/gateway/server-startup-post-attach.ts)
    • vincentkoc: Current changelog credits adjacent Gateway event-loop diagnostics and accepted-agent-run scheduling work, which are relevant to validating and instrumenting the reported stalls. (role: adjacent gateway diagnostics/runtime owner; confidence: low; commits: db6951088a19; files: src/gateway/server/event-loop-health.ts, src/gateway/server-methods/agent.ts, docs/gateway/diagnostics.md)
    • sallyom: Commented that [AI-assisted] fix(plugins): reduce startup provider registry reloads #73853 may improve current main and asked affected users to test main or the next release, making them a useful maintainer routing contact for follow-up validation. (role: recent maintainer triage; confidence: low)

    Remaining risk / open question:

    • No live Synology NAS Docker or VPS/nginx reproduction was run, so current-main behavior under the reported load remains unverified.
    • The adjacent fixes are after v2026.4.26 and are not in a shipped tag from the local containment check, so release-user validation is still pending.
    • The current fixes may reduce provider/plugin startup cost but do not yet prove all reported symptoms are gone across Slack delivery, node.list, browser.request, WebChat reconnects, and general event-loop responsiveness.

    Codex review notes: model gpt-5.5, reasoning high; reviewed against fef42acda046.

  2. antoniusfelix commented on Apr 28, 2026

    @antoniusfelix

    i have same problem too. now i downgrading to 25-04 version

  3. jkobject commented on Apr 28, 2026

    @jkobject

    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:

    [gateway/ws] closed before connect cause=handshake-timeout handshakeMs=12688 durationMs=16859 code=1000
    [gateway/ws] closed before connect cause=handshake-timeout handshakeMs=14107 durationMs=18924 code=1000
    ...
    [gateway/ws] webchat connected conn=936edcfe  ← success after ~6 minutes
    

    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.

  4. sallyom commented on Apr 29, 2026

    @sallyom
    Contributor

    Thanks for the detailed report. This may be improved on current main by #73853, which reduced gateway/provider-discovery work in startup/runtime hot paths. If possible, please test on main or the next release and report back.

  5. realistic-guy commented on Apr 30, 2026

    @realistic-guy
    Author

    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:

    • node.list is back in the normal range (sub-second in the observed run)
    • browser.request is also returning normally again
    • the original broad “reply delivery slows because internal gateway hot paths are stalling” pattern looks substantially reduced compared with 2026.4.26
    • That said, I still observed one startup-adjacent stall in this newer run:
    • models.list, chat.history, and sessions.list each took ~32s once
    • at the same time there was a webchat disconnected code=1006
    • Slack also showed ping/pong timeout and a socket reconnect around that window
    • So from my side:
    • the original regression reported here looks improved enough to close
    • but there may still be a narrower remaining startup / event-loop / websocket issue worth tracking separately if it continues

    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.

  6. locked as resolved and limited conversation to collaborators on May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions