mirror of
https://github.com/openai/codex.git
synced 2026-09-06 15:29:32 +00:00
## What changed - Add `HistoryPosition` to identify a source thread and an exclusive rollout prefix by ordinal and JSONL byte offset. - Add optional `history_base` metadata to `SessionMeta` so a thread can record an inherited prefix of another paginated rollout. - Default missing `history_base` metadata to `None` and omit it when unset to preserve compatibility with existing rollout metadata. ## Testing - Verify that legacy session metadata without `history_base` deserializes with no inherited history position. GitOrigin-RevId: 3b2b07a2dfee793d3b37b0a60529f856f167dbc1
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.