fix(acp): classify task as think (#30565)

This commit is contained in:
Shoubhit Dash 2026-06-03 18:55:55 +05:30 committed by GitHub
parent 89b26e8658
commit fc62b3dc48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,9 @@ export function toToolKind(toolName: string): ToolKind {
case "read":
return "read"
case "task":
return "think"
default:
return "other"
}

View File

@ -23,6 +23,7 @@ describe("acp tool conversion", () => {
expect(toToolKind("context7_resolve_library_id")).toBe("search")
expect(toToolKind("context7_get_library_docs")).toBe("search")
expect(toToolKind("read")).toBe("read")
expect(toToolKind("task")).toBe("think")
expect(toToolKind("custom_tool")).toBe("other")
})