terminal: Fix heredoc commands failing in agent shell (#49106)

Release Notes:

- Fixed heredoc commands failing with "syntax error: unexpected end of
file" in AI Agent shell execution

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
2c49900c6aWuji Chen committed on 4/22/2026, 6:19:40 PM· committed by GitHubparentb38e8f1
1 file changedLine totals unavailable