From dda8abba23e0458eb27863ecdef2e94019550d57 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 06:11:26 +0000 Subject: [PATCH] Document websocket replacement close reason Co-authored-by: Theo Browne --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2df0da3a22..8f7fb5038b 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ Runtime command semantics: - Browser renderer talks through a typed `NativeApi` adapter over that WebSocket. - Runtime currently enforces a single active browser client (new client replaces old one). - When replaced by a newer connection, the previous active websocket is closed with code `4000`. +- Replacement closes use reason string `replaced-by-new-client` for deterministic client handling. - Runtime validates request payloads with shared Zod contracts. - Codex execution sandbox policy (`read-only`, `workspace-write`, `danger-full-access`) is still selected per session startup options. - Static HTML responses are served with `Cache-Control: no-store`; built `/assets/*` files are served with long-lived immutable cache headers.