Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. Reviewed September 18, 2026, 7:27 PM ET / 23:27 UTC (Revision 3). ClawSweeper reviewWhat this changesThe PR adds opening-handshake timeout text to CLI log-follow retry classification and consolidates retry-limit and recovery tests. Merge readiness⛔ Needs changes before merge - 2 items remain The prior duplicate-classification finding remains unresolved. Current main already handles this opening timeout through the shared transport adapter; the maintainer-authored, protected PR requires explicit disposition rather than automatic closure. Priority: P2 Review scores
Verification
How this fits togetherThe logs CLI polls the Gateway for log lines and decides whether to retry connection failures or stop. The shared WebSocket adapter normalizes connection errors before the CLI receives them. flowchart LR
A[Log follow command] --> B[Gateway RPC client]
B --> C[WebSocket connection]
C --> D[Normalize transport failure]
D --> E{Retry eligible?}
E -->|Yes, within limit| B
E -->|No| F[Print error and stop]
B --> G[Print log lines]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource -4, Tests -20. Total -24 across 2 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep timeout normalization in the WebSocket adapter and let log following consume typed transport errors, retaining only coverage that protects a real production path. Do we have a high-confidence way to reproduce the issue? No current-main failure is established: source tracing shows the opening timeout becomes an already-retried transport error, while the new tests bypass that conversion. No runtime tests were executed in this read-only review. Is this the best way to solve the issue? No. The existing adapter-level normalization is the narrower shared solution; consumer string matching duplicates it without establishing another reachable failure path. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9a57a35aaf3e. LabelsLabel 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
HistoryReview history (2 earlier review cycles) |
1fa5e9c to
796f328
Compare
|
Superseded by #146508, canonical commit 292e161. ClawSweeper's exact-head P1 is correct: this PR's plain-error tests injected after the normalization boundary and did not establish a remaining production defect. I verified unmodified main at 3acb23c, without this PR's change, using a session-owned dev Gateway on Linux in an isolated Testbox. The module chain is:
The shared adapter assigns Boundary proof command, with synthetic authentication, isolated pnpm openclaw gateway run --allow-unconfigured --bind loopback --port "$gateway_port"
pnpm openclaw logs --follow --json --interval 500 \
--limit 1000 --max-bytes 1000000 --timeout 60000 \
--url "ws://127.0.0.1:$proxy_port" --token "$synthetic_token"A TCP proxy accepted the follower's connection but withheld the HTTP WebSocket upgrade while I stopped and restarted the owned Gateway. The real
Ancestry (
The symptom reported on Discord on 2026.9.4 is explained by that version predating the canonical fix. Main and the checked 2026.9.5 release branch already handle it; this PR adds no needed production repair. Closure is pending a tooling blocker: the maintainer CLI rejected the PR state-change request before dispatch. No merge is needed. |
|
Closing as superseded by #146508 ( |
What Problem This Solves
Fixes
openclaw logs --followexiting when the Gateway connection fails withOpening handshake has timed out, as reported on Discord.User Impact
Log following reconnects after this transient handshake timeout and resumes output when the Gateway recovers. Repeated failures still stop after the existing eight retries; authentication and pairing failures keep their existing behavior.
Why This Change Was Made
The follow retry owner recognized typed transport errors and plain Gateway close/request-timeout errors, but omitted the plain timeout message emitted by the WebSocket client. This adds that exact message to the existing retry classification and consolidates duplicate retry-exhaustion test setup.
Evidence
node scripts/check-changed.mjspassed, including production and test typechecks, changed-file lint, line-count ratchets, dead-export scans, and repository guards.Rebased onto main
26c2f997d81b0745d0819ba803c185fde247b72d, which includes the unchanged-base declaration fix from #152028. The authored patch and commit message are unchanged:The stable patch IDs also match, so the existing scoped-clean P1 review stands. Exact-head CI for
796f328796877b4b19c4d3f99b4695094761944fis green in run 35404342779, completed successfully with 0 failing and 0 pending CI checks. REST verified the exact head and all 96 check records are completed without failures. No logs-PR CI jobs were rerun.Production LOC: +8/−12. Tests: +36/−56. This PR contains only the log-follow fix.