Repository navigation
chore(gateway): cover client transport defaults - #118798
Conversation
ee5dca2 to
6535e1d
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 2:04 PM ET / 18:04 UTC. ClawSweeper reviewWhat this changesAdds a QA Lab scenario and a real-local-WebSocket test suite covering Gateway client request, handshake, reconnect, tick-watch, and unbounded-request defaults. Merge readinessKeep this maintainer-authored draft open for normal review. The branch adds focused real-WebSocket regression coverage for public Gateway client defaults that current synthetic watchdog tests do not exercise at the same boundary; no concrete correctness or security defect was found in the patch. Priority: P3 Review scores
Verification
How this fits togetherGateway clients connect to the Gateway over WebSocket, complete a challenge and hello handshake, then enforce request, reconnect, and tick-watch timers. This QA scenario exercises that public client-to-transport boundary and records ownership of the resulting regression coverage. flowchart LR
A[Gateway client] --> B[Local WebSocket server]
B --> C[Challenge and hello handshake]
C --> D[Transport timer policy]
D --> E[Request timeout and reconnect]
D --> F[Tick watchdog and close]
E --> G[QA regression scenario]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceTests +368, Other +29. Total +397 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain this narrowly scoped real-WebSocket regression scenario, obtain current-head QA/Testbox evidence, and land it without changing Gateway runtime behavior. Do we have a high-confidence way to reproduce the issue? Yes, at source level: the proposed test drives the public GatewayClient against a local WebSocket server and deterministically advances the relevant timers. This read-only review did not execute the test. Is this the best way to solve the issue? Yes. Existing watchdog tests use a synthetic harness, while this patch adds a focused real-WebSocket boundary check without duplicating or changing the runtime policy owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a67c52611e57. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
6535e1d to
4d6129d
Compare
|
ClawSweeper rank-up move disposition:
No production code changed. |
|
Current-head CI baseline comparison:
The PR changes only |
4d6129d to
61c0e04
Compare
* origin/main: test(ui): add shell and PWA primary QA proof (#118788) test(qa): cover CLI distribution workflows (#118948) chore(i18n): refresh native locales (#118883) test(qa): prove plugin tool ownership in gateway flow (#118958) docs: correct onboarding risk flags and Google Chat credential shapes (#118936) fix(imessage): honor explicitly enabled accounts during startup (#118944) test(gateway): cover client transport defaults (#118798) fix(signal): normalize accounts during noninteractive setup (#118932) fix(msteams): enable channels for federated environment credentials (#118931) fix(openai): enforce final transcript bounds before callback delivery (#118928) test(tasks): cover plugin-managed flows (#118919) # Conflicts: # qa/scenarios/runtime/docker-package-install.yaml
…-worker-update-20260803 * origin/main: (48 commits) test(ui): add shell and PWA primary QA proof (#118788) test(qa): cover CLI distribution workflows (#118948) chore(i18n): refresh native locales (#118883) test(qa): prove plugin tool ownership in gateway flow (#118958) docs: correct onboarding risk flags and Google Chat credential shapes (#118936) fix(imessage): honor explicitly enabled accounts during startup (#118944) test(gateway): cover client transport defaults (#118798) fix(signal): normalize accounts during noninteractive setup (#118932) fix(msteams): enable channels for federated environment credentials (#118931) fix(openai): enforce final transcript bounds before callback delivery (#118928) test(tasks): cover plugin-managed flows (#118919) test(agents): prove process control roundtrip (#118843) test(qa): add memory redaction boundary coverage (#118916) fix(kilocode): model discovery overstates the usable context window (#118868) fix(media): isolate generated-provider text from delivery directives (#118780) test(gateway): add node control-plane QA coverage (#118784) fix(config): reject unsupported diagnostics otel grpc (#93087) fix(providers): recognize configured media credentials across provider boundaries (#118761) refactor: delete dead post-landing plugin/hooks scaffolding (#118920) fix(cron): deliver child results after heartbeat-only parent responses (#118743) ...
What Problem This Solves
The documented Gateway client transport defaults had no single executable QA
owner at the public client and real WebSocket boundary. Drift in request,
challenge, reconnect, or tick-watch behavior could therefore escape the
repo-backed coverage portfolio.
Why This Change Was Made
Adds one native Vitest QA scenario using the public
GatewayClientagainst areal local
WebSocketServer. Fake time starts only after the socket isestablished, and the change does not modify production behavior.
User Impact
No runtime behavior changes. Maintainers gain regression proof for the
30-second request timeout, 15-second challenge watchdog, capped exponential
reconnect schedule, server-advertised tick policy, tick-timeout close code, and
unbounded-request keepalive behavior.
Evidence
61c0e04486db3ef3233120f8dbde126df826289b.SHA: gateway-client package build; 14 package files / 209 tests; focused E2E
5/5; private QA build; and the declared QA suite. Provider
blacksmith-testbox; leasetbx_01kz4p8arck0zeq7ntzw8txh7p; runhttps://github.com/openclaw/openclaw/actions/runs/30852015166; QA evidence.artifacts/qa-e2e/suite-msdpn1lv-36a09652/qa-evidence.json.gateway.client-transport-defaults.pnpm check:changedgate, including typecheck, lint, import cycles,formatting, and guards.
oxfmt --check;git diff --checkpasses.+0/-0; test+368/-0; QA scenario metadata+29/-0.ClawSweeper rank-up move disposition: the requested current-head QA scenario
and Testbox package proof are complete on the frozen final head above.
AI-assisted: yes. The implementation follows a maintainer-reviewed,
single-ID test-only scope.