You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Sent messages drop the spaces typed at the start of a line #38077
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
Open any thread.
In the composer, type Plan, press Shift+Enter, type three spaces and Step one, press Shift+Enter, then type eight spaces and Detail a.
Send the message.
Expected behavior
The sent bubble shows the lines as they were typed:
Plan
Step one
Detail a
The agent receives exactly this text, so the composer, the bubble and the agent agree.
Actual behavior
The sent bubble shows every line flush left:
Plan
Step one
Detail a
Only the bubble is wrong: the agent receives the indentation intact. The bubble renders the message as Markdown with line breaks turned on. CommonMark folds the lines into one paragraph and strips each line's leading whitespace while parsing, so the indentation is gone before rendering. This is the same kind of gap as #33820 (written list numbers), #35859 (single tildes) and #4133 (literal tags) in sent messages.
Activity