File tree Expand file tree Collapse file tree
test/snapshots/permissions Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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" ]
Original file line number Diff line number Diff line change @@ -5,26 +5,24 @@ conversations:
55 - role : system
66 content : ${system}
77 - role : user
8- content : Run 'echo hello world ' and tell me the output
8+ content : Run 'echo hello' and tell me the output
99 - role : assistant
1010 tool_calls :
1111 - id : toolcall_0
1212 type : function
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 :
2119 name : ${shell}
22- arguments : ' {"command":"echo hello world ","description":"Run echo hello world "}'
20+ arguments : ' {"command":"echo hello","description":"Run echo hello"}'
2321 - messages :
2422 - role : system
2523 content : ${system}
2624 - role : user
27- content : Run 'echo hello world ' and tell me the output
25+ content : Run 'echo hello' and tell me the output
2826 - role : assistant
2927 tool_calls :
3028 - id : toolcall_0
@@ -36,28 +34,14 @@ conversations:
3634 type : function
3735 function :
3836 name : ${shell}
39- arguments : ' {"command":"echo hello world ","description":"Run echo hello world "}'
37+ arguments : ' {"command":"echo hello","description":"Run echo hello"}'
4038 - role : tool
4139 tool_call_id : toolcall_0
4240 content : Intent logged
4341 - role : tool
4442 tool_call_id : toolcall_1
4543 content : |-
4644 hello
47- world
4845 <exited with exit code 0>
4946 - role : assistant
50- content : >-
51- The output is:
52-
53- ```
54-
55- hello
56-
57- world
58-
59- ```
60-
61-
62- Note that PowerShell's `echo` (which is an alias for `Write-Output`) outputs "hello" and "world" on separate
63- lines.
47+ content : The output is `hello`.
You can’t perform that action at this time.
0 commit comments