fix(context): expose history tokens and remove leaked state files
Address remaining review feedback: 1) Add HistoryTokens field to ContextUsage/ContextStats, showing history-only token count in /context and frontend UI alongside SummarizeAtTokens so users can see the actual summarization trigger comparison. 2) Remove .codebuddy/github-contribute/ state files accidentally included in the PR.
This commit is contained in:
1 parent
b6030f054d
commit
7a7e205cc8
15 files changed
+25
-90
No files matched your search
@@ -78,6 +78,7 @@ function parseContextUsage(
|
||||
return {
|
||||
used_tokens: used,
|
||||
total_tokens: total,
|
||||
history_tokens: obj.history_tokens != null ? Number(obj.history_tokens) : undefined,
|
||||
compress_at_tokens: Number(obj.compress_at_tokens) || 0,
|
||||
summarize_at_tokens: obj.summarize_at_tokens != null ? Number(obj.summarize_at_tokens) : undefined,
|
||||
used_percent: Number(obj.used_percent) || 0,
|
||||
|
||||
Reference in new issue
Block a user