agent2: Fix some UI glitches (#36067)

Release Notes:

- N/A
628b1058beDanilo Leal committed on 8/12/2025, 7:31:54 PM· committed by GitHubparent7167f19
2 files changedLine totals unavailable