fix(agents): block call_omo_agent from Prometheus planner (#772)
Prometheus (Planner) agent should not have access to call_omo_agent tool to prevent direct agent spawning. Uses the same pattern as orchestrator-sisyphus. Co-authored-by: justsisyphus <justsisyphus@users.noreply.github.com>
This commit is contained in:
parent
325ce1212b
commit
3d5319a72d
@ -305,6 +305,12 @@ export function createConfigHandler(deps: ConfigHandlerDeps) {
|
|||||||
call_omo_agent: false,
|
call_omo_agent: false,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
if (agentResult["Prometheus (Planner)"]) {
|
||||||
|
(agentResult["Prometheus (Planner)"] as { tools?: Record<string, unknown> }).tools = {
|
||||||
|
...(agentResult["Prometheus (Planner)"] as { tools?: Record<string, unknown> }).tools,
|
||||||
|
call_omo_agent: false,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
config.permission = {
|
config.permission = {
|
||||||
...(config.permission as Record<string, unknown>),
|
...(config.permission as Record<string, unknown>),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user