fix(mcp): ignore project allowlist overrides for env expansion

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-03 17:45:02 +09:00
parent 2b43558349
commit 316d250465
2 changed files with 50 additions and 3 deletions
+3 -1
View File
@@ -210,8 +210,9 @@ export function loadPluginConfig(
}
// Load user config first (base). Parse empty config through Zod to apply field defaults.
const userConfig = loadConfigFromPath(userConfigPath, ctx)
let config: OhMyOpenCodeConfig =
loadConfigFromPath(userConfigPath, ctx) ?? OhMyOpenCodeConfigSchema.parse({});
userConfig ?? OhMyOpenCodeConfigSchema.parse({});
// Override with project config
const projectConfig = loadConfigFromPath(projectConfigPath, ctx);
@@ -221,6 +222,7 @@ export function loadPluginConfig(
config = {
...config,
mcp_env_allowlist: userConfig?.mcp_env_allowlist ?? [],
};
log("Final merged config", {