fix(start-work): use canonical display name for command routing

This commit is contained in:
YeonGyu-Kim
2026-04-08 16:09:09 +09:00
parent 8925ec3a16
commit 24629643f0
3 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -1251,7 +1251,7 @@ describe("config-handler plugin loading error boundary (#1559)", () => {
})
describe("command agent routing coherence", () => {
test("keeps start-work aligned with the exported Atlas agent key", async () => {
test("keeps start-work aligned with the canonical Atlas display name", async () => {
//#given
const createBuiltinAgentsMock = agents.createBuiltinAgents as unknown as {
mockResolvedValue: (value: Record<string, unknown>) => void
@@ -1291,7 +1291,7 @@ describe("command agent routing coherence", () => {
const agentConfig = config.agent as Record<string, unknown>
const commandConfig = config.command as Record<string, { agent?: string }>
expect(Object.keys(agentConfig)).toContain(getAgentListDisplayName("atlas"))
expect(commandConfig["start-work"]?.agent).toBe(getAgentListDisplayName("atlas"))
expect(commandConfig["start-work"]?.agent).toBe(getAgentDisplayName("atlas"))
})
})