agent: Fix issue where created file is not deleted after rejecting (#51745)

Release Notes:

- N/A
c59af48565Bennet Bo Fenner committed on 3/17/2026, 11:05:11 AM· committed by GitHubparenta3a28ea
1 file changedLine totals unavailable