llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

Misc. bug: WebUI incorrectly displays \( as $ in LLM output

Open BrickBee opened this issue 2 months ago • 1 comments

Name and Version

Latest current commit 92bb442ad999a0d52df0af2730cd861012e8ac5c (but also commits 2 weeks before are affected)

Operating systems

No response

Which llama.cpp modules do you know to be affected?

llama-server

Command line


Problem description & steps to reproduce

Give any reasonable instruct LLM this example prompt via WebUI: Very simple task: Repeat this string assignment exactly as-is, just fenced as Python code: foo = "\(bar\)" It'll repeat that incorrectly as: foo = "$bar$"

Clicking "Copy code" on the Python markdown box in the answer gives:

foo = "$bar$"

Clicking "copy" on the whole answer gives:

foo = "\(bar\)"

Thus there seems to be an issue with markdown rendering / escaping.

First Bad Commit

No response

Relevant log output


BrickBee avatar Nov 12 '25 20:11 BrickBee

#16599 introduced this bug.

openingnow avatar Nov 13 '25 13:11 openingnow