mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7616] [MERGED] fix(game): wrap unbreakable runs in the session log and dialogue box #7838
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#7838
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/7616
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/7606-game-log-overflow📝 Commits (4)
ab247e4fix(game): wrap unbreakable runs in the session log and dialogue box50ba7a5fix(game): wrap long runs in the note reader and the speaker nameafcc00bMerge remote-tracking branch 'origin/staging' into fix/7606-game-log-overflowb9cb2cdMerge branch 'staging' into fix/7606-game-log-overflow📊 Changes
4 files changed (+150 additions, -5 deletions)
View changed files
➕
e2e/game-log-overflow.e2e.ts(+143 -0)📝
packages/client/src/components/game/GameNarration.tsx(+4 -4)📝
packages/client/src/components/game/GameReadableDisplay.tsx(+1 -1)📝
packages/client/src/styles/globals.css(+2 -0)📄 Description
Linked issue
Closes #7606
Why this change
neutral|happy|sad|angry|surprised|.... Chrome, Samsung Browser and Safari never wrap a run of words joined by|,/or,with no spaces, so the whole list stayed on one line. Long URLs and longsnake_casetokens have the same effect.What changed
overflow-wrap: anywhereon both scroll containers inGameNarration.tsx).game-narration-proseclass, which now setsoverflow-wrap: anywhereinglobals.css. Side remarks already did this.overflow-wrap: anywhereon its scroll box inGameReadableDisplay.tsx). It has its own formatter and box, so the shared class didn't reach it, and a[Note: …]holding the list made it scroll sideways.[neutral|happy|sad|…]: "…", no longer pushes the name past the dialogue box. The name row can now shrink (min-w-0) and the name wraps (overflow-wrap: anywhere) instead of being cut off at the panel's edge.e2e/game-log-overflow.e2e.ts, which runs on the phone projects. It seeds a Game turn with leaked reasoning behind an unclosed<think>tag, the expression list, a long URL, a<pre>token and a pipe table row, followed by a dialogue line containing the same list, a dialogue line whose speaker is the list, and a[Note: …]holding the list. It checks that no box scrolls sideways, that the speaker name stays inside the dialogue box, that the Note reader doesn't scroll sideways, and that nothing sticks out past the log's right edge, in both Classic and Stacked display.<span class="whitespace-nowrap">can still widen the log, because the Game formatter keeps theclassattribute on spans. That was already the case before this bug and needs a separate decision about which classes to keep.extractLeadingThinkingBlocks). It keeps a reply visible when the opening tag is never closed, because hiding it could hide the whole reply. Its output was not the cause here: the overflow comes from the unwrapped run, whether or not a tag is present. The reporter's text also looks like reasoning written as plain output, with no tag to strip.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent, with results:
playwright test e2e/game-log-overflow.e2e.ts --project=mobile-chromium --project=mobile-webkiton unchanged staging code: 4 failed. Each run reported the narration box, the dialogue box, the Session Logs / Stacked log and the log's right edge, for exampleflex-1 overflow-y-auto px-4 py-3 space-y-4: 1204 > 388.speaker name past the dialogue box's edge(the name'sDIV/SPANpast the panel) andnote reader scrolls sideways(flex-1 overflow-y-auto px-6 py-4: 1014 > 361). With the full change: 4 passed.playwright test e2e/game-log-overflow.e2e.ts e2e/game-widget-style.e2e.ts e2e/game-verb-only-turn.e2e.ts e2e/game-translation-edits.e2e.ts e2e/game-npc-portraits.e2e.ts e2e/chat-widget-dialogue-colors.e2e.ts(desktop-chromium, mobile-chromium, mobile-webkit): 54 passed, 6 skipped. The skips are the specs' own project gates.playwright test e2e/chat-sweep.e2e.ts -g "Game translation follows changed narration"(opens and closes the Note reader; all three projects): 3 passed.pnpm smoke:ui: 7 passed.pnpm check(after merging currentstaging): passed. Its one lint warning is inHomeProfessorMariChat.tsx, which this PR does not touch, and was there before.coderabbit review --agent --committed --base-commit <merge-base>): 0 findings.Manual verification notes
a|b|crun, a long URL or a long unbroken word shows it wrapped in Session Logs, with no sideways scrolling.[Note: …]or[Book: …]with such a run opens a reader that wraps it, with no sideways scrolling.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
The before and after phone screenshots from the spec (mobile Chromium and mobile WebKit, Classic and Stacked) are kept locally and not uploaded. On staging, the expression list and the URL run off the right edge of Session Logs, and the window scrolls sideways. With this change, they wrap inside their cards.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.