Skip to content

[Bug]: Submitted composer message can lose JSX/HTML-like text #5341

Description

@NawfalAhmed

Before submitting

  • I searched existing issues.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web and apps/desktop

Steps to reproduce

  1. Open a thread in T3 Code and focus the composer.
  2. Type a prompt containing JSX or HTML-like code, for example:
    <div className="wrong-tailwind-class">yo<div/> please fix the class in above
  3. Submit the message.
  4. Inspect the submitted user message in the chat transcript.

Expected behavior

The submitted user message should preserve the complete prompt exactly as typed, including JSX/HTML-like text, Tailwind classes, angle brackets, quotes, brackets, and punctuation.

Actual behavior

After submission, the JSX/HTML-like portion becomes missing from the rendered user message while the surrounding prose remains. The text is present while composing, but disappears after the message is submitted. This greatly confuses the user, since they think they might have forgotten to pase the JSX in the prompt.

My message before sending:
Image
My message in chat after sending:
Image

Impact

Major degradation or frequent failure when prompts contain code or markup.

Version or commit

a261a64

Environment

T3 Code Macos app's composer;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions