Skip to content

fix: render user chat input as plain text#38143

Open
mturac wants to merge 1 commit into
langgenius:mainfrom
mturac:izon/fix-37414-plain-user-input
Open

fix: render user chat input as plain text#38143
mturac wants to merge 1 commit into
langgenius:mainfrom
mturac:izon/fix-37414-plain-user-input

Conversation

@mturac

@mturac mturac commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Render user chat question content as plain text instead of passing it through the markdown renderer.
  • Preserve line breaks and word wrapping in the question bubble.
  • Add a regression test that verifies user-supplied HTML stays textual and does not create DOM controls.

Closes #37414

Tests

  • pnpm test app/components/base/chat/chat/tests/question.spec.tsx
  • pnpm eslint app/components/base/chat/chat/question.tsx app/components/base/chat/chat/tests/question.spec.tsx --fix
  • pnpm type-check
  • git diff --check

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jun 29, 2026
@github-actions github-actions Bot added the web This relates to changes on the web. label Jun 29, 2026
@mturac mturac force-pushed the izon/fix-37414-plain-user-input branch from 681b4af to d1e4e40 Compare June 29, 2026 05:03
@mturac mturac force-pushed the izon/fix-37414-plain-user-input branch from d1e4e40 to 7f3ccd8 Compare June 29, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User Input Is Rendered as HTML Instead of Plain Text

1 participant