agent_ui: Fix permissions getting granted to wrong tool call (#54683)

Release Notes:

- Fixed an issue where the first tool call would always be accepted when
parallel tool calls were made, rather than the one that was actually
clicked

---------

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
89d2dcebbaTom Houlé committed on 4/24/2026, 9:52:28 AM· committed by GitHubparent749fcfd
2 files changedLine totals unavailable