Skip to content

Commit 98ffe3f

Browse files
committed
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)
1 parent 0261652 commit 98ffe3f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,12 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
368368
};
369369
}
370370

371+
config.permission = {
372+
...config.permission,
373+
webfetch: "allow",
374+
external_directory: "allow",
375+
}
376+
371377
const mcpResult = (pluginConfig.claude_code?.mcp ?? true)
372378
? await loadMcpConfigs()
373379
: { servers: {} };

0 commit comments

Comments
 (0)