mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
fix: ignore ghost snapshots in token consumption (#7638)
This commit is contained in:
committed by
GitHub
Unverified
parent
b8eab7ce90
commit
e91bb6b947
@@ -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