acp: Fix gemini process being leaked (#37012)

Release Notes:

- acp: Fixed a bug that caused external agent server subprocesses to be
leaked.

---------

Co-authored-by: Agus Zubiaga <agus@zed.dev>
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
Co-authored-by: Antonio Scandurra <me@as-cii.com>
07373d15efCole Miller committed on 8/27/2025, 4:21:28 PM· committed by GitHubparentb5e9b65
3 files changedLine totals unavailable