feat(shared): update agent display names for team-mode

This commit is contained in:
YeonGyu-Kim
2026-04-28 10:48:46 +09:00
parent 20a66f7061
commit 34b659a3b1
+2 -1
View File
@@ -27,13 +27,14 @@ export const AGENT_DISPLAY_NAMES: Record<string, string> = {
}
const INVISIBLE_AGENT_CHARACTERS_REGEX = /[\u200B\u200C\u200D\uFEFF]/g
const VISIBLE_AGENT_LIST_SORT_PREFIX_REGEX = /^\d+\|/
export function stripInvisibleAgentCharacters(agentName: string): string {
return agentName.replace(INVISIBLE_AGENT_CHARACTERS_REGEX, "")
}
export function stripAgentListSortPrefix(agentName: string): string {
return stripInvisibleAgentCharacters(agentName)
return stripInvisibleAgentCharacters(agentName).replace(VISIBLE_AGENT_LIST_SORT_PREFIX_REGEX, "")
}
/**