1 parent 89b26e8 commit fc62b3dCopy full SHA for fc62b3d
2 files changed
packages/opencode/src/acp/tool.ts
@@ -61,6 +61,9 @@ export function toToolKind(toolName: string): ToolKind {
61
case "read":
62
return "read"
63
64
+ case "task":
65
+ return "think"
66
+
67
default:
68
return "other"
69
}
packages/opencode/test/acp/tool.test.ts
@@ -23,6 +23,7 @@ describe("acp tool conversion", () => {
23
expect(toToolKind("context7_resolve_library_id")).toBe("search")
24
expect(toToolKind("context7_get_library_docs")).toBe("search")
25
expect(toToolKind("read")).toBe("read")
26
+ expect(toToolKind("task")).toBe("think")
27
expect(toToolKind("custom_tool")).toBe("other")
28
})
29
0 commit comments