Commit eeb95e9
committed
Fix 09c_hitl_streaming: approval pause never fires
The agent's instructions said "Only suggest deleting data if explicitly
asked", so the model returned the approval question as its final answer
(finishReason: STOP) instead of calling the tool. No WAITING event was
emitted, so the example's approval handler never ran and the
approval_required=True pause it exists to demonstrate never fired.
Reworded as ordered steps that name the tool and leave approval to the gate.
Verified 4/4 on openai/gpt-4o-mini and anthropic/claude-sonnet-4-5:
check -> restart -> approval pause -> delete.
A one-word suggest->delete change is not enough: any prose phrasing states
the deletion as a permission, and gpt-4o-mini treats a permission as
optional — it restarts, reports success, and skips the tool (0/5 across two
prose variants). Numbered imperative steps get it executed.1 parent a24c4da commit eeb95e9
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
0 commit comments