mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8107] [MERGED] fix(chat): render system messages as readable message blocks #8105
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8107
Author: @SpicyMarinara
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/8101-system-messages📝 Commits (4)
2184a53test(chat): reproduce unformatted system messagesbe4832eMerge remote-tracking branch 'origin/staging' into fix/8101-system-messages56dc746fix(chat): format system messages and protect literal codec9da953fix(chat): protect creator-note code and honor system font size📊 Changes
10 files changed (+541 additions, -72 deletions)
View changed files
📝
e2e/core-flows.e2e.ts(+12 -0)📝
e2e/markdown-blocks.e2e.ts(+5 -2)➕
e2e/system-messages.e2e.ts(+218 -0)📝
packages/client/src/components/bot-browser/BotBrowserView.tsx(+7 -9)📝
packages/client/src/components/chat/ChatMessage.tsx(+34 -32)📝
packages/client/src/components/chat/ConversationMessage.tsx(+38 -28)➕
packages/client/src/components/chat/SystemMessage.tsx(+124 -0)📝
packages/client/src/lib/chat-html.ts(+2 -1)➕
packages/client/src/lib/markdown-code.ts(+53 -0)➕
scripts/regressions/markdown-code.regression.ts(+48 -0)📄 Description
Linked issue
Closes #8101
Why this change
System messages bypassed the formatted message renderer and action controls. Long content was squeezed into a pill, newlines and Markdown/HTML were displayed as plain text, and users could not edit or branch from those messages. Separately, literal HTML inside backticks could reach the HTML parser and change the formatting of later text.
What changed
The maintainer confirmed that the issue's message-processing request is already covered by Advanced Parameters → Post-Processing Messages. Preset-specific custom tags still require compatible regex/preset setup. Fenced wrapping at every width is already on staging through #8104.
Validation
pnpm install --frozen-lockfileandpnpm check: passed, including localization, formatting, types and production builds. The existing HomeProfessorMariChat hook-dependency warning remains; no errors.markdown-code,chat-html-newlinesandopen-issuesNode regressions: 3/3 files passed.pnpm regression:ui e2e/system-messages.e2e.ts e2e/markdown-blocks.e2e.ts e2e/code-block-wrapping.e2e.ts --project=desktop-chromium --project=mobile-chromium --project=mobile-webkit --workers=2: 21/21 passed, plus 1/1 desktop Bot Browser import/creator-notes case.pnpm smoke:ui: 7/7 passed, including Game narration.<font color="#HEX">; the protection was restored and the final suite passed. The hosted-review regressions also failed before repair: Bot Browser produced no literal code spans, the angle-bracket case retained its backticks unprotected, and system text rendered at 17px despite a 24px setting. All now pass. Failure logs, screenshots and traces were preserved.Browser runs used disposable data, ports 7860–7863 and at most two workers. Screenshots were visually inspected. These are automated browser checks, including mobile emulation.
Manual verification still needed
Docs and release impact
Existing localized labels are reused. No new user documentation or release metadata is needed.
UI evidence
Before/after browser screenshots are embedded in a self-contained HTML file; download it to view the original PNGs. All four published images were verified byte-for-byte. The fixture includes a deliberately invalid image for its HTML security probe.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.