Skip to content

Pasting a lot of newlines into the prompt input freezes the ui #499

Description

@quirinecker

Hello,

We noticed that the UI freezes when a lot of newlines are being pasted into the input field. I understand that the input field is of type div and has the attribute contenteditable = true, which was explained why in issue #285. Although I tested the same input in ChatGPT and it seems to handle a lot of newlines better (still freezes but not as long). To be clear, this is not really that important for us because usually people don't paste that many newlines, and if the line count is below 700, it is not that bad. Below is one video with DeepChat and one with ChatGPT. The input I pasted was just a bunch of . characters separated by new lines for about 1000 lines. Another thing to note is that I only tested this in Firefox and Chrome, and it only appeared in Chrome.

Recording.2026-04-14.102444.1.mp4
Recording.2026-04-14.102252.1.mp4

Thank you for continuously updating this library.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions