Skip to content

fix(vscode): correct cache token indicator#12211

Merged
marius-kilocode merged 2 commits into
mainfrom
supersede/cache-token-arrow-12170
Jul 14, 2026
Merged

fix(vscode): correct cache token indicator#12211
marius-kilocode merged 2 commits into
mainfrom
supersede/cache-token-arrow-12170

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

Supersedes #12170 by @mjnaderi. Full credit to Mohammad Javad Naderi for the original work; the feature commit was cherry-picked with original authorship preserved.

The original PR came from a fork, so the Visual Regression workflow could not auto-commit the updated screenshot baselines. This org-owned branch lets CI regenerate them.

Context

Cached tokens are cache-read prompt tokens, so they belong to the input side of token usage. The summary previously showed them with the output/down-arrow icon and placed them after output, which made the token flow misleading.

Implementation

The compact token summary now renders cache reads with the input/up-arrow icon and orders the values as fresh input, cached input, then generated output. A patch changeset is included because this corrects user-visible token usage information.

@marius-kilocode
marius-kilocode merged commit 8badfac into main Jul 14, 2026
25 checks passed
@marius-kilocode
marius-kilocode deleted the supersede/cache-token-arrow-12170 branch July 14, 2026 16:04
@kilo-code-bot

kilo-code-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • .changeset/fix-cache-token-arrow.md
  • packages/kilo-docs/public/img/screenshot-tests/kilo-vscode/visual-regression/chat/task-usage-collapsed-chromium-linux.png
  • packages/kilo-vscode/webview-ui/src/components/chat/TaskUsage.tsx

Reviewed by gpt-5.6-sol · Input: 86.5K · Output: 4.2K · Cached: 322.3K

Review guidance: REVIEW.md from base branch main

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.

3 participants