fix(cowork): 工具时间线展示 Skill 名称并修复会话结束后状态残留#50
Open
liuxingyu521 wants to merge 1 commit into
Open
Conversation
…g status - Add skillName field to CoworkActivityToolItem, extract from Skill tool input - Show skill name as a violet badge in ToolRow component - Override Running status to Completed when session is done (completed/error) - Clear activeTool when session has ended
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.
变更说明
修复 Cowork 活动侧边栏工具时间线的两个问题:
1. Skill 名称展示
当工具调用为 Skill 类型时,从工具输入中提取 skill ID 并查找对应的 skill 名称,
在 ToolRow 中以紫色徽章展示。
2. 会话结束后状态残留
会话状态为
completed或error时,工具时间线中仍处于Running状态的项自动修正为
Completed,同时activeTool置空,避免会话已结束但工具仍显示"执行中"。变更文件
src/renderer/utils/coworkActivity.tsskillName字段,提取 Skill 工具输入中的 skill ID 并解析名称;会话结束时将 Running 状态修正为 Completedsrc/renderer/components/cowork/CoworkActivitySidebar.tsxsrc/renderer/utils/coworkStudio.test.tsskillName字段影响范围
仅影响 Cowork 活动侧边栏的工具时间线展示,不涉及数据流或 IPC 变更。
效果