mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
Normalize user and tool-output images client-side when model metadata enables Responses Lite. Apply the transformation before history insertion and again during request construction for resumed sessions, preserving original bytes when no resize is needed and replacing only unprocessable images with bounded placeholder text. Share image decoding, resizing, and token-accounting helpers; enforce 1 GiB pathological-input limits; and apply the Responses pixel and patch budgets while keeping non-Responses-Lite behavior unchanged. Add unit and integration coverage for history insertion, request fallback, code-mode tool output, app-server user images, invalid data, resizing, and non-Lite URL forwarding.
codex-protocol
This crate defines the "types" for the protocol used by Codex CLI, which includes both "internal types" for communication between codex-core and codex-tui, as well as "external types" used with codex app-server.
This crate should have minimal dependencies.
Ideally, we should avoid "material business logic" in this crate, as we can always introduce Ext-style traits to add functionality to types in other crates.