Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions claude/hooks/akm-hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const MODE = process.argv[3] ?? ""
// `gpt-4o`, or full-ID prefixes like `anthropic/...` and `lab/...`) gets
// remapped via MODEL_ALIAS_MAP or falls back to `sonnet` so the Agent tool
// dispatch is never rejected upstream.
const CC_VALID_MODEL_ALIASES = new Set(["sonnet", "opus", "haiku", "inherit"])
const CC_VALID_MODEL_ALIASES = new Set(["sonnet", "opus", "haiku", "fable", "inherit"])
const MODEL_ALIAS_MAP: Record<string, string> = {
balanced: "sonnet",
fast: "haiku",
Expand Down Expand Up @@ -1311,7 +1311,7 @@ function preToolAgent(): string {
hookSpecificOutput: {
hookEventName: "PreToolUse",
permissionDecision: "allow",
updatedInput: { model: resolved },
updatedInput: { ...toolInput, model: resolved },
},
})
}
Expand Down
Loading
Loading