Skip to content

Commit dc82e02

Browse files
Snapshot updates
1 parent 965b84b commit dc82e02

4 files changed

Lines changed: 3 additions & 55 deletions

File tree

nodejs/test/client.test.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,6 @@ describe("CopilotClient", () => {
2626
);
2727
});
2828

29-
it("returns a standardized failure result when a tool is not registered", async () => {
30-
const client = new CopilotClient();
31-
await client.start();
32-
onTestFinished(() => client.forceStop());
33-
34-
const session = await client.createSession({ onPermissionRequest: approveAll });
35-
36-
const response = await (
37-
client as unknown as { handleToolCallRequest: (typeof client)["handleToolCallRequest"] }
38-
).handleToolCallRequest({
39-
sessionId: session.sessionId,
40-
toolCallId: "123",
41-
toolName: "missing_tool",
42-
arguments: {},
43-
});
44-
45-
expect(response.result).toMatchObject({
46-
resultType: "failure",
47-
error: "tool 'missing_tool' not supported",
48-
});
49-
});
50-
5129
it("forwards clientName in session.create request", async () => {
5230
const client = new CopilotClient();
5331
await client.start();

test/snapshots/builtin_tools/should_find_files_by_pattern.yaml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -53,35 +53,3 @@ conversations:
5353
Found 2 TypeScript files:
5454
- `src/app.ts`
5555
- `src/index.ts`
56-
# Windows returns files in alphabetical order
57-
- messages:
58-
- role: system
59-
content: ${system}
60-
- role: user
61-
content: Find all .ts files in this directory (recursively). List the filenames you found.
62-
- role: assistant
63-
content: I'll search for all TypeScript files recursively in the current directory.
64-
tool_calls:
65-
- id: toolcall_0
66-
type: function
67-
function:
68-
name: report_intent
69-
arguments: '{"intent":"Finding TypeScript files"}'
70-
- id: toolcall_1
71-
type: function
72-
function:
73-
name: glob
74-
arguments: '{"pattern":"**/*.ts"}'
75-
- role: tool
76-
tool_call_id: toolcall_0
77-
content: Intent logged
78-
- role: tool
79-
tool_call_id: toolcall_1
80-
content: |-
81-
./src/app.ts
82-
./src/index.ts
83-
- role: assistant
84-
content: |-
85-
Found 2 TypeScript files:
86-
- `src/app.ts`
87-
- `src/index.ts`

test/snapshots/session_config/should_accept_message_attachments.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ conversations:
88
content: |-
99
Summarize the attached file
1010
11+
12+
1113
<tagged_files>
1214
* ${workdir}/attached.txt (1 lines)
1315
</tagged_files>

test/snapshots/tool_results/should_handle_tool_result_with_failure_resulttype.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ conversations:
1515
arguments: "{}"
1616
- role: tool
1717
tool_call_id: toolcall_0
18-
content: Service unavailable
18+
content: '{"error":"API timeout","resultType":"failure","textResultForLlm":"Service unavailable"}'
1919
- role: assistant
2020
content: service is down

0 commit comments

Comments
 (0)