mirror of
https://github.com/openai/codex.git
synced 2026-11-13 21:30:47 +00:00
## Why Replaying delivered assistant messages allocates new retained-source revisions instead of preserving those captured in live history. ## What changed - Capture retained sources when recording assistant deliveries, persist them in rollout metadata, and reuse their revisions during replay. - Add optional `next_item_ordinal` compaction metadata and a `next_model_id_ordinals` helper to recover item and window allocation positions from checkpoints and subsequent records. Ignore allocation metadata that refers to other threads. ## Testing Extend tests to compare live and replayed delivery sources, preserve revisions through an older reader's rewrite, and verify ordinal recovery from checkpoints and subsequent local items. GitOrigin-RevId: cfdeebe8e13b1700b34b9c98696880a90a99ace5
27 lines
614 B
TOML
27 lines
614 B
TOML
[package]
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
name = "codex-history"
|
|
version.workspace = true
|
|
|
|
[lib]
|
|
doctest = false
|
|
name = "codex_history"
|
|
path = "src/lib.rs"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
codex-protocol = { workspace = true }
|
|
codex-utils-absolute-path = { workspace = true }
|
|
codex-utils-model-facing-id = { workspace = true }
|
|
schemars = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
codex-protocol-test-support = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
pretty_assertions = { workspace = true }
|