Avoid killing Zed when terminating terminal process before process group is set by shell (#52542)

Release Notes:

- Fixed a bug where killing a terminal process in the agent panel would
sometimes kill Zed itself.
2f762eee4bMax Brunsfeld committed on 3/27/2026, 7:14:52 AM· committed by GitHubparentbd5aa77
1 file changedLine totals unavailable