mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3720] [GUI] user message bubble collapses line breaks (multi-line input shows on one line) #1552
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1552
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xvcezrqpbxtpzblrt on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3720
Area
[GUI] (the desktop app)
Desktop app, Terminal or source?
Desktop app (Windows)
What happened
A multi-line message typed into the chat box is sent correctly, but the user message bubble renders it as one line: the line breaks are collapsed to spaces. The assistant reply to the same message renders its line breaks normally.
The text is not lost. In the DOM the bubble still contains the
\ncharacters; the bubble is a plain text node withwhite-space: normal, so the browser collapses them. Assistant bubbles are rendered as Markdown (<p>elements) and are not affected.Reproduced with the exact text from the report.
Input (three lines):
Rendered user bubble:
Smallest steps or command that reproduce it
1、xxxxxxxx, press Shift+Enter, type2、xxxxxxxx, Shift+Enter, type3、xxxxxxxx. (Pasting the three lines does the same.)Expected: the user bubble keeps the three lines.
Actual: one line, the newlines become spaces.
Reproduction status
Reproduced locally
Strata version
Strata 0.2.2 · engine 0.1.47
Graphics card, memory and system
RTX 3080 Ti Laptop 16 GB · 64 GB RAM · Windows 11 (10.0.26300)
Model, size and settings
Swift 1.5 IQ3_XXS · 393K context · pictures on
Logs
No engine error: this is client-side rendering. DOM/CSS evidence from the running app (desktop host,
http://127.0.0.1:47831):The rule comes from
assets/index-BZOwU-vv.css:There is no
white-spacedeclaration, so the defaultnormalapplies.Possible fix (not tested):
.st-msg--user .st-bubble { white-space: pre-wrap; overflow-wrap: anywhere; }, or render the user text through the same line-break-preserving path as the assistant Markdown.The input box itself is fine: Shift+Enter inserts
\n(verified in the textarea) and Enter sends.@Niko1221 commented on GitHub (Oct 26, 2026):
Fixed in 0.2.5: a multi-line message keeps its line breaks in the bubble.