Commit e4b4c0c
Fix interrupt sample: make delete_thing idempotent
The activity was toggling its `_APPROVED` state (add on raise, discard on
success), so after the human approved once, a follow-up tool call from the
model would interrupt again with no further approval coming — hanging the
test. Drop the discard so once approved, the name stays approved.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b376e8e commit e4b4c0c
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
0 commit comments