Describe the Bug
When the Agent/Chat outputs mathematical formulas using LaTeX delimiters (\[...\], $$...$$, or \(...\)), each formula appears twice:
- First as a properly rendered KaTeX formula
- Immediately below as a second plain-text line repeating the same expression (often with corrupted subscripts, e.g.
scale02instead ofscale_0)
This makes math-heavy replies hard to read and looks like the model intentionally duplicated output.
Steps to Reproduce
- Open Cursor Chat or Agent on Linux (any project)
- Ask the model to explain something with a math formula, e.g.:
“Output one OSQP objective linear term formula for reference tracking.”
- Model responds using block math, e.g.
\[ q_i = -\frac{2 w_{x,\text{ref},i} l_i^{\text{ref}}}{\text{scale}_0} \] - Observe the rendered formula and an extra plain-text duplicate line directly underneath
Also reproducible when the model uses \(...\) for inline math.
Expected Behavior
Each formula should render once (KaTeX/MathML only). No duplicate plain-text annotation line below.
Screenshots / Screen Recordings
Operating System
Linux
Version Information
3.8.22 (Commit: 46fb7aafe279d7c72346febe68c2e004b7d1de60, x64)
Does this stop you from using Cursor
No - Cursor works, but with this issue
