From 1382c944ade165504ec6c66a0bd8241022232ffb Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 10:29:27 +0000 Subject: [PATCH] Document safe fallback for malformed websocket error payloads Co-authored-by: Theo Browne --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a91c1811a..42476e0c4d 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ Runtime command semantics: - In-flight renderer requests now surface unauthorized/replacement disconnect causes explicitly. - Renderer also fails in-flight requests immediately on websocket `error` events (without waiting for close) for faster feedback. - After reconnect, renderer ignores stale events from prior sockets (including provider and agent streams) to avoid cross-connection state corruption. -- Initial websocket connect failures now include detailed diagnostics from socket/open and constructor failures (including nested or string error payload messages when present). +- Initial websocket connect failures now include detailed diagnostics from socket/open and constructor failures (including nested or string error payload messages, with safe fallback for malformed/cyclic payloads). - Subsequent requests automatically reconnect after close/error disconnects, including idle (no pending request) error scenarios. - Renderer now proactively resets the websocket after request send failures, rejects any in-flight requests, and reconnects cleanly on later requests. - Send-failure request errors now include non-Error payload details when available (for clearer diagnostics).