mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
08cb633c06
## Why `log_remote_compact_failure` was the only consumer of the compact-request logging payload and most of the token-usage breakdown fields. Once that failure log is removed, keeping the surrounding carrier types leaves dead plumbing in the compaction path and context manager. ## What changed - Remove `log_remote_compact_failure`, `CompactRequestLogData`, and the v2 wrapper that only fed that log. - Let both remote compaction implementations return the original compaction error directly. - Replace `TotalTokenUsageBreakdown` with a narrow helper that returns only the remaining value needed by compaction analytics. - Keep `estimate_response_item_model_visible_bytes` private to the context manager implementation. ## Validation - `cargo check -p codex-core`
8 lines
198 B
Rust
8 lines
198 B
Rust
mod history;
|
|
mod normalize;
|
|
pub(crate) mod updates;
|
|
|
|
pub(crate) use history::ContextManager;
|
|
pub(crate) use history::is_user_turn_boundary;
|
|
pub(crate) use history::truncate_function_output_payload;
|