[PR #5687] [MERGED] Fix mobile Roleplay composer and iPhone reloads #6885

Closed
opened 2026-10-23 04:14:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5687
Author: @SpicyMarinara
Created: 8/31/2026
Status: ✅ Merged
Merged: 8/31/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/5685-5686-mobile-roleplay-ios


📝 Commits (3)

  • 1bca60a chore: start mobile Roleplay and iOS fixes
  • c110759 fix: stabilize mobile Roleplay sessions
  • ed687be fix: harden app update refresh

📊 Changes

10 files changed (+72 additions, -100 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 e2e/core-flows.e2e.ts (+42 -1)
📝 packages/client/src/App.tsx (+2 -8)
📝 packages/client/src/components/chat/ChatInput.tsx (+0 -48)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+0 -33)
➕ packages/client/src/lib/app-update-prompt.ts (+20 -0)
📝 packages/client/src/localization/locales/en.json (+3 -0)
📝 packages/client/src/main.tsx (+2 -1)
📝 packages/client/src/styles/globals.css (+0 -8)
📝 packages/client/vite.config.ts (+1 -1)

📄 Description

Important

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

Linked issue

Closes #5685
Closes #5686

Why this change

  • Mobile Roleplay replaces its complete composer with a text-only launcher when the user scrolls upward, hiding controls that should remain stable.
  • iPhone sessions can be replaced without warning by automatic PWA/build-skew recovery, while repeated Roleplay avatars also carry permanent compositing hints that add avoidable WebKit GPU pressure.

What changed

  • Removed the Roleplay-only scroll-collapse branch so the existing complete composer stays mounted throughout transcript scrolling.
  • Switched service-worker and server-build updates to one localized, persistent prompt; refresh happens only when the user selects Refresh. The guarded missing-lazy-chunk recovery remains automatic because that page cannot load the requested code.
  • Removed permanent opacity/filter compositing hints from repeated Roleplay avatar images.
  • Added browser regression coverage for composer controls after upward scrolling and for build mismatches waiting for explicit confirmation.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated evidence:

  • pnpm check: passed, including localization, formatting, lint, type checks, server/client production builds, and PWA generation.
  • Targeted Playwright iPhone/WebKit regressions: 2 passed (update confirmation and full Roleplay composer after upward scrolling).
  • The same update-confirmation regression passed under desktop Chromium and mobile Chromium in the full browser lane.
  • Node regressions: 169/170 passed locally; the existing macOS writer-lease fixture fails because this host supplies no boot ID while the fixture force-writes a version-4 lease. Linux CI remains authoritative.
  • Full browser lane: both new behaviors passed across applicable Chromium projects; isolated WebKit passed twice. The three-project local run also reproduced unrelated pre-existing WebKit timing failures under sustained parallel load.

Manual verification notes

  • Manually verify the update-ready prompt and explicit refresh action in an installed iPhone PWA.
  • Manually verify a long, avatar-heavy Roleplay chat and opening layered controls on real iPhone hardware.
  • The reported iPhone process termination was not reproduced on physical hardware; this PR removes confirmed silent reload paths and reduces a documented WebKit compositor pressure source without claiming every possible device-level crash is eliminated.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a docs-i18n follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

A user-focused entry was added under CHANGELOG.md [Unreleased]. No user-facing documentation pages or release metadata changed.

UI evidence (if applicable)

The maintainer supplied the before/expected iPhone screenshots in #5685. The automated iPhone-sized WebKit regression verifies the attachment, quick-switcher, textarea, and send controls remain visible after scrolling upward.

Summary by CodeRabbit

  • New Features

    • Added an update notification with a refresh action when a new app version is available.
    • Updates now require explicit user confirmation before being applied.
  • Bug Fixes

    • Mobile Roleplay chat now keeps the full composer visible while browsing message history.
    • Improved iPhone WebKit memory usage by reducing persistent rendering layers for avatars and sprites.
    • Prevented automatic navigation when an update is detected until Refresh is selected.

🔄 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-Engine/pull/5687 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/31/2026 **Status:** ✅ Merged **Merged:** 8/31/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5685-5686-mobile-roleplay-ios` --- ### 📝 Commits (3) - [`1bca60a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1bca60acd9e2821d8184fbbf76be86912fa12a0d) chore: start mobile Roleplay and iOS fixes - [`c110759`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c110759d84d7d1bc27878817c18262656a4f2b4e) fix: stabilize mobile Roleplay sessions - [`ed687be`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ed687bef13c255c4a1612c9a8f6d97dbc6408e43) fix: harden app update refresh ### 📊 Changes **10 files changed** (+72 additions, -100 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `e2e/core-flows.e2e.ts` (+42 -1) 📝 `packages/client/src/App.tsx` (+2 -8) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+0 -48) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+0 -33) ➕ `packages/client/src/lib/app-update-prompt.ts` (+20 -0) 📝 `packages/client/src/localization/locales/en.json` (+3 -0) 📝 `packages/client/src/main.tsx` (+2 -1) 📝 `packages/client/src/styles/globals.css` (+0 -8) 📝 `packages/client/vite.config.ts` (+1 -1) </details> ### 📄 Description > [!IMPORTANT] > Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main. > Outside and first-time contributors also require an approving review from SpicyMarinara. ## Linked issue Closes #5685 Closes #5686 ## Why this change - Mobile Roleplay replaces its complete composer with a text-only launcher when the user scrolls upward, hiding controls that should remain stable. - iPhone sessions can be replaced without warning by automatic PWA/build-skew recovery, while repeated Roleplay avatars also carry permanent compositing hints that add avoidable WebKit GPU pressure. ## What changed - Removed the Roleplay-only scroll-collapse branch so the existing complete composer stays mounted throughout transcript scrolling. - Switched service-worker and server-build updates to one localized, persistent prompt; refresh happens only when the user selects Refresh. The guarded missing-lazy-chunk recovery remains automatic because that page cannot load the requested code. - Removed permanent opacity/filter compositing hints from repeated Roleplay avatar images. - Added browser regression coverage for composer controls after upward scrolling and for build mismatches waiting for explicit confirmation. ## Validation - [ ] pnpm check passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed CONTRIBUTING.md Automated evidence: - pnpm check: passed, including localization, formatting, lint, type checks, server/client production builds, and PWA generation. - Targeted Playwright iPhone/WebKit regressions: 2 passed (update confirmation and full Roleplay composer after upward scrolling). - The same update-confirmation regression passed under desktop Chromium and mobile Chromium in the full browser lane. - Node regressions: 169/170 passed locally; the existing macOS writer-lease fixture fails because this host supplies no boot ID while the fixture force-writes a version-4 lease. Linux CI remains authoritative. - Full browser lane: both new behaviors passed across applicable Chromium projects; isolated WebKit passed twice. The three-project local run also reproduced unrelated pre-existing WebKit timing failures under sustained parallel load. ### Manual verification notes - Manually verify the update-ready prompt and explicit refresh action in an installed iPhone PWA. - Manually verify a long, avatar-heavy Roleplay chat and opening layered controls on real iPhone hardware. - The reported iPhone process termination was not reproduced on physical hardware; this PR removes confirmed silent reload paths and reduces a documented WebKit compositor pressure source without claiming every possible device-level crash is eliminated. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the docs-i18n branch updated to match, or a docs-i18n follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) A user-focused entry was added under CHANGELOG.md [Unreleased]. No user-facing documentation pages or release metadata changed. ## UI evidence (if applicable) The maintainer supplied the before/expected iPhone screenshots in #5685. The automated iPhone-sized WebKit regression verifies the attachment, quick-switcher, textarea, and send controls remain visible after scrolling upward. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added an update notification with a refresh action when a new app version is available. * Updates now require explicit user confirmation before being applied. * **Bug Fixes** * Mobile Roleplay chat now keeps the full composer visible while browsing message history. * Improved iPhone WebKit memory usage by reducing persistent rendering layers for avatars and sprites. * Prevented automatic navigation when an update is detected until Refresh is selected. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:14:35 +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-Engine#6885
No description provided.