diff --git a/src/plugin-handlers/config-handler.ts b/src/plugin-handlers/config-handler.ts index 0fc1c06c..96ff156f 100644 --- a/src/plugin-handlers/config-handler.ts +++ b/src/plugin-handlers/config-handler.ts @@ -305,6 +305,12 @@ export function createConfigHandler(deps: ConfigHandlerDeps) { call_omo_agent: false, }; } + if (agentResult["Prometheus (Planner)"]) { + (agentResult["Prometheus (Planner)"] as { tools?: Record }).tools = { + ...(agentResult["Prometheus (Planner)"] as { tools?: Record }).tools, + call_omo_agent: false, + }; + } config.permission = { ...(config.permission as Record),