mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1202] [MERGED] Fix bare speaker tag rendering #4978
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#4978
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/1202
Author: @cha1latte
Created: 5/25/2026
Status: ✅ Merged
Merged: 5/25/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-issue-1126-speaker-tags📝 Commits (1)
d65a703Fix bare speaker tag rendering📊 Changes
1 file changed (+6 additions, -5 deletions)
View changed files
📝
src/features/modes/shared/chat-ui/components/ChatMessage.tsx(+6 -5)📄 Description
What?
Fixes bare
<speaker>...</speaker>wrappers rendering as literal text in the refactor chat message UI.The shared
ChatMessagespeaker-tag renderer now accepts both bare and named speaker wrappers, so bare tags are stripped consistently while named speaker coloring still works.Fixes #1126
Why?
The pre-HTML detection path already treated the speaker name as optional, but the actual plain-text renderer only matched
<speaker="Name">...</speaker>. That mismatch let existing or newly generated bare speaker tags leak into chat bubbles.How?
<speaker>...</speaker>and<speaker="Name">...</speaker>.Machine Verification
pnpm exec vitest run --config scratch/vitest.issue-1126.config.tsupstream/refactor: bare tag cases failed and leaked literal markup.<speakerish>...</speakerish>.pnpm checkpassed:cargo checknode C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpassed.Evidence
Evidence URL verified with
curl.exe -Ireturning200 OK.Manual Verification
None required for the core claim. The changed path was exercised directly with a component render harness against
ChatMessage.Notes
Targeting
refactorbecause this issue was requested for the refactor lane and the relevant renderer has moved frompackages/client/...tosrc/features/modes/shared/chat-ui/components/ChatMessage.tsx.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.