fix(athena): resolve 4 compatibility and correctness issues

- Use case-insensitive casing in duplicate name test to verify actual logic
- Align permission type with SDK AgentConfig pattern (as AgentConfig["permission"])
- Move duplicate-name validation from schema to runtime for graceful fallback
- Place skipped members details before 'end your turn' in council guard prompt
This commit is contained in:
ismeth
2026-02-20 20:13:02 +01:00
committed by YeonGyu-Kim
parent 0205601b6c
commit 15b2fe2534
5 changed files with 20 additions and 21 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import type { AgentConfig } from "@opencode-ai/sdk"
import type { AgentMode, AgentPromptMetadata } from "../types"
import { createAgentToolRestrictions, type PermissionValue } from "../../shared/permission-compat"
import { createAgentToolRestrictions } from "../../shared/permission-compat"
import { applyModelThinkingConfig } from "./model-thinking-config"
const MODE: AgentMode = "primary"
@@ -211,10 +211,10 @@ The switch_agent tool switches the active agent. After you call it, end your res
export function createAthenaAgent(model: string): AgentConfig {
const restrictions = createAgentToolRestrictions(["write", "edit", "call_omo_agent"])
const permission: Record<string, PermissionValue> = {
const permission = {
...restrictions.permission,
question: "allow",
}
} as AgentConfig["permission"]
const base = {
description: