mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
cbfd2a37cc
Two fixes: 1. Include trailing tool output in the total context size calculation. Otherwise when checking whether compaction should run we ignore newly added outputs. 2. Trim trailing tool output/tool calls until we can fit the request into the model context size. Otherwise the compaction endpoint will fail to compact. We only trim items that can be reproduced again by the model (tool calls, tool call outputs).
7 lines
165 B
Rust
7 lines
165 B
Rust
mod history;
|
|
mod normalize;
|
|
|
|
pub(crate) use history::ContextManager;
|
|
pub(crate) use history::is_codex_generated_item;
|
|
pub(crate) use history::is_user_turn_boundary;
|