mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6825] [MERGED] fix(chat): hide the previous swipe's translation while regenerating #7345
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#7345
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/6825
Author: @SpicyMarinara
Created: 9/28/2026
Status: ✅ Merged
Merged: 9/28/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/roleplay-regen-stale-translation📝 Commits (1)
9c82932fix(chat): hide the previous swipe's translation while regenerating📊 Changes
2 files changed (+8 additions, -1 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/client/src/components/chat/ChatMessage.tsx(+6 -1)📄 Description
Linked issue
Closes #6824
Why this change
What changed
ChatMessageshows a stored translation only for the text it was made from (translationSource === message.content, or an unknown source for older data), and never while the message is streaming. This is the rule the Translate button already uses to decide whether a translation belongs to the current text.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated checks run locally on
9c82932c0:tsc --noEmit, ESLint onChatMessage.tsx, and Prettier on changed files: clean. The fullpnpm checkwas not run locally because the maintainer asked for this urgently. CIpnpm-validatecovers it.It passed 3/3 with the fix and failed without it ("no old translation during the stream").
e2e/translation-only.e2e.tspassed 9/9.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Only
CHANGELOG.mdchanges. There are no user-facing docs or release metadata changes.UI evidence (if applicable)
Before the fix, the new stream shows on top, then a divider, then the old swipe's translation. The Playwright capture from mobile WebKit looks the same as the maintainer's iPhone screenshots. After the fix, only the stream is shown.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.