fix(delegate-task): use exact match for isPlanFamily to allow Metis/Momus

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

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-08 13:09:31 +09:00
parent 78e6d780eb
commit a419857b46
+2 -4
View File
@@ -325,7 +325,7 @@ export const PLAN_AGENT_NAMES = ["plan"]
export function isPlanAgent(agentName: string | undefined): boolean {
if (!agentName) return false
const lowerName = agentName.toLowerCase().trim()
return PLAN_AGENT_NAMES.some(name => lowerName === name || lowerName.includes(name))
return PLAN_AGENT_NAMES.some(name => lowerName === name)
}
/**
@@ -342,7 +342,5 @@ export function isPlanFamily(category: string | undefined): boolean
export function isPlanFamily(category: string | undefined): boolean {
if (!category) return false
const lowerCategory = category.toLowerCase().trim()
return PLAN_FAMILY_NAMES.some(
(name) => lowerCategory === name || lowerCategory.includes(name)
)
return PLAN_FAMILY_NAMES.some((name) => lowerCategory === name)
}