From f2b547cc45aa169a13956fb5d6f09e811c59c261 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Fri, 26 Sep 2025 05:33:38 -0400 Subject: [PATCH] fix erroring on custom tool folder --- packages/opencode/src/config/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.ts index c25c6ea0..6948e1df 100644 --- a/packages/opencode/src/config/config.ts +++ b/packages/opencode/src/config/config.ts @@ -118,7 +118,7 @@ export namespace Config { }) async function assertValid(dir: string) { - const ALLOWED_DIRS = new Set(["agent", "command", "mode", "plugin"]) + const ALLOWED_DIRS = new Set(["agent", "command", "mode", "plugin", "tool"]) const UNEXPECTED_DIR_GLOB = new Bun.Glob("*/") for await (const item of UNEXPECTED_DIR_GLOB.scan({ absolute: true, cwd: dir, onlyFiles: false })) { const dirname = path.basename(item)