mirror of
https://github.com/openai/codex.git
synced 2026-11-30 00:10:49 +00:00
## What changed Remove the legacy framed stdio protocol and its client and server. Local Codex launches the standalone host with `--listen grpc+stdio://`, which is also the host's default. The `stdio` and `stdio://` aliases now select gRPC over stdio. The `features.code_mode_host_grpc` setting is deprecated and ignored. Carry execution trace context into gRPC tool callbacks and notifications. Reject oversized execute requests before sending them so an encoding failure does not appear as a connection reset. ## Testing Exercise gRPC callback cancellation, trace context across overlapping yielded cells, and isolation of tool preload failures between sessions. Check that both values of the deprecated feature setting are ignored. GitOrigin-RevId: f5faff3901dc60958627f677f50cfad834291b69
22 lines
1.0 KiB
Rust
22 lines
1.0 KiB
Rust
//! Resource limits shared by the code-mode host, client, and runtime.
|
|
|
|
/// Maximum encoded gRPC message size.
|
|
pub const MAX_FRAME_BYTES: usize = 64 * 1024 * 1024;
|
|
|
|
/// Maximum number of unresolved delegate callbacks allowed per host connection.
|
|
pub const MAX_PENDING_DELEGATE_CALLS: usize = 4_096;
|
|
|
|
/// Callback capacity of clients that do not advertise the larger budget.
|
|
pub const LEGACY_MAX_PENDING_DELEGATE_CALLS: usize = 1_024;
|
|
|
|
/// Maximum aggregate text bytes retained per server-truncated observation.
|
|
pub const BOUNDED_OUTPUT_MAX_BYTES: usize = 1024 * 1024;
|
|
|
|
/// Maximum aggregate inline image bytes retained per server-truncated observation.
|
|
pub const BOUNDED_OUTPUT_MAX_IMAGE_BYTES: usize = 8 * 1024 * 1024;
|
|
|
|
/// Maximum aggregate encoded audio URL bytes retained per server-truncated observation.
|
|
/// Count the whole URL, including the data URL prefix and any base64 payload.
|
|
/// This leaves heuristic transport headroom but does not bound the complete response.
|
|
pub const BOUNDED_OUTPUT_MAX_AUDIO_BYTES: usize = 62 * 1024 * 1024;
|