Visitar URL original
fix(acp): classify apply_patch as edit (#30564) · anomalyco/opencode@89b26e8 · GitHub
Skip to content

Commit 89b26e8

Browse files
authored
fix(acp): classify apply_patch as edit (#30564)
1 parent 5970f78 commit 89b26e8

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/opencode/src/acp/tool.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export function toToolKind(toolName: string): ToolKind {
4646
return "fetch"
4747

4848
case "edit":
49+
case "apply_patch":
4950
case "patch":
5051
case "write":
5152
return "edit"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ describe("acp tool conversion", () => {
1515
expect(toToolKind("shell")).toBe("execute")
1616
expect(toToolKind("webfetch")).toBe("fetch")
1717
expect(toToolKind("edit")).toBe("edit")
18+
expect(toToolKind("apply_patch")).toBe("edit")
1819
expect(toToolKind("patch")).toBe("edit")
1920
expect(toToolKind("write")).toBe("edit")
2021
expect(toToolKind("grep")).toBe("search")

0 commit comments

Comments
 (0)