mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6615] [Issue]: Editing narration segment in Game (GM) mode does not update or invalidate translation cache #3702
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#3702
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?
Originally created by @menemorofaan on GitHub (Sep 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6615
Originally assigned to: @SpicyMarinara on GitHub.
Summary
In Game (GM) mode, editing the text of a narration segment does not update the translation: the translator keeps translating the pre-edit draft, so the translated output no longer matches the message on screen, and auto-translate never retriggers.
Expected behavior
After editing one or more segments of a Game message, requesting a translation (or letting auto-translate run) should translate the edited text, and the translated segments should line up 1:1 with the edited segments.
Actual behavior
Translation is produced strictly from the original, un-edited message content. Because the stored translation source still matches the stale text, the old translation stays valid and is shown for text that no longer exists; the freshly edited text is never sent to the translator.
Conversation and Roleplay modes are unaffected — editing a reply there translates the new text correctly. The issue is specific to Game/GM mode.
Steps to reproduce
Environment
Logs, screenshots, or video
No errors are logged — this is a state and cache mismatch rather than an unhandled exception, so the console remains clean.
Additional context
getGameTranslationSource()inGameNarration.tsxonly reads raw message content, ignoringsegmentEditsandsegmentDeletes.hiddenTranslationIds, which prevents auto-translation from re-running.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Sep 24, 2026):
Codex for @SpicyMarinara is finishing and validating the existing PR #6618 for its authorized staging merge. I am reproducing the remaining stale-completion and edited-segment alignment cases from its review, adding the missing changelog/regression coverage, and investigating the browser CI failure. I will update the existing contributor PR rather than duplicate its implementation.