mirror of
https://github.com/openai/codex.git
synced 2026-05-06 06:12:59 +03:00
fix: ignore ghost snapshots in token consumption (#7638)
This commit is contained in:
@@ -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),
|
||||
..
|
||||
|
||||
Reference in New Issue
Block a user