acp: Refactor agent2 `send` to have a clearer control flow (#36689)

Release Notes:

- N/A
190217a43bAntonio Scandurra committed on 8/21/2025, 4:11:05 PM· committed by GitHubparent132daef
3 files changedLine totals unavailable