Skip to content

Fix 09c_hitl_streaming: approval pause never fires - #471

Open
ling-senpeng13 wants to merge 1 commit into
mainfrom
fix/09c-hitl-approval-pause
Open

Fix 09c_hitl_streaming: approval pause never fires#471
ling-senpeng13 wants to merge 1 commit into
mainfrom
fix/09c-hitl-approval-pause

Conversation

@ling-senpeng13

Copy link
Copy Markdown
Contributor

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 (0/6 runs).

Reworded as ordered steps that name the tool and leave approval to the gate.

Verified 4/4 — openai/gpt-4o-mini 2/2, anthropic/claude-sonnet-4-5 2/2:
check → restart → approval pause → delete.

Why not a one-word suggestdelete fix: 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.

@ling-senpeng13 ling-senpeng13 self-assigned this Aug 12, 2026
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.
@ling-senpeng13
ling-senpeng13 force-pushed the fix/09c-hitl-approval-pause branch from ef5d794 to 7c67c3e Compare August 12, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants