fix: skip ultrawork injection for plan-like agents (#1501)

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

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-02-07 19:52:47 +09:00
parent 8e92704316
commit 0eddd28a95
2 changed files with 24 additions and 1 deletions
@@ -14,7 +14,10 @@
export function isPlannerAgent(agentName?: string): boolean {
if (!agentName) return false
const lowerName = agentName.toLowerCase()
return lowerName.includes("prometheus") || lowerName.includes("planner") || lowerName === "plan"
if (lowerName.includes("prometheus") || lowerName.includes("planner")) return true
const normalized = lowerName.replace(/[_-]+/g, " ")
return /\bplan\b/.test(normalized)
}
/**