fix: ignore ghost snapshots in token consumption (#7638)

This commit is contained in:
jif-oai
2025-12-05 13:57:24 +00:00
committed by GitHub
parent b8eab7ce90
commit e91bb6b947

View File

@@ -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),
..