issue: Bad rendering of chat input #4938

Closed
opened 2025-11-11 16:07:03 -06:00 by GiteaMirror · 9 comments
Owner

Originally created by @sebbarg on GitHub (Apr 23, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.6.5

Ollama Version (if applicable)

No response

Operating System

Kubuntu 24.04

Browser (if applicable)

Chrome135.0.7049.95

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

Expected Behavior

When I type and send the below text, it should be rendered exactly as entered:

/// <summary>
/// foo bar baz
/// </summary>

Actual Behavior

The text is somehow translated into... something else (see screenshot)

Steps to Reproduce

Type and send the text above. Notice how it is rendered (i.e. what you typed, NOT what comes back from the model)

Logs & Screenshots

Image

Additional Information

No response

Originally created by @sebbarg on GitHub (Apr 23, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.6.5 ### Ollama Version (if applicable) _No response_ ### Operating System Kubuntu 24.04 ### Browser (if applicable) Chrome135.0.7049.95 ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior When I type and send the below text, it should be rendered exactly as entered: ``` /// <summary> /// foo bar baz /// </summary> ``` ### Actual Behavior The text is somehow translated into... something else (see screenshot) ### Steps to Reproduce Type and send the text above. Notice how it is rendered (i.e. what you typed, NOT what comes back from the model) ### Logs & Screenshots ![Image](https://github.com/user-attachments/assets/bae93d45-d022-4158-b404-f681fa8b6f01) ### Additional Information _No response_
GiteaMirror added the bug label 2025-11-11 16:07:03 -06:00
Author
Owner

@sebbarg commented on GitHub (Apr 23, 2025):

@rgaricano Works on your computer? Do you want me to turn mine off and on again? ;P

@sebbarg commented on GitHub (Apr 23, 2025): @rgaricano Works on your computer? Do you want me to turn mine off and on again? ;P
Author
Owner

@rgaricano commented on GitHub (Apr 23, 2025):

no, same,
just < > have to be escaped:

echo this back in plain text:  
/// \<summary\>
/// foo bar baz
/// \</summary\>
@rgaricano commented on GitHub (Apr 23, 2025): no, same, just < > have to be escaped: ``` echo this back in plain text: /// \<summary\> /// foo bar baz /// \</summary\> ```
Author
Owner

@rgaricano commented on GitHub (Apr 23, 2025):

probably it need a PR to fixed ;)

@rgaricano commented on GitHub (Apr 23, 2025): probably it need a PR to fixed ;)
Author
Owner

@sebbarg commented on GitHub (Apr 23, 2025):

Right. Good luck with that when pasting code into the damn thing ;D

@sebbarg commented on GitHub (Apr 23, 2025): Right. Good luck with that when pasting code into the damn thing ;D
Author
Owner

@rgaricano commented on GitHub (Apr 23, 2025):

& if I paste (without slashs):

echo this back in plain text:  
<summary\>
foo bar baz
</summary\>

I see in my chat:

echo this back in plain text:
<summary>
foo bar baz
</summary>

&

I recive from model:

<summary\
foo bar baz
</summary\>

... another lost in the way!

@rgaricano commented on GitHub (Apr 23, 2025): & if I paste (without slashs): ``` echo this back in plain text: <summary\> foo bar baz </summary\> ``` I see in my chat: ``` echo this back in plain text: <summary> foo bar baz </summary> ``` & I recive from model: ``` <summary\ foo bar baz </summary\> ``` ... another lost in the way!
Author
Owner

@sebbarg commented on GitHub (Apr 23, 2025):

I guess there are different problems here:

  1. what's seen in the editor (the input element)
  2. what's rendered on the screen as outgoing message
  3. what's rendered on the screen as incoming message

Number 1 can be fixed/improved by disabling "Rich Text Input for Chat"
Number 2 is this issue
Number 3 is perhaps @rgaricano 's comment..?

@sebbarg commented on GitHub (Apr 23, 2025): I guess there are different problems here: 1. what's seen in the editor (the input element) 2. what's rendered on the screen as outgoing message 3. what's rendered on the screen as incoming message Number 1 can be fixed/improved by disabling "Rich Text Input for Chat" Number 2 is this issue Number 3 is perhaps @rgaricano 's comment..?
Author
Owner

@rgaricano commented on GitHub (Apr 23, 2025):

  1. what's prompted model rendered
@rgaricano commented on GitHub (Apr 23, 2025): 4. what's prompted model rendered
Author
Owner

@Blue-Cardigan commented on GitHub (Apr 28, 2025):

Thanks for signposting the setting. Rich text formatting should be off by default until it works more consistently imo.

Something else to add here (let me know if this belongs in a different issue):

  • Sometimes only part of pasted markdown text actually formats with markdown. Screenshot: this is text which has just been pasted in, you can see the h2s are still showing hashes, but code is formatted.
Image

Another issue I'm now finding hard to replicate:

  • Sometimes pasted markdown text freezes up the input, and I can't type or interact.
  • When I encountered this I was pasting in large tables, so seems likely this as a rich text/table formatting issue.
@Blue-Cardigan commented on GitHub (Apr 28, 2025): Thanks for signposting the setting. Rich text formatting should be off by default until it works more consistently imo. Something else to add here (let me know if this belongs in a different issue): - Sometimes only part of pasted markdown text actually formats with markdown. Screenshot: this is text which has just been pasted in, you can see the h2s are still showing hashes, but `code` is formatted. <img width="787" alt="Image" src="https://github.com/user-attachments/assets/2cedae05-162c-40a7-a3f8-afc9af406dce" /> Another issue I'm now finding hard to replicate: - Sometimes pasted markdown text freezes up the input, and I can't type or interact. - When I encountered this I was pasting in large tables, so seems likely this as a rich text/table formatting issue.
Author
Owner

@tjbck commented on GitHub (Apr 28, 2025):

Image

Can't seem to produce on our end.

@tjbck commented on GitHub (Apr 28, 2025): <img width="1462" alt="Image" src="https://github.com/user-attachments/assets/93d34f20-01b1-4d73-ab00-f948bb2532a8" /> Can't seem to produce on our end.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4938