Skip to content

fix(chat): include cache-read tokens in context usage#1183

Open
qiontoo wants to merge 1 commit into
EKKOLearnAI:mainfrom
qiontoo:fix/chat-token-cache-read-display
Open

fix(chat): include cache-read tokens in context usage#1183
qiontoo wants to merge 1 commit into
EKKOLearnAI:mainfrom
qiontoo:fix/chat-token-cache-read-display

Conversation

@qiontoo

@qiontoo qiontoo commented May 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • include cacheReadTokens in the chat input context usage display
  • carry cache-read/cache-write usage through session summaries and live usage updates
  • add a regression test covering cached-token context display

Closes #838

Test Plan

  • npx vitest run tests/client/chat-input-token-cache.test.ts --reporter=dot
  • npx vue-tsc -b
  • npx tsc --noEmit -p packages/server/tsconfig.json
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

聊天上下文使用量只显示未缓存的 input_tokens,数值严重偏低

1 participant