#9451·agno

A rejected user-input tool still executes when a requirements payload answers it

Author: ashpreetbediCreated Aug 7, 2026Updated Sep 29, 2026

Verified on main (and at the merge base of #9396, d28d5804) by the adversarial review of #9396 round 13; executed repro through public entry points.

handle_tool_call_updates Case 4 (agent/_tools.py:944-950, plus its stream and async twins) executes any tool with requires_user_input is True without checking _t.confirmed, unlike Case 1 for confirmation tools. So a tool an admin explicitly REJECTED through the approval record still executes when the client resends a requirements payload — and on main, where a rejection never settled the requirement, the rejected tool ran on the FIRST continue with the model-prefilled values.

Repro sketch: member agent tool with requires_user_input=True under @approval(type="required"); run pauses; db.update_approval(..., status="rejected"); continue with a requirements payload that answers the input fields. Observed: the run completes and the rejected tool executed with the client's values.

Fix shape: in all four handle_tool_call_updates* Case-4 branches, gate execution on _t.confirmed is not False and route the rejected case through reject_tool_call(...), mirroring Case 1. (#9396 round 14 settles the approval-lane path — a rejected user-input/external tool is now skipped and the run completes — but the payload-resend path lives in agent/_tools.py and is out of that PR's scope.)