Lightweight coding agent that runs in your terminal
Rust
fix: ignore ghost snapshots in token consumption (#7638)
jif-oaie91bb6b94781
diff --git a/codex-rs/core/src/context_manager/history.rs b/codex-rs/core/src/context_manager/history.rsindex b9a9c58f63..9b75c836ab 100644--- a/codex-rs/core/src/context_manager/history.rs+++ b/codex-rs/core/src/context_manager/history.rs@@ -87,6 +87,7 @@ impl ContextManager {let items_tokens = self.items.iter().fold(0i64, |acc, item| {acc + match item {+ ResponseItem::GhostSnapshot { .. } => 0,ResponseItem::Reasoning {encrypted_content: Some(content),..