fix: log websocket handshake phase#82029
Conversation
|
Thanks for the contribution. I reviewed the branch, and this PR is not a good landing base for OpenClaw. Close: the gateway handshake-phase idea is useful, but this branch is not a good landing base because it mixes the stated gateway logging fix with unrelated model-exhaustion session/config/provider-routing work and is currently conflicting. So I’m closing this PR rather than keeping an unmergeable branch open. A new narrow PR that carries only the useful part is welcome. Review detailsBest possible solution: Close this branch, keep the linked gateway issue open, and accept a narrow gateway-only replacement while model-exhaustion cooldowns remain in their dedicated PRs or product review path. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows current main still logs only coarse WebSocket handshake state/cause, and the PR diff clearly shows the mixed-scope config/session/provider changes. Is this the best way to solve the issue? No. A gateway phase tracker is a plausible fix direction, but this branch is not the best solution because it mixes unrelated model-cooldown state/config work and is currently conflicting. Security review: Security review cleared: No concrete security or supply-chain issue was found; the blockers are compatibility, session-state, provider-routing scope, and missing real behavior proof. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against f1b8827d20c8. |
|
Addressed the review notes: removed the unused model-health cooldown constant and moved |
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper applied the proposed close for this PR.
|
Adds a tracked websocket handshake phase so failures now include where the connection stalled.\n\nSummary:\n- track phase across upgrade, auth, session attach, and ready\n- include phase in close/timeout logs\n- add tests for phase logging and the handshake phase flow\n\nTests:\n- pnpm vitest src/gateway/server/ws-connection.test.ts src/gateway/server/ws-connection/message-handler.post-connect-health.test.ts\n\nCloses #79603