Skip to content

Commit fc62b3d

Browse files
authored
fix(acp): classify task as think (anomalyco#30565)
1 parent 89b26e8 commit fc62b3d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

packages/opencode/src/acp/tool.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ export function toToolKind(toolName: string): ToolKind {
6161
case "read":
6262
return "read"
6363

64+
case "task":
65+
return "think"
66+
6467
default:
6568
return "other"
6669
}

packages/opencode/test/acp/tool.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ describe("acp tool conversion", () => {
2323
expect(toToolKind("context7_resolve_library_id")).toBe("search")
2424
expect(toToolKind("context7_get_library_docs")).toBe("search")
2525
expect(toToolKind("read")).toBe("read")
26+
expect(toToolKind("task")).toBe("think")
2627
expect(toToolKind("custom_tool")).toBe("other")
2728
})
2829

0 commit comments

Comments
 (0)