From a1ca658d768bb216eff23121bf69464a3fdc98ef Mon Sep 17 00:00:00 2001 From: JimMoen Date: Fri, 6 Mar 2026 17:58:08 +0800 Subject: [PATCH] fix(tool-config): stop overriding external_directory permission Remove the hardcoded external_directory: "allow" default from applyToolConfig(). This was silently overriding OpenCode's built-in default of "ask" and any user-configured external_directory permission. With this change, external_directory permission is fully controlled by OpenCode's defaults and user configuration, as intended. Fixes #1973 Fixes #2194 --- src/plugin-handlers/tool-config-handler.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugin-handlers/tool-config-handler.ts b/src/plugin-handlers/tool-config-handler.ts index 381dbb55c..17ac789f5 100644 --- a/src/plugin-handlers/tool-config-handler.ts +++ b/src/plugin-handlers/tool-config-handler.ts @@ -100,7 +100,6 @@ export function applyToolConfig(params: { params.config.permission = { webfetch: "allow", - external_directory: "allow", ...(params.config.permission as Record), task: "deny", };