agent: Fail faster in case streaming tool call fails (#50834)

If a streaming tool call (e.g. edit file) returns an error during
streaming, we would wait until we received the whole input.

Release Notes:

- N/A

---------

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
f69ab1d04eBennet Bo Fenner committed on 3/6/2026, 2:39:08 PM· committed by GitHubparentdb6b47a
3 files changedLine totals unavailable