test(start-work): update display name expectations for ZWSP fix
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -7,7 +7,7 @@ import { tmpdir } from "node:os"
|
|||||||
import { randomUUID } from "node:crypto"
|
import { randomUUID } from "node:crypto"
|
||||||
import { createStartWorkHook } from "./index"
|
import { createStartWorkHook } from "./index"
|
||||||
import { createAtlasHook } from "../atlas"
|
import { createAtlasHook } from "../atlas"
|
||||||
import { getAgentListDisplayName } from "../../shared/agent-display-names"
|
import { getAgentDisplayName, getAgentListDisplayName } from "../../shared/agent-display-names"
|
||||||
import {
|
import {
|
||||||
writeBoulderState,
|
writeBoulderState,
|
||||||
clearBoulderState,
|
clearBoulderState,
|
||||||
@@ -482,7 +482,7 @@ You are starting a Sisyphus work session.
|
|||||||
)
|
)
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(output.message.agent).toBe(getAgentListDisplayName("atlas"))
|
expect(output.message.agent).toBe(getAgentDisplayName("atlas"))
|
||||||
})
|
})
|
||||||
|
|
||||||
test("should switch to Atlas even when current session is Sisyphus (regression: #3155)", async () => {
|
test("should switch to Atlas even when current session is Sisyphus (regression: #3155)", async () => {
|
||||||
@@ -502,7 +502,7 @@ You are starting a Sisyphus work session.
|
|||||||
)
|
)
|
||||||
|
|
||||||
// atlas is registered in beforeEach, so it must be selected
|
// atlas is registered in beforeEach, so it must be selected
|
||||||
expect(output.message.agent).toBe(getAgentListDisplayName("atlas"))
|
expect(output.message.agent).toBe(getAgentDisplayName("atlas"))
|
||||||
expect(sessionState.getSessionAgent("ses-sisyphus-to-atlas")).toBe("atlas")
|
expect(sessionState.getSessionAgent("ses-sisyphus-to-atlas")).toBe("atlas")
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -623,7 +623,7 @@ You are starting a Sisyphus work session.
|
|||||||
await atlasHook.handler({ event: { type: "session.idle", properties: { sessionID: "session-123" } } })
|
await atlasHook.handler({ event: { type: "session.idle", properties: { sessionID: "session-123" } } })
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(output.message.agent).toBe(getAgentListDisplayName("atlas"))
|
expect(output.message.agent).toBe(getAgentDisplayName("atlas"))
|
||||||
expect(readBoulderState(testDir)?.session_ids).toContain("session-123")
|
expect(readBoulderState(testDir)?.session_ids).toContain("session-123")
|
||||||
expect(readBoulderState(testDir)?.agent).toBe("atlas")
|
expect(readBoulderState(testDir)?.agent).toBe("atlas")
|
||||||
expect(promptAsyncMock).toHaveBeenCalledTimes(1)
|
expect(promptAsyncMock).toHaveBeenCalledTimes(1)
|
||||||
@@ -713,7 +713,7 @@ You are starting a Sisyphus work session.
|
|||||||
await firePendingTimers()
|
await firePendingTimers()
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(output.message.agent).toBe(getAgentListDisplayName("atlas"))
|
expect(output.message.agent).toBe(getAgentDisplayName("atlas"))
|
||||||
expect(readBoulderState(testDir)?.session_ids).toContain("session-123")
|
expect(readBoulderState(testDir)?.session_ids).toContain("session-123")
|
||||||
expect(readBoulderState(testDir)?.agent).toBe("atlas")
|
expect(readBoulderState(testDir)?.agent).toBe("atlas")
|
||||||
expect(promptAsyncMock).toHaveBeenCalledTimes(1)
|
expect(promptAsyncMock).toHaveBeenCalledTimes(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user