Skip to content

Commit feab734

Browse files
edburnsCopilot
andcommitted
Fix Windows session lifecycle replay mismatch
Use the same second prompt (Say hi) as the lifecycle snapshot to avoid replay cache misses in the list-sessions test path on Windows CI. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f1975c6 commit feab734

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

nodejs/test/e2e/session_lifecycle.e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe("Session Lifecycle", async () => {
3232

3333
// Sessions must have activity to be persisted to disk
3434
await session1.sendAndWait({ prompt: "Say hello" });
35-
await session2.sendAndWait({ prompt: "Say world" });
35+
await session2.sendAndWait({ prompt: "Say hi" });
3636

3737
// Poll until both sessions are visible on disk instead of a hard 500ms wait.
3838
await waitFor(async () => {

test/snapshots/session_lifecycle/should_list_created_sessions_after_sending_a_message.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ conversations:
1313
- role: system
1414
content: ${system}
1515
- role: user
16-
content: Say world
16+
content: Say hi
1717
- role: assistant
18-
content: world
18+
content: Hi! I'm GitHub Copilot CLI, ready to help with your software engineering tasks. What would you like to work on?

0 commit comments

Comments
 (0)