mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #2060] [MERGED] fix(otome-forge): a long line in the dialogue box shows every row on iPhone (0.6.24) #2097
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#2097
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-Agents/pull/2060
Author: @SpicyMarinara
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/otome-cut-off-lines📝 Commits (3)
0587885fix(otome-forge): a long line in the dialogue box shows every row on iPhone (#2057)d5c28dcchore(otome-forge): release 0.6.244b55d4aMerge branch 'staging' into fix/otome-cut-off-lines📊 Changes
13 files changed (+130 additions, -42 deletions)
View changed files
➕
artifacts/otome-forge-0.6.24.zip(+0 -0)📝
catalog/preview/catalog.json(+6 -6)📝
catalog/preview/notes.json(+6 -6)📝
catalog/preview/v2/catalog.json(+6 -6)📝
catalog/preview/v2/notes.json(+6 -6)📝
catalog/preview/v3/catalog.json(+6 -6)📝
catalog/preview/v3/notes.json(+6 -6)📝
packages/otome-forge/CHANGELOG.md(+4 -0)📝
packages/otome-forge/client.js(+1 -1)📝
packages/otome-forge/manifest.json(+3 -3)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/DialogueBox.tsx(+11 -1)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/package-otome-forge-reader.e2e.ts(+74 -0)📄 Description
Pull request
Linked issue
Closes #2057
Why this change
On an iPhone, a long narration line in a Closer scene came back cut off mid-word: "…where the rope sawed i". After that came blank space where the rest of the line belonged, with only its final "." visible. The Log showed the same line in full. So the saved text was intact; only the dialogue box's drawing was wrong.
What it isn't:
Array.from(text), nothing rewrites the text, and the 0.6.20pausedlogic only holds a line at 0 behind a CG's pan.What it is: every 40 ms the box changed text in place inside
.of-line, anoverflow-y: autoscroll box. On iOS every scroller has its own composited layer, and WebKit treats two kinds of repaint differently:RenderBlockFlow::layoutBlock:repaintRect.moveBy(-scrollPosition()); repaintRect.intersect(borderBoxSize)). Rows that type while out of view are never redrawn and keep their blank pixels..of-line-restspan repaints its own area, and by then it holds only ".".That matches the screenshot exactly: the line laid out in full, its end blank, and only the "." drawn. The rows most likely went out of view because the player touched or scrolled the box while the end typed.
What changed
Package:
otome-forge(Otome Hearth) 0.6.24. One client file changed, plus tests. Server, prompts and saves are untouched.sources/forge-kitand Gacha Forge are unchanged.screens/reader/DialogueBox.tsx: the reveal span is keyed by${lineKey}:${visible}, so each step of the typing replaces the span instead of changing its text. WebKit repaints a removed span's whole area, rows out of view included, so every row is drawn.restRefattaches to each new span. Thought brackets,data-doneand the screen-reader text are unchanged.<p>, which is never replaced, and still shows the line whole.Release: 0.6.24 with a CHANGELOG entry. The rebuilt
client.js, manifest, preview catalogs andartifacts/otome-forge-0.6.24.zipagree.Package and security impact
otome-forge(0.6.23 → 0.6.24).Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
What the agent ran locally:
.mjsregressions pass.git diff --checkpass.tests/package-otome-forge-reader.e2e.ts, both using the maintainer's exact 498-character line on a fake clock, on desktop-chromium and mobile-chromium at 390 px:.of-line-restis gone. With the source change reverted it fails on both projects, each reporting 450 in-place changes.pointer-eventspart it fails on both projects.Not proven on a device. No iOS simulator or device was available. Desktop WebKit and Chromium don't show the paint fault, and a browser test can check the page's structure but not what the screen draws.
For a human to verify:
Documentation impact
The package CHANGELOG describes the change.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.