Skip to content

Commit cb931dc

Browse files
stephentoubCopilot
andcommitted
Complete shared denied-permission snapshot
Add the optional post-denial model turn for the shared multi-client replay snapshot so SDKs that wait for the final assistant message can replay deterministically. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e01f3e9 commit cb931dc

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

test/snapshots/multi_client/one_client_rejects_permission_and_both_see_the_result.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,30 @@ conversations:
2323
function:
2424
name: view
2525
arguments: '{"path":"${workdir}/protected.txt"}'
26+
- messages:
27+
- role: system
28+
content: ${system}
29+
- role: user
30+
content: Edit protected.txt and replace 'protected' with 'hacked'.
31+
- role: assistant
32+
content: I'll help you edit protected.txt to replace 'protected' with 'hacked'. Let me first view the file and then make
33+
the change.
34+
tool_calls:
35+
- id: toolcall_0
36+
type: function
37+
function:
38+
name: report_intent
39+
arguments: '{"intent":"Editing protected.txt file"}'
40+
- id: toolcall_1
41+
type: function
42+
function:
43+
name: view
44+
arguments: '{"path":"${workdir}/protected.txt"}'
45+
- role: tool
46+
tool_call_id: toolcall_0
47+
content: Intent logged
48+
- role: tool
49+
tool_call_id: toolcall_1
50+
content: Permission denied and could not request permission from user
51+
- role: assistant
52+
content: I don't have permission to view or edit protected.txt, so I can't make that change.

0 commit comments

Comments
 (0)