fix: ensure Sisyphus agent has call_omo_agent disabled
The tools restriction was defined in sisyphus.ts but not enforced in config-handler.ts like other agents (orchestrator-sisyphus, Prometheus). Added explicit tools setting to guarantee call_omo_agent is disabled.
This commit is contained in:
@@ -144,6 +144,7 @@ export function createConfigHandler(deps: ConfigHandlerDeps) {
|
||||
librarian?: { tools?: Record<string, unknown> };
|
||||
"multimodal-looker"?: { tools?: Record<string, unknown> };
|
||||
"orchestrator-sisyphus"?: { tools?: Record<string, unknown> };
|
||||
Sisyphus?: { tools?: Record<string, unknown> };
|
||||
};
|
||||
const configAgent = config.agent as AgentConfig | undefined;
|
||||
|
||||
@@ -310,6 +311,12 @@ export function createConfigHandler(deps: ConfigHandlerDeps) {
|
||||
call_omo_agent: false,
|
||||
};
|
||||
}
|
||||
if (agentResult.Sisyphus) {
|
||||
agentResult.Sisyphus.tools = {
|
||||
...agentResult.Sisyphus.tools,
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user