Reported by @left haven
Bug Report: UI DIFF output malformed.
`Steps to Reproduce`
Prompt chatgpt to output a c++ code fix as diff.
I filed a bug report for claude on the same matter
https://hackerone.com/reports/3517935
`Expected Result`
code output for changes on c++ as diff
`Actual Result`
code output for changes on c++ as various stacked codebrackets and or diff malformed as html / markdown.
If the input / output exceeds a certain length e.g + 1k lines c++ ...
various llm (eg claude) and chatgpt are triggered to output malformed diff.
`Environment`
WEB UI