Merge pull request #3330 from codeg-dev/fix/isplan-display-name-getAgentConfigKey
fix(delegate-task): apply getAgentConfigKey normalization to isPlanAgent
This commit is contained in:
@@ -326,7 +326,7 @@ export const PLAN_AGENT_NAMES = ["plan"]
|
||||
*/
|
||||
export function isPlanAgent(agentName: string | undefined): boolean {
|
||||
if (!agentName) return false
|
||||
const lowerName = agentName.toLowerCase().trim()
|
||||
const lowerName = getAgentConfigKey(agentName).toLowerCase().trim()
|
||||
return PLAN_AGENT_NAMES.some(name => lowerName === name)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user