Files
orca/src/shared/local-runtime-rpc-limits.ts
T
gsxdsmandNeil 219dca09d0 fix(cli): refuse oversized local requests before dispatch (#37734)
The CLI now measures the serialized runtime request against the shared
1 MiB local transport limit before writing any bytes. Oversized requests
fail with invalid_argument and requestSent=false instead of being cut off
by the server mid-frame, and the client skips mutation recovery for these
unsent requests so it never suggests resending the same payload.

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-11-05 18:08:51 -08:00

2 lines
63 B
TypeScript

export const MAX_LOCAL_RUNTIME_RPC_MESSAGE_BYTES = 1024 * 1024