fix(athena): grant task and question tool permissions

Add Athena to the task tool allow list and grant explicit question tool permission so it can launch council members and present multi-select prompts.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
ismeth 2026-02-19 02:21:17 +01:00 committed by YeonGyu-Kim
parent 0ab22daffb
commit 8f0b5d2e1a

View File

@ -97,6 +97,14 @@ export function applyToolConfig(params: {
...denyTodoTools,
};
}
const athena = agentByKey(params.agentResult, "athena");
if (athena) {
athena.permission = {
...athena.permission,
task: "allow",
question: questionPermission,
};
}
params.config.permission = {
...(params.config.permission as Record<string, unknown>),