fix: correct JSDoc - TaskToolExpanded calls getToolInfo, not VscodeSessionTurn

Per review: VscodeSessionTurn imports Message/UserMessageDisplay, while
TaskToolExpanded is the actual consumer of getToolInfo() and ToolInfo.
This commit is contained in:
Mark IJbema
2026-03-02 13:58:18 +01:00
parent 020012b3aa
commit 9f6b227de9
2 changed files with 3 additions and 3 deletions
@@ -1,7 +1,7 @@
/**
* getToolInfo() return shape contract test.
*
* VscodeSessionTurn calls getToolInfo() from @kilocode/kilo-ui/message-part
* TaskToolExpanded calls getToolInfo() from @kilocode/kilo-ui/message-part
* and relies on the returned ToolInfo having `icon` and `title` fields.
*
* This test verifies that the ToolInfo type exported from message-part.tsx
@@ -3,7 +3,7 @@
*
* The kilo-vscode webview overrides specific tool names in
* VscodeToolOverrides.tsx (e.g. "bash") and TaskToolExpanded.tsx (e.g. "task").
* VscodeSessionTurn also calls getToolInfo() from @kilocode/kilo-ui/message-part.
* VscodeSessionTurn imports Message/UserMessageDisplay from @kilocode/kilo-ui/message-part.
*
* This test verifies that the tool names we depend on are still registered
* in the upstream ToolRegistry (message-part.tsx). If upstream removes or
@@ -22,7 +22,7 @@ const MESSAGE_PART_FILE = path.join(MONOREPO_ROOT, "packages/ui/src/components/m
* Sources:
* - VscodeToolOverrides.tsx: "bash"
* - TaskToolExpanded.tsx: "task"
* - VscodeSessionTurn.tsx uses getToolInfo() which handles all of these
* - TaskToolExpanded.tsx uses getToolInfo() which handles all of these
*/
const TOOL_NAMES_WE_DEPEND_ON = ["bash", "task", "read", "write", "glob", "edit", "todowrite"]