fix: differentiate cache label from cache size label in TaskHeader #7442
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes a UI issue where two different elements in the TaskHeader component both displayed "Cache" as their label, causing confusion.
Problem
Solution
cacheSizeto differentiate the cache size display from the cache token metricst("chat:task.cacheSize")for the byte size displayt("chat:task.cache")for the token metrics displayChanges
webview-ui/src/components/chat/TaskHeader.tsxto use the new translation keycacheSizetranslation to all language files inwebview-ui/src/i18n/locales/*/chat.jsonTesting
This minimal change preserves existing functionality while improving clarity in the UI.
Important
This PR differentiates cache token metrics and cache size labels in
TaskHeader.tsxby introducing a new translation keycacheSizeand updating all language files.TaskHeader.tsxby usingt("chat:task.cacheSize")for cache size.t("chat:task.cache")for cache token metrics.cacheSizetranslation key to all language files inwebview-ui/src/i18n/locales/*/chat.json.This description was created by
for 373839b. You can customize this summary. It will automatically update as commits are pushed.