fix: deny switch_agent for all sub-agents

This commit is contained in:
ismeth
2026-03-04 19:45:16 +01:00
committed by YeonGyu-Kim
parent 276cb9352f
commit a2712c57c9
+6
View File
@@ -13,6 +13,7 @@ const EXPLORATION_AGENT_DENYLIST: Record<string, boolean> = {
edit: false, edit: false,
task: false, task: false,
call_omo_agent: false, call_omo_agent: false,
switch_agent: false,
} }
const AGENT_RESTRICTIONS: Record<string, Record<string, boolean>> = { const AGENT_RESTRICTIONS: Record<string, Record<string, boolean>> = {
@@ -25,18 +26,21 @@ const AGENT_RESTRICTIONS: Record<string, Record<string, boolean>> = {
edit: false, edit: false,
task: false, task: false,
call_omo_agent: false, call_omo_agent: false,
switch_agent: false,
}, },
metis: { metis: {
write: false, write: false,
edit: false, edit: false,
task: false, task: false,
switch_agent: false,
}, },
momus: { momus: {
write: false, write: false,
edit: false, edit: false,
task: false, task: false,
switch_agent: false,
}, },
"multimodal-looker": { "multimodal-looker": {
@@ -45,6 +49,7 @@ const AGENT_RESTRICTIONS: Record<string, Record<string, boolean>> = {
"sisyphus-junior": { "sisyphus-junior": {
task: false, task: false,
switch_agent: false,
}, },
athena: { athena: {
@@ -54,6 +59,7 @@ const AGENT_RESTRICTIONS: Record<string, Record<string, boolean>> = {
"athena-junior": { "athena-junior": {
call_omo_agent: false, call_omo_agent: false,
question: false, question: false,
switch_agent: false,
}, },
// NOTE: Athena/council tool restrictions are also defined in: // NOTE: Athena/council tool restrictions are also defined in: