feat: auto-allow webfetch and external_directory permissions

Inject permission config to automatically allow webfetch and
external_directory (external read) tools without user confirmation.

🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
YeonGyu-Kim
2025-12-17 16:24:31 +09:00
parent 0261652fa3
commit 98ffe3f853

View File

@@ -368,6 +368,12 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
};
}
config.permission = {
...config.permission,
webfetch: "allow",
external_directory: "allow",
}
const mcpResult = (pluginConfig.claude_code?.mcp ?? true)
? await loadMcpConfigs()
: { servers: {} };