Let agent see output of killed terminal tools (#46218)

Previously, if you stopped the terminal prematurely, the agent would
assume the terminal process had timed out. Now it knows what happened
and can see the output:

<img width="718" height="885" alt="Screenshot 2026-01-07 at 12 40 23 AM"
src="https://github.com/user-attachments/assets/a5ea14b2-249c-4ada-9f20-d6b608f829e5"
/>


Release Notes:
- Stopping the terminal tool now allows the agent to see its output up
to that point.
69acab7f81Richard Feldman committed on 1/7/2026, 3:58:18 PM· committed by GitHubparent1ac2b97
8 files changedLine totals unavailable