From 8dd0ec52610b2751bd951ddbcbf3e60284cadeb3 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 11:33:41 +0000 Subject: [PATCH] Document websocket request id and method length bounds Co-authored-by: Theo Browne --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2c72cbfa2d..19083b02ac 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,7 @@ Runtime command semantics: - Runtime successful responses always include `result` (using `null` for void methods) to keep websocket envelopes schema-safe. - Websocket event envelopes are channel-typed (`provider:event`, `agent:output`, `agent:exit`) and validated against shared payload schemas. - Websocket protocol envelopes are strict (unexpected top-level fields are rejected) to keep RPC/event parsing deterministic. +- Websocket request envelope guards also cap request id/method lengths to bounded sizes for predictable parsing under load. - 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. - Static file success responses include `Accept-Ranges: bytes`, `Vary: Range`, deterministic `ETag` and `Last-Modified` validators, plus hardened browser headers (`X-Content-Type-Options`, `X-Frame-Options`, `Referrer-Policy`, `Cross-Origin-Resource-Policy`, `Cross-Origin-Opener-Policy`).