Skip to content

Commit 08d6167

Browse files
stephentoubCopilot
andcommitted
Restore shared client API snapshot prompt
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 549be42 commit 08d6167

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

nodejs/test/e2e/client_api.e2e.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ describe("Client session management", async () => {
4040
const session = await client.createSession({ onPermissionRequest: approveAll });
4141
const sessionId = session.sessionId;
4242

43-
await session.sendAndWait({ prompt: "Say DELETE_SESSION_OK exactly." });
44-
await waitFor(async () => (await client.listSessions()).some((s) => s.sessionId === sessionId));
43+
await session.sendAndWait({ prompt: "Say OK." });
44+
await waitFor(async () =>
45+
(await client.listSessions()).some((s) => s.sessionId === sessionId)
46+
);
4547
await session.disconnect();
4648
await client.deleteSession(sessionId);
4749

test/snapshots/client_api/should_delete_session_by_id.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ conversations:
55
- role: system
66
content: ${system}
77
- role: user
8-
content: Say DELETE_SESSION_OK exactly.
8+
content: Say OK.
99
- role: assistant
10-
content: DELETE_SESSION_OK
10+
content: OK

0 commit comments

Comments
 (0)