Skip to content

Commit 24724f7

Browse files
Update some snapshots; remove redundant ones (github#52)
* Update some snapshots; remove redundant ones * Undo irrelevant changes * Tidy * Add missing snapshot
1 parent ed0182b commit 24724f7

11 files changed

+40
-123
lines changed

go/e2e/permissions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func TestPermissions(t *testing.T) {
9494
}
9595

9696
_, err = session.SendAndWait(copilot.MessageOptions{
97-
Prompt: "Run 'echo hello world' and tell me the output",
97+
Prompt: "Run 'echo hello' and tell me the output",
9898
}, 60*time.Second)
9999
if err != nil {
100100
t.Fatalf("Failed to send message: %v", err)

python/e2e/test_permissions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def on_permission_request(
5757

5858
session = await ctx.client.create_session({"on_permission_request": on_permission_request})
5959

60-
await session.send_and_wait({"prompt": "Run 'echo hello world' and tell me the output"})
60+
await session.send_and_wait({"prompt": "Run 'echo hello' and tell me the output"})
6161

6262
# Should have received at least one shell permission request
6363
shell_requests = [req for req in permission_requests if req.get("kind") == "shell"]

test/snapshots/ask/should_invoke_onevent_callback_for_each_event.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/snapshots/ask/should_return_assistant_message_content.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/snapshots/customagents/accept_custom_agent_config_on_resume.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

test/snapshots/permissions/permission_handler_for_shell_commands.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ conversations:
1313
function:
1414
name: report_intent
1515
arguments: '{"intent":"Running echo command"}'
16-
- role: assistant
17-
tool_calls:
1816
- id: toolcall_1
1917
type: function
2018
function:
@@ -46,4 +44,4 @@ conversations:
4644
hello
4745
<exited with exit code 0>
4846
- role: assistant
49-
content: The output is `hello` with exit code 0 (success).
47+
content: The output is `hello`.

test/snapshots/permissions/should_invoke_permission_handler_for_shell_commands.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

test/snapshots/permissions/should_invoke_permission_handler_for_write_operations.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ conversations:
66
content: ${system}
77
- role: user
88
content: Edit test.txt and replace 'original' with 'modified'
9+
- role: assistant
10+
content: I'll view the file first to see its contents, then make the replacement.
911
- role: assistant
1012
tool_calls:
1113
- id: toolcall_0
@@ -26,6 +28,40 @@ conversations:
2628
- role: user
2729
content: Edit test.txt and replace 'original' with 'modified'
2830
- role: assistant
31+
content: I'll view the file first to see its contents, then make the replacement.
32+
tool_calls:
33+
- id: toolcall_0
34+
type: function
35+
function:
36+
name: report_intent
37+
arguments: '{"intent":"Editing test.txt file"}'
38+
- id: toolcall_1
39+
type: function
40+
function:
41+
name: view
42+
arguments: '{"path":"${workdir}/test.txt"}'
43+
- role: tool
44+
tool_call_id: toolcall_0
45+
content: Intent logged
46+
- role: tool
47+
tool_call_id: toolcall_1
48+
content: 1. original content
49+
- role: assistant
50+
content: "Now I'll replace 'original' with 'modified':"
51+
- role: assistant
52+
tool_calls:
53+
- id: toolcall_2
54+
type: function
55+
function:
56+
name: edit
57+
arguments: '{"path":"${workdir}/test.txt","old_str":"original content","new_str":"modified content"}'
58+
- messages:
59+
- role: system
60+
content: ${system}
61+
- role: user
62+
content: Edit test.txt and replace 'original' with 'modified'
63+
- role: assistant
64+
content: I'll view the file first to see its contents, then make the replacement.
2965
tool_calls:
3066
- id: toolcall_0
3167
type: function
@@ -44,6 +80,7 @@ conversations:
4480
tool_call_id: toolcall_1
4581
content: 1. original content
4682
- role: assistant
83+
content: "Now I'll replace 'original' with 'modified':"
4784
tool_calls:
4885
- id: toolcall_2
4986
type: function

test/snapshots/query/should_stream_events_and_return_assistant_message.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/snapshots/query/should_support_resume_option_for_multi_turn_conversations.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)