Misc improvement of code for agent markdown codeblock (#30388)

Release Notes:

- N/A
08f516ce9aMichael Sloan committed on 5/9/2025, 2:48:24 PM· committed by GitHubparent9cff5cf
1 file changedLine totals unavailable