chore(test): sync agent name casing in tests (#1128)

Co-authored-by: justsisyphus <justsisyphus@users.noreply.github.com>
This commit is contained in:
justsisyphus
2026-01-26 12:10:30 +09:00
committed by GitHub
parent ac8b3c6143
commit a25233708a
8 changed files with 28 additions and 28 deletions
+3 -3
View File
@@ -419,7 +419,7 @@ describe("keyword-detector agent-specific ultrawork messages", () => {
}
// #when - ultrawork keyword detected with Sisyphus agent
await hook["chat.message"]({ sessionID, agent: "Sisyphus" }, output)
await hook["chat.message"]({ sessionID, agent: "sisyphus" }, output)
// #then - should use normal ultrawork message with agent utilization instructions
const textPart = output.parts.find(p => p.type === "text")
@@ -471,7 +471,7 @@ describe("keyword-detector agent-specific ultrawork messages", () => {
message: {} as Record<string, unknown>,
parts: [{ type: "text", text: "ultrawork implement" }],
}
await hook["chat.message"]({ sessionID: sisyphusSessionID, agent: "Sisyphus" }, sisyphusOutput)
await hook["chat.message"]({ sessionID: sisyphusSessionID, agent: "sisyphus" }, sisyphusOutput)
// #then - each session should have the correct message type
const prometheusTextPart = prometheusOutput.parts.find(p => p.type === "text")
@@ -492,7 +492,7 @@ describe("keyword-detector agent-specific ultrawork messages", () => {
const sessionID = "same-session-agent-switch"
// Simulate: session state was updated to sisyphus (by index.ts updateSessionAgent)
updateSessionAgent(sessionID, "Sisyphus")
updateSessionAgent(sessionID, "sisyphus")
const output = {
message: {} as Record<string, unknown>,