diff options
| author | Filip <[email protected]> | 2025-11-05 18:26:28 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-05 11:26:28 -0600 |
| commit | 53998a2fedc55262aca8b049eacbed3d710a46e5 (patch) | |
| tree | 8d8971bb38043fee45286409fb676253254e87c9 | |
| parent | af7b9e77d1f68b66e4ec3c1dd79efccf6bb53b07 (diff) | |
| download | opencode-53998a2fedc55262aca8b049eacbed3d710a46e5.tar.gz opencode-53998a2fedc55262aca8b049eacbed3d710a46e5.zip | |
chore: remove unused patch tool from registry (to avoid accidental inclusions of it) (#3938)
| -rw-r--r-- | packages/opencode/src/tool/registry.ts | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/packages/opencode/src/tool/registry.ts b/packages/opencode/src/tool/registry.ts index 4ea70f289..c4d54597d 100644 --- a/packages/opencode/src/tool/registry.ts +++ b/packages/opencode/src/tool/registry.ts @@ -3,7 +3,6 @@ import { EditTool } from "./edit" import { GlobTool } from "./glob" import { GrepTool } from "./grep" import { ListTool } from "./ls" -import { PatchTool } from "./patch" import { ReadTool } from "./read" import { TaskTool } from "./task" import { TodoWriteTool, TodoReadTool } from "./todo" @@ -82,7 +81,6 @@ export namespace ToolRegistry { GlobTool, GrepTool, ListTool, - PatchTool, ReadTool, WriteTool, TodoWriteTool, @@ -113,11 +111,9 @@ export namespace ToolRegistry { agent: Agent.Info, ): Promise<Record<string, boolean>> { const result: Record<string, boolean> = {} - result["patch"] = false if (agent.permission.edit === "deny") { result["edit"] = false - result["patch"] = false result["write"] = false } if (agent.permission.bash["*"] === "deny" && Object.keys(agent.permission.bash).length === 1) { |
