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:
justsisyphus
2026-01-16 10:47:20 +09:00
parent 9363324e0e
commit bf28b3e711

View File

@@ -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,