agent_ui: Make stopping a running terminal cancel thread generation (#46663)

This makes stopping a terminal tool call in the agent panel also cancel
the thread generation:


https://github.com/user-attachments/assets/702ba078-53a8-4816-80f3-b6215e764365

Release Notes:

- Agent: Made the act of stopping a terminal tool call in the agent
panel also cancel the thread generation.
70da176353Danilo Leal committed on 1/13/2026, 11:43:45 AM· committed by GitHubparent6b1eb25
1 file changedLine totals unavailable