Before submitting
Area
apps/web
Steps to reproduce
Submit a prompt that contains some simple html markup like strong. Then submit a prompt that contains a script tag with an alert() call inside.
Expected behavior
I would expect that t3code does an encoding/sanitizing on submit and not at render of my message. I would expect both cases to simply output using encoding like html entities or even in quotes like these.
If the input fields value should really not be sanitized on submit that raises the question if a user could somehow cause a code execution within t3code or on harness side. Like somewhere on the way between the input field and the rendered user input message bubble.
Actual behavior
I understand it is just some markdown renderer, so it might be partially expected behavior. The user message gets rendered as formatted html for common html tags. The strange part is that something like script tags are filtered out and not displayed at all instead of at least encoded.
Impact
Minor bug or occasional failure
Version or commit
No response
Environment
macOS 26.x
Logs or stack traces
Screenshots, recordings, or supporting files
Screenshot 2026-08-03 at 20.06.20.png
Workaround
Copy pasted code seams to be auto surrounded with markdown code block quotes. Manually typed code in prompts is not.
Before submitting
Area
apps/web
Steps to reproduce
Submit a prompt that contains some simple html markup like strong. Then submit a prompt that contains a script tag with an alert() call inside.
Expected behavior
I would expect that t3code does an encoding/sanitizing on submit and not at render of my message. I would expect both cases to simply output using encoding like html entities or even in quotes like
these.If the input fields value should really not be sanitized on submit that raises the question if a user could somehow cause a code execution within t3code or on harness side. Like somewhere on the way between the input field and the rendered user input message bubble.
Actual behavior
I understand it is just some markdown renderer, so it might be partially expected behavior. The user message gets rendered as formatted html for common html tags. The strange part is that something like script tags are filtered out and not displayed at all instead of at least encoded.
Impact
Minor bug or occasional failure
Version or commit
No response
Environment
macOS 26.x
Logs or stack traces
Screenshots, recordings, or supporting files
Screenshot 2026-08-03 at 20.06.20.png
Workaround
Copy pasted code seams to be auto surrounded with markdown code block quotes. Manually typed code in prompts is not.