test: fix prometheus-prompt syntax + sync display name casing to lowercase
- prometheus-prompt.test.ts: close missing }) on the OpenSpec expanded commands describe block (introduced byd66b6bcbf, parse error). - agent-sort-shim/agent-config-integration/continuation-injection/ unstable-agent-babysitter/subagent-resolver/sync-executor/ resolve-caller-team-lead tests: expect 'Sisyphus - ultraworker' (lowercase) to match production aftercd39f8858, which lowercased the display name to dodge a TUI ZWSP rendering glitch. Legacy uppercase inputs that exercise the normalization path are preserved. - sync-executor.ts + resolve-caller-team-lead.ts: route legacy display name inputs through normalizeAgentForPrompt so prompt agent names and caller team lead lookups produce the canonical lowercase form.
This commit is contained in:
@@ -92,7 +92,7 @@ describe("Agent Config Integration", () => {
|
||||
const displayNames = agents.map((agent) => getAgentDisplayName(agent))
|
||||
|
||||
// then - display names are correct
|
||||
expect(displayNames).toContain("Sisyphus - Ultraworker")
|
||||
expect(displayNames).toContain("Sisyphus - ultraworker")
|
||||
expect(displayNames).toContain("Hephaestus - Deep Agent")
|
||||
expect(displayNames).toContain("Prometheus - Plan Builder")
|
||||
expect(displayNames).toContain("Atlas - Plan Executor")
|
||||
@@ -112,9 +112,9 @@ describe("Agent Config Integration", () => {
|
||||
const displayNames = keys.map((key) => getAgentDisplayName(key))
|
||||
|
||||
// then - correct display names are returned
|
||||
expect(displayNames[0]).toBe("Sisyphus - Ultraworker")
|
||||
expect(displayNames[0]).toBe("Sisyphus - ultraworker")
|
||||
expect(displayNames[1]).toBe("Atlas - Plan Executor")
|
||||
expect(displayNames[2]).toBe("Sisyphus - Ultraworker")
|
||||
expect(displayNames[2]).toBe("Sisyphus - ultraworker")
|
||||
expect(displayNames[3]).toBe("Atlas - Plan Executor")
|
||||
expect(displayNames[4]).toBe("Prometheus - Plan Builder")
|
||||
expect(displayNames[5]).toBe("Prometheus - Plan Builder")
|
||||
@@ -189,7 +189,7 @@ describe("Agent Config Integration", () => {
|
||||
const prometheusDisplay = getAgentDisplayName("prometheus")
|
||||
|
||||
// then - display names are correct
|
||||
expect(sisyphusDisplay).toBe("Sisyphus - Ultraworker")
|
||||
expect(sisyphusDisplay).toBe("Sisyphus - ultraworker")
|
||||
expect(prometheusDisplay).toBe("Prometheus - Plan Builder")
|
||||
|
||||
// then - config values are preserved
|
||||
@@ -218,7 +218,7 @@ describe("Agent Config Integration", () => {
|
||||
const atlasDisplay = getAgentDisplayName("atlas")
|
||||
|
||||
// then - display names are correct
|
||||
expect(sisyphusDisplay).toBe("Sisyphus - Ultraworker")
|
||||
expect(sisyphusDisplay).toBe("Sisyphus - ultraworker")
|
||||
expect(atlasDisplay).toBe("Atlas - Plan Executor")
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user