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
fix: [ENG-3815] Preserve line breaks in markdown rendering for Gemini models (#5443)
* fix: preserve line breaks in markdown rendering for Gemini models
Fixes line break formatting for Gemini model responses in the Chat view.
Single newlines were being collapsed by the markdown renderer (Streamdown)
following standard markdown behavior, causing text to appear run together.
This change adds a `preserveLineBreaksForMarkdown` utility that converts
single newlines to double newlines (paragraph breaks) for proper display,
while preserving code blocks and existing double newlines.
Affected components:
- TextMessage.tsx
- ChatOnlyView.tsx
- AssistantToolCalls.tsx
- Realtime.tsx
Fixes ENG-3815
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Update web/lib/textHelpers.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
---------
Co-authored-by: replicas-connector[bot] <replicas-connector[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Justin Torre <justintorre75@gmail.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
0 commit comments