Repository navigation
fix(signal): drain accepted websocket messages before shutdown - #118975
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
vincentkoc
added a commit
that referenced
this pull request
Aug 3, 2026
* origin/main: (90 commits) fix(googlechat): recover durable lanes after oversized attachments (#118986) test(qa): cover runtime telemetry evidence (#118950) fix(gateway): resolve SQLite usage details (#118918) test(cron): cover durable scheduler state (#118981) test(gateway): cover node exec approval relay (#118825) test(qa): add Active Memory recall coverage (#118963) test(qa): promote package-backed Docker artifact proof (#118826) test(qa): cover diagnostic event boundary (#118844) test(gateway): cover WebSocket runtime contracts (#118797) fix(signal): drain accepted websocket messages before shutdown (#118975) fix(plugins): remove stale load paths during uninstall (#118930) test(qa): cover bundled runtime discovery (#118922) chore(clawhub): cover plugin release policy contracts (#118971) test(qa): cover support export and stability (#118956) fix(feishu): enforce exact signed webhook request boundaries (#118758) feat(sms): add Twilio MMS support (#118664) test(gateway): prove TLS certificate pinning (#118812) test(qa): cover tool policy and sandbox gates (#118925) fix(cli): keep update dry-run state immutable (#118856) fix(scripts): honor last repeated CLI flag value (#118710) ... # Conflicts: # pnpm-workspace.yaml
vincentkoc
added a commit
that referenced
this pull request
Aug 3, 2026
…r-admin-20260803 * origin/main: (89 commits) fix(googlechat): align doctor policy ownership with canonical account configuration (#118972) test(tui): prove editor input through PTY (#118982) fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987) test(qa): cover health monitor and cache boundaries (#118961) fix(macos): restore dashboard frame double-click zoom (#118976) fix(googlechat): recover durable lanes after oversized attachments (#118986) test(qa): cover runtime telemetry evidence (#118950) fix(gateway): resolve SQLite usage details (#118918) test(cron): cover durable scheduler state (#118981) test(gateway): cover node exec approval relay (#118825) test(qa): add Active Memory recall coverage (#118963) test(qa): promote package-backed Docker artifact proof (#118826) test(qa): cover diagnostic event boundary (#118844) test(gateway): cover WebSocket runtime contracts (#118797) fix(signal): drain accepted websocket messages before shutdown (#118975) fix(plugins): remove stale load paths during uninstall (#118930) test(qa): cover bundled runtime discovery (#118922) chore(clawhub): cover plugin release policy contracts (#118971) test(qa): cover support export and stability (#118956) fix(feishu): enforce exact signed webhook request boundaries (#118758) ...
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 4, 2026
…law#118975) * fix(signal): drain accepted websocket messages before shutdown * test(signal): avoid returning timer handles from Promise executors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Real behavior proof
wssource confirms buffered frames are delivered before the final close event; the official REST adapter consumes received messages without acknowledgment or replay.Independent review adjudication
wsimplementation, a real delayed-upgrade localhost server, the production stream, and the full reconnect caller:{"rawWsEventOrder":["error:WebSocket was closed before the connection was established","close:1006"],"productionResults":[{"mode":"already-aborted","outcome":"resolved","removedAbortListeners":1},{"mode":"immediate-abort","outcome":"resolved","removedAbortListeners":1},{"mode":"during-handshake","outcome":"resolved","removedAbortListeners":1}],"reconnectMessages":[],"recoveringStatuses":0}The existing production socket error handler only logs; the subsequent close resolves the final event chain. No connection failure or retry occurs.
Inspectable actual WebSocket and SQLite durable-ingress proof
The before/after run uses an actual loopback WebSocket server, production
streamContainerEvents, the real Signal ingress monitor, and real per-account SQLite. The first write is briefly blocked to represent ordinary storage contention; sender identities are synthetic.{"phase":"before","framesDeliveredByServer":2,"callbacks":2,"dispatches":0,"persistedPending":1,"persistedIds":["[\"number:+15550001111\",1700000000001]"],"handlerFailures":1} {"phase":"after","framesDeliveredByServer":2,"dispatches":[1700000000001,1700000000002],"durable":[{"timestamp":1700000000001,"status":"completed"},{"timestamp":1700000000002,"status":"completed"}],"handlerFailures":0}Independent real opening-handshake cancellation controls using the actual installed WebSocket implementation confirm no connection-failure or reconnect regression:
{"mode":"already-aborted","outcome":"resolved","errorCount":1,"closed":true} {"mode":"during-handshake","outcome":"resolved","errorCount":1,"closed":true} {"runtime":"actual runSignalSseLoop","outcome":"resolved","connections":1,"reconnectMessages":[],"recoveringStatuses":0}The single socket error is the existing expected cancellation diagnostic; production error handling logs it and the subsequent close resolves normally. Full owner suite: 84 tests; client/adapter/native-ingress siblings: 124 tests.