[PR #2079] [MERGED] fix(otome-forge): iPhone long lines follow without shaking; condense to ~5000 words; daily messages count love interests (0.7.2) #2104

Closed
opened 2026-11-07 16:39:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2079
Author: @SpicyMarinara
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/3/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/otome-condense-autoplay-reachouts


📝 Commits (2)

  • d15a0c4 fix(otome-forge): iPhone long lines follow without shaking; condense to ~5000 words; daily messages count love interests (0.7.2)
  • 71bbe4b fix(otome-forge): settle the dialogue box a frame after its line is whole; review fixes (0.7.2)

📊 Changes

29 files changed (+628 additions, -402 deletions)

View changed files

➕ artifacts/otome-forge-0.7.2.zip (+0 -0)
📝 catalog/preview/catalog.json (+8 -8)
📝 catalog/preview/notes.json (+6 -6)
📝 catalog/preview/v2/catalog.json (+8 -8)
📝 catalog/preview/v2/notes.json (+6 -6)
📝 catalog/preview/v3/catalog.json (+8 -8)
📝 catalog/preview/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+6 -0)
📝 packages/otome-forge/README.md (+2 -2)
📝 packages/otome-forge/client.js (+183 -179)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+102 -102)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json (+2 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/DialogueBox.tsx (+61 -24)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/settings/Connections.tsx (+2 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts (+7 -4)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/home.ts (+4 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts (+5 -1)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/memory/memory.ts (+5 -4)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/memory/timeline.ts (+3 -2)

...and 9 more files

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #2078

Why this change

The maintainer found three problems in Otome Hearth 0.7.1:

  • Long lines on iPhone. The dialogue box follows a long line's typing. On a real iPhone it shakes ("like it's trying to move down but can't"), then jumps back short of the end once the line finishes. This happens with Auto on or off, for narration and dialogue alike, so the player has to scroll by hand to read the rest.
    • Playwright's WebKit with iPhone emulation does not reproduce it: there the old box reaches the end.
    • The maintainer confirmed that lines type letter by letter, so Reduce Motion is not the cause.
    • Working explanation: iOS undoes the box's programmatic scroll whenever its text changes. The reveal replaces its text every 40 ms, and the final change at the line's end gets no scroll after it.
  • Condensed timeline size. The timeline condenses past 13k + 1k tokens (0.7.1). The maintainer wants it retold in about half that, about 5,000 words. The prompt asked for at most 3,000.
  • Daily messages counted the wrong thing. The Settings number counted reach-outs, and each reach-out picked a love interest at random, so one love interest could take two of the day's slots. The maintainer: the number is how many love interests may message the player first each day, of their own accord, each with a message or a few.

What changed

Package: otome-forge 0.7.2 (rebuilt client.js, server.mjs, artifact and catalog preview entries).

  • Dialogue box (screens/reader/DialogueBox.tsx, theme/styles.ts):
    • No scroll happens while the line's text changes. While a line types, the box clips (data-lifting, overflow-y: hidden) and the typed block is lifted with translateY, so the row being typed sits at the bottom edge. A typed-out line shows its last row, even when a slow frame types the last rows at once.
    • The lift is measured on screen (client rects), so the lift itself never counts. It never drops back at one width, is measured afresh when the box's width changes, and is capped at the line's end.
    • One requestAnimationFrame after the line is whole (typed out or Next), the box becomes a scroller again with scrollTop set to the lift. Nothing on screen moves, and the player can then scroll.
    • scrollbar-gutter: stable keeps the text's width the same in both modes.
    • The touch and wheel take-over is gone: a typing line can't be scrolled by hand. Next shows it whole, and then it scrolls.
  • Condensing (prompts.ts): TIMELINE_FOLD_WORDS is 5000 and the prompt says "to about 5000 words, and no more". The reply room is unchanged: outputBudget sends max(8192, 10240) + 16,000 tokens.
  • Daily messages (phone/daily.ts, schemas/world.ts, shared/api-types.ts):
    • Each local day's quota keeps wrote, the love interests who wrote first. They are left out of the day's later attempts.
    • Attempts are spaced by the smaller of the limit and the number of love interests met, so a limit above the cast still spreads over the day.
    • Settings copy: "Love interests who message you each day", with a hint that each writes once that day, in one or a few messages. The stored field and keys keep their names.
    • ponytail: a reach-out reserved just before local midnight that lands after it counts on the earlier day, because the job can't read the request's time zone.
  • Docs: README (the setting; also no suggested replies since 0.7.0, and Close earns 5 affection since 0.7.1) and CHANGELOG 0.7.2.

Package and security impact

  • Affected package IDs: otome-forge
  • Engine compatibility impact: none (minEngineVersion unchanged)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: world.phoneDaily.days[*] gains an optional wrote list. Older documents read as before.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

What the agent ran:

  • tests/otome-forge-*.regression.ts: 633/633 pass; tests/otome-forge-*.regression.mjs: 13/13 pass.
  • typecheck-packages.mjs otome-forge, eslint and prettier on the changed files, git diff --check: clean.
  • Browser tests on desktop and mobile Chromium:
    • Pass: the two new dialogue box tests, the long-line text and held-click tests, and the CG test whose line starts "scrolled to the top".
    • The new follow test models the iPhone with a MutationObserver that resets the box's scrollTop on every text change. 0.7.1's build fails it: the finished line's end sat at 391 px in a 171 px box.
    • The full reader and loop suites were still running locally when this opened; CI runs them.
  • validate-catalog.mjs could not run locally: this sparse worktree excludes the other packages' artifacts. CI runs it.
  • CodeRabbit: 0 findings on the first commit.
  • An independent four-lens review with adversarial verification confirmed seven findings. The second commit fixes all of them except the midnight edge, which has the ponytail: note. The rejected findings were a cosmetic old label in a test title (fixed anyway) and three condensing cost and room concerns, refuted with the 26k output budget and the 32k minimum context.

Manual verification notes

  • Manually verify on an iPhone: play a long narration line and a long dialogue line with Auto off. The box follows the typing without shaking and ends on the line's last row.
  • Manually verify the same with Auto on: Auto moves on only after the box has shown the line's end.
  • Manually verify on an iPhone: press Next while a long line types. The rest appears below where you were, and you can scroll down to it.
  • Manually verify that turning the phone sideways while a long line types keeps the row being typed in view.
  • Manually verify on desktop: a long line follows its typing, and once it's whole the mouse wheel scrolls it.
  • Manually verify Settings → Connections: the field reads "Love interests who message you each day". With it set to 2, two different love interests write first over a day, and neither writes first twice.
  • Manually verify with debug mode on: when a long story condenses its timeline, the condensing prompt asks for "about 5000 words, and no more".

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

None: the dialogue box change is in motion, and the browser tests above measure it.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/2079 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/3/2026 **Status:** ✅ Merged **Merged:** 11/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/otome-condense-autoplay-reachouts` --- ### 📝 Commits (2) - [`d15a0c4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d15a0c442d740be0e8c9f9cb79cbbf7c581eca3f) fix(otome-forge): iPhone long lines follow without shaking; condense to ~5000 words; daily messages count love interests (0.7.2) - [`71bbe4b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/71bbe4b713a4feb33deb9e0a4305bfdcda0d0522) fix(otome-forge): settle the dialogue box a frame after its line is whole; review fixes (0.7.2) ### 📊 Changes **29 files changed** (+628 additions, -402 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.7.2.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+8 -8) 📝 `catalog/preview/notes.json` (+6 -6) 📝 `catalog/preview/v2/catalog.json` (+8 -8) 📝 `catalog/preview/v2/notes.json` (+6 -6) 📝 `catalog/preview/v3/catalog.json` (+8 -8) 📝 `catalog/preview/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+6 -0) 📝 `packages/otome-forge/README.md` (+2 -2) 📝 `packages/otome-forge/client.js` (+183 -179) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+102 -102) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json` (+2 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/DialogueBox.tsx` (+61 -24) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/settings/Connections.tsx` (+2 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts` (+7 -4) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/home.ts` (+4 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts` (+5 -1) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/memory/memory.ts` (+5 -4) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/memory/timeline.ts` (+3 -2) _...and 9 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #2078 ## Why this change The maintainer found three problems in Otome Hearth 0.7.1: - **Long lines on iPhone.** The dialogue box follows a long line's typing. On a real iPhone it shakes ("like it's trying to move down but can't"), then jumps back short of the end once the line finishes. This happens with Auto on or off, for narration and dialogue alike, so the player has to scroll by hand to read the rest. - Playwright's WebKit with iPhone emulation does not reproduce it: there the old box reaches the end. - The maintainer confirmed that lines type letter by letter, so Reduce Motion is not the cause. - Working explanation: iOS undoes the box's programmatic scroll whenever its text changes. The reveal replaces its text every 40 ms, and the final change at the line's end gets no scroll after it. - **Condensed timeline size.** The timeline condenses past 13k + 1k tokens (0.7.1). The maintainer wants it retold in about half that, about 5,000 words. The prompt asked for at most 3,000. - **Daily messages counted the wrong thing.** The Settings number counted reach-outs, and each reach-out picked a love interest at random, so one love interest could take two of the day's slots. The maintainer: the number is how many love interests may message the player first each day, of their own accord, each with a message or a few. ## What changed Package: `otome-forge` 0.7.2 (rebuilt `client.js`, `server.mjs`, artifact and catalog preview entries). - **Dialogue box** (`screens/reader/DialogueBox.tsx`, `theme/styles.ts`): - No scroll happens while the line's text changes. While a line types, the box clips (`data-lifting`, `overflow-y: hidden`) and the typed block is lifted with `translateY`, so the row being typed sits at the bottom edge. A typed-out line shows its last row, even when a slow frame types the last rows at once. - The lift is measured on screen (client rects), so the lift itself never counts. It never drops back at one width, is measured afresh when the box's width changes, and is capped at the line's end. - One `requestAnimationFrame` after the line is whole (typed out or Next), the box becomes a scroller again with `scrollTop` set to the lift. Nothing on screen moves, and the player can then scroll. - `scrollbar-gutter: stable` keeps the text's width the same in both modes. - The touch and wheel take-over is gone: a typing line can't be scrolled by hand. Next shows it whole, and then it scrolls. - **Condensing** (`prompts.ts`): `TIMELINE_FOLD_WORDS` is 5000 and the prompt says "to about 5000 words, and no more". The reply room is unchanged: `outputBudget` sends max(8192, 10240) + 16,000 tokens. - **Daily messages** (`phone/daily.ts`, `schemas/world.ts`, `shared/api-types.ts`): - Each local day's quota keeps `wrote`, the love interests who wrote first. They are left out of the day's later attempts. - Attempts are spaced by the smaller of the limit and the number of love interests met, so a limit above the cast still spreads over the day. - Settings copy: "Love interests who message you each day", with a hint that each writes once that day, in one or a few messages. The stored field and keys keep their names. - `ponytail:` a reach-out reserved just before local midnight that lands after it counts on the earlier day, because the job can't read the request's time zone. - **Docs:** README (the setting; also no suggested replies since 0.7.0, and Close earns 5 affection since 0.7.1) and CHANGELOG 0.7.2. ## Package and security impact - Affected package IDs: `otome-forge` - Engine compatibility impact: none (minEngineVersion unchanged) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: `world.phoneDaily.days[*]` gains an optional `wrote` list. Older documents read as before. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` What the agent ran: - `tests/otome-forge-*.regression.ts`: 633/633 pass; `tests/otome-forge-*.regression.mjs`: 13/13 pass. - `typecheck-packages.mjs otome-forge`, eslint and prettier on the changed files, `git diff --check`: clean. - Browser tests on desktop and mobile Chromium: - Pass: the two new dialogue box tests, the long-line text and held-click tests, and the CG test whose line starts "scrolled to the top". - The new follow test models the iPhone with a `MutationObserver` that resets the box's `scrollTop` on every text change. 0.7.1's build fails it: the finished line's end sat at 391 px in a 171 px box. - The full reader and loop suites were still running locally when this opened; CI runs them. - `validate-catalog.mjs` could not run locally: this sparse worktree excludes the other packages' artifacts. CI runs it. - CodeRabbit: 0 findings on the first commit. - An independent four-lens review with adversarial verification confirmed seven findings. The second commit fixes all of them except the midnight edge, which has the `ponytail:` note. The rejected findings were a cosmetic old label in a test title (fixed anyway) and three condensing cost and room concerns, refuted with the 26k output budget and the 32k minimum context. ### Manual verification notes - Manually verify on an iPhone: play a long narration line and a long dialogue line with Auto off. The box follows the typing without shaking and ends on the line's last row. - Manually verify the same with Auto on: Auto moves on only after the box has shown the line's end. - Manually verify on an iPhone: press Next while a long line types. The rest appears below where you were, and you can scroll down to it. - Manually verify that turning the phone sideways while a long line types keeps the row being typed in view. - Manually verify on desktop: a long line follows its typing, and once it's whole the mouse wheel scrolls it. - Manually verify Settings → Connections: the field reads "Love interests who message you each day". With it set to 2, two different love interests write first over a day, and neither writes first twice. - Manually verify with debug mode on: when a long story condenses its timeline, the condensing prompt asks for "about 5000 words, and no more". ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) None: the dialogue box change is in motion, and the browser tests above measure it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:39:31 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#2104
No description provided.