Conversation
- 新增功能: 扩展 `get_tool_usage_ranking` API 返回数据维度 * 数据库查询逻辑更新,SQL 语句新增 `SUM(duration_ms) as total_dur` 聚合计算 * API 返回值元组结构由 `(func_name, call_count, avg_duration_ms)` 变更为包含第四个元素 `total_duration_ms` - 重构优化: 同步更新 UI 展示层以适配新数据结构 * `src/console/ui/widgets/stats_tab.py` 中 `DataTable` 列定义增加 "Total Time" * 渲染循环解包逻辑调整为接收 `total_dur` 参数并格式化显示为毫秒字符串
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.
get_tool_usage_rankingAPI 返回数据维度SUM(duration_ms) as total_dur聚合计算(func_name, call_count, avg_duration_ms)变更为包含第四个元素total_duration_mssrc/console/ui/widgets/stats_tab.py中DataTable列定义增加 "Total Time"total_dur参数并格式化显示为毫秒字符串