Skip to content

Commit 5c7eb02

Browse files
authored
chore(test): sync agent name casing in tests (#1128)
Co-authored-by: justsisyphus <[email protected]>
1 parent 68aa913 commit 5c7eb02

File tree

8 files changed

+28
-28
lines changed

8 files changed

+28
-28
lines changed

src/features/builtin-commands/templates/start-work.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const START_WORK_TEMPLATE = `You are starting a Sisyphus work session.
2525
}
2626
\`\`\`
2727
28-
5. **Read the plan file** and start executing tasks according to Orchestrator Sisyphus workflow
28+
5. **Read the plan file** and start executing tasks according to atlas workflow
2929
3030
## OUTPUT FORMAT
3131
@@ -69,4 +69,4 @@ Reading plan and beginning execution...
6969
- The session_id is injected by the hook - use it directly
7070
- Always update boulder.json BEFORE starting work
7171
- Read the FULL plan file before delegating any tasks
72-
- Follow Orchestrator Sisyphus delegation protocols (7-section format)`
72+
- Follow atlas delegation protocols (7-section format)`

src/features/claude-code-session-state/state.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe("claude-code-session-state", () => {
3737
setSessionAgent(sessionID, "Prometheus (Planner)")
3838

3939
// #when - try to overwrite
40-
setSessionAgent(sessionID, "Sisyphus")
40+
setSessionAgent(sessionID, "sisyphus")
4141

4242
// #then - first agent preserved
4343
expect(getSessionAgent(sessionID)).toBe("Prometheus (Planner)")
@@ -58,10 +58,10 @@ describe("claude-code-session-state", () => {
5858
setSessionAgent(sessionID, "Prometheus (Planner)")
5959

6060
// #when - force update
61-
updateSessionAgent(sessionID, "Sisyphus")
61+
updateSessionAgent(sessionID, "sisyphus")
6262

6363
// #then
64-
expect(getSessionAgent(sessionID)).toBe("Sisyphus")
64+
expect(getSessionAgent(sessionID)).toBe("sisyphus")
6565
})
6666
})
6767

@@ -129,7 +129,7 @@ describe("claude-code-session-state", () => {
129129
// #given - user switches to custom agent "MyCustomAgent"
130130
const sessionID = "test-session-custom"
131131
const customAgent = "MyCustomAgent"
132-
const defaultAgent = "Sisyphus"
132+
const defaultAgent = "sisyphus"
133133

134134
// User switches to custom agent (via UI)
135135
setSessionAgent(sessionID, customAgent)

src/features/context-injector/injector.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe("createContextInjectorMessagesTransformHook", () => {
2121
sessionID,
2222
role,
2323
time: { created: Date.now() },
24-
agent: "Sisyphus",
24+
agent: "sisyphus",
2525
model: { providerID: "test", modelID: "test" },
2626
path: { cwd: "/", root: "/" },
2727
},

src/hooks/atlas/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ describe("atlas hook", () => {
373373
const ORCHESTRATOR_SESSION = "orchestrator-write-test"
374374

375375
beforeEach(() => {
376-
setupMessageStorage(ORCHESTRATOR_SESSION, "Atlas")
376+
setupMessageStorage(ORCHESTRATOR_SESSION, "atlas")
377377
})
378378

379379
afterEach(() => {
@@ -444,7 +444,7 @@ describe("atlas hook", () => {
444444
test("should NOT append reminder when non-orchestrator writes outside .sisyphus/", async () => {
445445
// #given
446446
const nonOrchestratorSession = "non-orchestrator-session"
447-
setupMessageStorage(nonOrchestratorSession, "Sisyphus-Junior")
447+
setupMessageStorage(nonOrchestratorSession, "sisyphus-junior")
448448

449449
const hook = createAtlasHook(createMockPluginInput())
450450
const originalOutput = "File written successfully"
@@ -601,7 +601,7 @@ describe("atlas hook", () => {
601601
getMainSessionID: () => MAIN_SESSION_ID,
602602
subagentSessions: new Set<string>(),
603603
}))
604-
setupMessageStorage(MAIN_SESSION_ID, "Atlas")
604+
setupMessageStorage(MAIN_SESSION_ID, "atlas")
605605
})
606606

607607
afterEach(() => {
@@ -845,7 +845,7 @@ describe("atlas hook", () => {
845845

846846
// #given - last agent is NOT Atlas
847847
cleanupMessageStorage(MAIN_SESSION_ID)
848-
setupMessageStorage(MAIN_SESSION_ID, "Sisyphus")
848+
setupMessageStorage(MAIN_SESSION_ID, "sisyphus")
849849

850850
const mockInput = createMockPluginInput()
851851
const hook = createAtlasHook(mockInput)

src/hooks/keyword-detector/index.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ describe("keyword-detector agent-specific ultrawork messages", () => {
419419
}
420420

421421
// #when - ultrawork keyword detected with Sisyphus agent
422-
await hook["chat.message"]({ sessionID, agent: "Sisyphus" }, output)
422+
await hook["chat.message"]({ sessionID, agent: "sisyphus" }, output)
423423

424424
// #then - should use normal ultrawork message with agent utilization instructions
425425
const textPart = output.parts.find(p => p.type === "text")
@@ -471,7 +471,7 @@ describe("keyword-detector agent-specific ultrawork messages", () => {
471471
message: {} as Record<string, unknown>,
472472
parts: [{ type: "text", text: "ultrawork implement" }],
473473
}
474-
await hook["chat.message"]({ sessionID: sisyphusSessionID, agent: "Sisyphus" }, sisyphusOutput)
474+
await hook["chat.message"]({ sessionID: sisyphusSessionID, agent: "sisyphus" }, sisyphusOutput)
475475

476476
// #then - each session should have the correct message type
477477
const prometheusTextPart = prometheusOutput.parts.find(p => p.type === "text")
@@ -492,7 +492,7 @@ describe("keyword-detector agent-specific ultrawork messages", () => {
492492
const sessionID = "same-session-agent-switch"
493493

494494
// Simulate: session state was updated to sisyphus (by index.ts updateSessionAgent)
495-
updateSessionAgent(sessionID, "Sisyphus")
495+
updateSessionAgent(sessionID, "sisyphus")
496496

497497
const output = {
498498
message: {} as Record<string, unknown>,

src/hooks/prometheus-md-only/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ describe("prometheus-md-only", () => {
277277

278278
describe("with non-Prometheus agent in message storage", () => {
279279
beforeEach(() => {
280-
setupMessageStorage(TEST_SESSION_ID, "Sisyphus")
280+
setupMessageStorage(TEST_SESSION_ID, "sisyphus")
281281
})
282282

283283
test("should not affect non-Prometheus agents", async () => {

src/hooks/todo-continuation-enforcer.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -835,8 +835,8 @@ describe("todo-continuation-enforcer", () => {
835835

836836
// OpenCode returns assistant messages with flat modelID/providerID, not nested model object
837837
const mockMessagesWithAssistant = [
838-
{ info: { id: "msg-1", role: "user", agent: "Sisyphus", model: { providerID: "openai", modelID: "gpt-5.2" } } },
839-
{ info: { id: "msg-2", role: "assistant", agent: "Sisyphus", modelID: "gpt-5.2", providerID: "openai" } },
838+
{ info: { id: "msg-1", role: "user", agent: "sisyphus", model: { providerID: "openai", modelID: "gpt-5.2" } } },
839+
{ info: { id: "msg-2", role: "assistant", agent: "sisyphus", modelID: "gpt-5.2", providerID: "openai" } },
840840
]
841841

842842
const mockInput = {
@@ -886,8 +886,8 @@ describe("todo-continuation-enforcer", () => {
886886
setMainSession(sessionID)
887887

888888
const mockMessagesWithCompaction = [
889-
{ info: { id: "msg-1", role: "user", agent: "Sisyphus", model: { providerID: "anthropic", modelID: "claude-sonnet-4-5" } } },
890-
{ info: { id: "msg-2", role: "assistant", agent: "Sisyphus", modelID: "claude-sonnet-4-5", providerID: "anthropic" } },
889+
{ info: { id: "msg-1", role: "user", agent: "sisyphus", model: { providerID: "anthropic", modelID: "claude-sonnet-4-5" } } },
890+
{ info: { id: "msg-2", role: "assistant", agent: "sisyphus", modelID: "claude-sonnet-4-5", providerID: "anthropic" } },
891891
{ info: { id: "msg-3", role: "assistant", agent: "compaction", modelID: "claude-sonnet-4-5", providerID: "anthropic" } },
892892
]
893893

@@ -923,7 +923,7 @@ describe("todo-continuation-enforcer", () => {
923923

924924
// #then - continuation uses Sisyphus (skipped compaction agent)
925925
expect(promptCalls.length).toBe(1)
926-
expect(promptCalls[0].agent).toBe("Sisyphus")
926+
expect(promptCalls[0].agent).toBe("sisyphus")
927927
})
928928

929929
test("should skip injection when only compaction agent messages exist", async () => {

src/shared/agent-variant.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ describe("resolveAgentVariant", () => {
1818
// #given
1919
const config = {
2020
agents: {
21-
Sisyphus: { variant: "low" },
21+
sisyphus: { variant: "low" },
2222
},
2323
} as OhMyOpenCodeConfig
2424

2525
// #when
26-
const variant = resolveAgentVariant(config, "Sisyphus")
26+
const variant = resolveAgentVariant(config, "sisyphus")
2727

2828
// #then
2929
expect(variant).toBe("low")
@@ -33,15 +33,15 @@ describe("resolveAgentVariant", () => {
3333
// #given
3434
const config = {
3535
agents: {
36-
Sisyphus: { category: "ultrabrain" },
36+
sisyphus: { category: "ultrabrain" },
3737
},
3838
categories: {
3939
ultrabrain: { model: "openai/gpt-5.2", variant: "xhigh" },
4040
},
4141
} as OhMyOpenCodeConfig
4242

4343
// #when
44-
const variant = resolveAgentVariant(config, "Sisyphus")
44+
const variant = resolveAgentVariant(config, "sisyphus")
4545

4646
// #then
4747
expect(variant).toBe("xhigh")
@@ -53,13 +53,13 @@ describe("applyAgentVariant", () => {
5353
// #given
5454
const config = {
5555
agents: {
56-
Sisyphus: { variant: "low" },
56+
sisyphus: { variant: "low" },
5757
},
5858
} as OhMyOpenCodeConfig
5959
const message: { variant?: string } = {}
6060

6161
// #when
62-
applyAgentVariant(config, "Sisyphus", message)
62+
applyAgentVariant(config, "sisyphus", message)
6363

6464
// #then
6565
expect(message.variant).toBe("low")
@@ -69,13 +69,13 @@ describe("applyAgentVariant", () => {
6969
// #given
7070
const config = {
7171
agents: {
72-
Sisyphus: { variant: "low" },
72+
sisyphus: { variant: "low" },
7373
},
7474
} as OhMyOpenCodeConfig
7575
const message = { variant: "max" }
7676

7777
// #when
78-
applyAgentVariant(config, "Sisyphus", message)
78+
applyAgentVariant(config, "sisyphus", message)
7979

8080
// #then
8181
expect(message.variant).toBe("max")

0 commit comments

Comments
 (0)