From a2712c57c972b2602ac06e1132f312ff162d1ee8 Mon Sep 17 00:00:00 2001 From: ismeth Date: Wed, 4 Mar 2026 19:45:16 +0100 Subject: [PATCH] fix: deny switch_agent for all sub-agents --- src/shared/agent-tool-restrictions.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/shared/agent-tool-restrictions.ts b/src/shared/agent-tool-restrictions.ts index b05985d80..8e4ee1851 100644 --- a/src/shared/agent-tool-restrictions.ts +++ b/src/shared/agent-tool-restrictions.ts @@ -13,6 +13,7 @@ const EXPLORATION_AGENT_DENYLIST: Record = { edit: false, task: false, call_omo_agent: false, + switch_agent: false, } const AGENT_RESTRICTIONS: Record> = { @@ -25,18 +26,21 @@ const AGENT_RESTRICTIONS: Record> = { edit: false, task: false, call_omo_agent: false, + switch_agent: false, }, metis: { write: false, edit: false, task: false, + switch_agent: false, }, momus: { write: false, edit: false, task: false, + switch_agent: false, }, "multimodal-looker": { @@ -45,6 +49,7 @@ const AGENT_RESTRICTIONS: Record> = { "sisyphus-junior": { task: false, + switch_agent: false, }, athena: { @@ -54,6 +59,7 @@ const AGENT_RESTRICTIONS: Record> = { "athena-junior": { call_omo_agent: false, question: false, + switch_agent: false, }, // NOTE: Athena/council tool restrictions are also defined in: