fix(acp): classify apply_patch as edit (#30564)

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

View File

@ -46,6 +46,7 @@ export function toToolKind(toolName: string): ToolKind {
return "fetch"
case "edit":
case "apply_patch":
case "patch":
case "write":
return "edit"

View File

@ -15,6 +15,7 @@ describe("acp tool conversion", () => {
expect(toToolKind("shell")).toBe("execute")
expect(toToolKind("webfetch")).toBe("fetch")
expect(toToolKind("edit")).toBe("edit")
expect(toToolKind("apply_patch")).toBe("edit")
expect(toToolKind("patch")).toBe("edit")
expect(toToolKind("write")).toBe("edit")
expect(toToolKind("grep")).toBe("search")