fix(vscode): improve cost tooltip usability with many subagents#8786
Open
kilo-code-bot[bot] wants to merge 3 commits intomainfrom
Open
fix(vscode): improve cost tooltip usability with many subagents#8786kilo-code-bot[bot] wants to merge 3 commits intomainfrom
kilo-code-bot[bot] wants to merge 3 commits intomainfrom
Conversation
Show most recent subagent sessions on top (reverse chronological order) and aggregate older entries when more than 5 children exist, displaying them as a single summary line to keep the tooltip usable.
…y subagents Add two Storybook stories to cover the TaskHeader cost tooltip: - Few subagents (individual entries, reverse chronological) - Many subagents (with aggregated older sessions line)
| const older = children.slice(VISIBLE_CAP) | ||
| const sum = older.reduce((s, e) => s + e.cost, 0) | ||
| items.push(...recent) | ||
| items.push({ label: `${older.length} ${olderLabel}`, cost: sum }) |
Contributor
Author
There was a problem hiding this comment.
WARNING: This aggregation label cannot be localized correctly
This builds the final text by prefixing the count onto a translated suffix. That hardcodes English word order and skips singular/plural handling, so locales like German end up with incorrect strings such as 1 ältere Sitzungen, and languages that place the count elsewhere cannot translate this at all. Please move the full label into i18n (for example with *_one / *_other keys and {{count}}).
Contributor
Author
Code Review SummaryStatus: 1 Issues Found | Recommendation: Address before merge Overview
Fix these issues in Kilo Cloud Issue Details (click to expand)WARNING
Other Observations (not in diff)None. Files Reviewed (7 files)
Reviewed by gpt-5.4-20260305 · 418,850 tokens |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Fixes #8785
Built for Mark IJbema by Kilo for Slack