Merge pull request #3136 from andrescera/fix/atlas-zwsp-header-leak

fix: remove ZWSP sort prefix that leaks into x-opencode-agent-name header
This commit is contained in:
YeonGyu-Kim
2026-04-06 13:55:08 +09:00
committed by GitHub
2 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -185,8 +185,8 @@ describe("getAgentListDisplayName", () => {
expect(getAgentListDisplayName("sisyphus")).toBe("Sisyphus (Ultraworker)")
})
it("applies invisible atlas sort prefix for list display", () => {
expect(getAgentListDisplayName("atlas")).toBe("\u200BAtlas (Plan Executor)")
it("returns atlas display name without sort prefix", () => {
expect(getAgentListDisplayName("atlas")).toBe("Atlas (Plan Executor)")
})
})
+1 -3
View File
@@ -20,9 +20,7 @@ export const AGENT_DISPLAY_NAMES: Record<string, string> = {
"council-member": "council-member",
}
const AGENT_LIST_SORT_PREFIXES: Record<string, string> = {
atlas: "\u200B",
}
const AGENT_LIST_SORT_PREFIXES: Record<string, string> = {}
function stripAgentListSortPrefix(agentName: string): string {
return agentName.replace(/^\u200B+/, "")