mirror of
https://github.com/openai/codex.git
synced 2026-09-08 15:50:34 +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
51 lines
1.9 KiB
Rust
51 lines
1.9 KiB
Rust
mod experimental_api;
|
|
mod export;
|
|
mod protocol;
|
|
pub mod rpc;
|
|
mod schema_fixtures;
|
|
|
|
pub use experimental_api::*;
|
|
pub use export::GenerateTsOptions;
|
|
pub use export::generate_internal_json_schema;
|
|
pub use export::generate_json;
|
|
pub use export::generate_json_with_experimental;
|
|
pub use export::generate_ts;
|
|
pub use export::generate_ts_with_options;
|
|
pub use export::generate_types;
|
|
pub use protocol::common::*;
|
|
pub use protocol::event_mapping::*;
|
|
pub use protocol::item_builders::*;
|
|
pub use protocol::thread_history::*;
|
|
pub use protocol::thread_history_projection::*;
|
|
pub use protocol::v1::ApplyPatchApprovalParams;
|
|
pub use protocol::v1::ApplyPatchApprovalResponse;
|
|
pub use protocol::v1::ClientInfo;
|
|
pub use protocol::v1::ConversationGitInfo;
|
|
pub use protocol::v1::ConversationSummary;
|
|
pub use protocol::v1::ExecCommandApprovalParams;
|
|
pub use protocol::v1::ExecCommandApprovalResponse;
|
|
pub use protocol::v1::GetAuthStatusParams;
|
|
pub use protocol::v1::GetAuthStatusResponse;
|
|
pub use protocol::v1::GetConversationSummaryParams;
|
|
pub use protocol::v1::GetConversationSummaryResponse;
|
|
pub use protocol::v1::GitDiffToRemoteParams;
|
|
pub use protocol::v1::GitDiffToRemoteResponse;
|
|
pub use protocol::v1::GitSha;
|
|
pub use protocol::v1::InitializeCapabilities;
|
|
pub use protocol::v1::InitializeParams;
|
|
pub use protocol::v1::InitializeResponse;
|
|
pub use protocol::v1::InterruptConversationResponse;
|
|
pub use protocol::v1::LoginApiKeyParams;
|
|
pub use protocol::v1::SandboxSettings;
|
|
pub use protocol::v1::Tools;
|
|
pub use protocol::v1::UserSavedConfig;
|
|
pub use protocol::v2::*;
|
|
pub use rpc::*;
|
|
pub use schema_fixtures::SchemaFixtureOptions;
|
|
#[doc(hidden)]
|
|
pub use schema_fixtures::generate_typescript_schema_fixture_subtree_for_tests;
|
|
pub use schema_fixtures::read_schema_fixture_subtree;
|
|
pub use schema_fixtures::read_schema_fixture_tree;
|
|
pub use schema_fixtures::write_schema_fixtures;
|
|
pub use schema_fixtures::write_schema_fixtures_with_options;
|