fix(athena): add call_omo_agent to ATHENA_RESTRICTIONS for consistent tool denial

ATHENA_RESTRICTIONS only denied write and edit, missing call_omo_agent that the agent factory already denies. This caused 6 callers of getAgentToolRestrictions() to get incomplete restrictions.

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 13:53:11 +01:00
committed by YeonGyu-Kim
parent 5aa64932c5
commit 7a03d7bea3
2 changed files with 34 additions and 1 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ const EXPLORATION_AGENT_DENYLIST: Record<string, boolean> = {
}
const ATHENA_RESTRICTIONS = permissionToToolBooleans(
createAgentToolRestrictions(["write", "edit"]).permission
createAgentToolRestrictions(["write", "edit", "call_omo_agent"]).permission
)
const AGENT_RESTRICTIONS: Record<string, Record<string, boolean>> = {