mirror of
https://github.com/openai/codex.git
synced 2026-11-13 21:30:47 +00:00
## Why Restoring model-facing ID sequences requires allocation ordinals alongside the rendered IDs. Responses API payloads still require string IDs. ## What changed - Add allocation metadata to `ResponseItemId` while keeping equality, hashing, and ordering based on the rendered ID. - Preserve optional `id_allocation` metadata in rollout items, inter-agent messages, compaction replacement history, and Guardian checkpoints. Continue accepting legacy string IDs. - Support structured context-window allocations alongside UUIDv7 strings, validate the `window` salt on restoration, and keep request metadata IDs as strings. ## Testing Add tests for allocation round trips, legacy ID compatibility, string-only raw response item IDs, and context-window allocation validation. GitOrigin-RevId: ce1fd964bde9a4e7c527432be99aea87ada30169
67 lines
1.7 KiB
Rust
67 lines
1.7 KiB
Rust
pub mod account;
|
|
mod agent_path;
|
|
pub mod auth;
|
|
mod context_window_id;
|
|
mod item_id_generator;
|
|
mod response_item_id;
|
|
mod response_usage;
|
|
mod sanitized_git_url;
|
|
mod session_id;
|
|
mod thread_id;
|
|
mod tool_name;
|
|
pub use agent_path::AgentPath;
|
|
pub use context_window_id::ContextWindowId;
|
|
pub use item_id_generator::ItemIdGenerator;
|
|
#[cfg(test)]
|
|
use item_id_generator::uuid_v7_item_id_generator_for_test;
|
|
pub use permission_profile_intersection::PermissionIntersectionError;
|
|
pub use permission_profile_intersection::intersect_effective_permission_profiles;
|
|
pub use response_item_id::ResponseItemId;
|
|
pub use response_item_id::ResponseItemIdAllocation;
|
|
pub use response_usage::ResponseUsageMetadata;
|
|
pub use sanitized_git_url::SanitizedGitUrl;
|
|
pub use session_id::SessionId;
|
|
pub use thread_id::RolloutId;
|
|
pub use thread_id::ThreadId;
|
|
pub use tool_name::DEFAULT_FUNCTION_NAMESPACE;
|
|
pub use tool_name::ToolName;
|
|
pub mod approvals;
|
|
pub mod capabilities;
|
|
mod codex_error_info;
|
|
pub mod config_types;
|
|
mod guardian_transcript;
|
|
pub use guardian_transcript::TranscriptFormat;
|
|
pub mod dynamic_tools;
|
|
mod environment;
|
|
pub mod error;
|
|
pub mod exec_output;
|
|
pub mod hooks;
|
|
pub mod items;
|
|
mod legacy_events;
|
|
pub mod local_media;
|
|
pub mod mcp;
|
|
pub mod mcp_approval_meta;
|
|
pub mod mcp_policy;
|
|
pub mod memory_citation;
|
|
mod memory_version;
|
|
pub use memory_version::MemoryVersion;
|
|
pub mod models;
|
|
pub mod network_policy;
|
|
pub mod num_format;
|
|
pub mod openai_models;
|
|
pub mod parse_command;
|
|
mod permission_profile_intersection;
|
|
mod permission_profile_snapshot;
|
|
pub mod permissions;
|
|
pub mod plan_tool;
|
|
pub mod protocol;
|
|
pub mod realtime;
|
|
pub mod request_permissions;
|
|
pub mod request_user_input;
|
|
pub mod review_format;
|
|
pub mod sandbox;
|
|
pub mod security_risk;
|
|
pub mod shell_environment;
|
|
pub mod turn_input;
|
|
pub mod user_input;
|