mirror of
https://github.com/openai/codex.git
synced 2026-10-28 18:58:46 +00:00
## Why Paginated thread history needs durable ordering so consumers can process a rollout suffix without rebuilding all earlier history. ## What changed - Add optional, zero-based ordinals to `RolloutLine` records in paginated rollouts while leaving legacy rollout serialization unchanged. - Continue ordinals from the last valid record when appending or resuming, including after gaps or an incomplete tail, and reject overflow without appending. - Add a stateless `project_rollout_line` helper that maps canonical turn lifecycle and completed-item records into thread-history change sets. ## Testing - Cover ordinal assignment, legacy compatibility, resume and tail recovery, overflow handling, and thread-history projection for completed, failed, and interrupted turns. GitOrigin-RevId: 3a9bb6cd2a1f674a9f154342e96e9aa3d8330781
13 lines
320 B
Rust
13 lines
320 B
Rust
// Module declarations for the app-server protocol namespace.
|
|
// Exposes protocol pieces used by `lib.rs` via `pub use protocol::common::*;`.
|
|
|
|
pub mod common;
|
|
pub mod event_mapping;
|
|
pub mod item_builders;
|
|
mod mappers;
|
|
mod serde_helpers;
|
|
pub mod thread_history;
|
|
pub mod thread_history_projection;
|
|
pub mod v1;
|
|
pub mod v2;
|