[PR #5712] [MERGED] Fix iOS chat shell scrolling and Roleplay visual retention #6897

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

📋 Pull Request Information

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

Base: staging ← Head: fix/5710-5711-ios-shell-webkit-layers


📝 Commits (3)

  • 684dc05 chore: start iOS shell and visual layer fixes
  • b367ed3 fix: stabilize iOS chat viewport and visual layers
  • 3f4cbd6 style: preserve CSS calc operator formatting

📊 Changes

8 files changed (+148 additions, -23 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+106 -6)
📝 packages/client/src/components/chat/ChatInput.tsx (+2 -1)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+20 -2)
📝 packages/client/src/components/chat/ConversationInput.tsx (+2 -1)
📝 packages/client/src/components/chat/WeatherEffects.tsx (+1 -1)
📝 packages/client/src/components/layout/AppShell.tsx (+0 -9)
📝 packages/client/src/styles/globals.css (+16 -3)

📄 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 #5710
Closes #5711

Why this change

  • Real-device testing confirms the prior iPhone keyboard and black-screen fixes were incomplete on the current staging Docker image.
  • Composer focus can pan the iOS document, after which Marinara transforms its fixed full-screen shell by that scroll amount.
  • Roleplay retains an inactive decoded background and requests compositor layers that do not contribute to the rendered result.

What changed

  • Lock the mobile document/root to the viewport and remove full-shell scroll-transform compensation.
  • Keep Android's focus assistance while preventing iOS composer focus from invoking document-scrolling scrollIntoView().
  • Release the inactive Roleplay background after its crossfade and remove the unused weather-canvas compositor hint.
  • Add iPhone-sized WebKit regression coverage for document locking, stable edit scrolling, and visual-layer cleanup.

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 verification notes

  • pnpm check passed, including localization, formatting, lint, E2E type-checking, and the production build.
  • Focused mobile WebKit coverage passed for Roleplay editing, visual-viewport keyboard geometry, iOS focus without scrollIntoView(), and inactive-background release.
  • Every mobile-adjacent failure from the broad local matrix passed three repeated isolated runs on its original engine: 15/15 mobile WebKit and 15/15 mobile Chromium.
  • The broad local pnpm smoke:ui run finished with 394 passed and 216 skipped. Eight first-pass failures were isolated; seven mobile failures passed all repeated runs. One unrelated desktop group-awareness provider fixture remains reproducibly broken locally because it receives no provider request.
  • The local Docker client is present, but its daemon is unavailable. The PR's hosted container-build-test remains the container gate.

Manual verification notes

  • Physical-iPhone confirmation remains required for the intermittent WebKit black-screen termination.
  • Manually verify composer focus, message editing, keyboard dismissal, transcript scrolling, and sustained Roleplay reading in the installed iPhone PWA.

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 CHANGELOG.md entry is included. No documentation or release metadata changes are needed.

UI evidence (if applicable)

The reporter supplied a physical-iPhone before screenshot showing the displaced app shell above the keyboard. The regression suite now checks the corresponding fixed geometry and layer lifecycle; after-state hardware evidence remains part of the manual iPhone gate.

Summary by CodeRabbit

  • Bug Fixes
    • Improved iPhone chat input behavior by preventing the on-screen keyboard from shifting or transforming the app layout.
    • Stabilized mobile viewport scrolling and prevented unintended input auto-scrolling.
    • Improved mobile layout stability during keyboard interactions.
    • Improved Roleplay background transitions by releasing inactive images after crossfades, reducing visual memory usage.
    • Reduced unnecessary compositor overhead for weather effects.

🔄 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/5712 **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/5710-5711-ios-shell-webkit-layers` --- ### 📝 Commits (3) - [`684dc05`](https://github.com/Pasta-Devs/Marinara-Engine/commit/684dc054888c56c2da46f8d77d2bc6043c738986) chore: start iOS shell and visual layer fixes - [`b367ed3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b367ed3ff369a05ccea58c75d0268f33b050ddc2) fix: stabilize iOS chat viewport and visual layers - [`3f4cbd6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3f4cbd63b5bab6fc62e47e8c61f00a6eb0639d0a) style: preserve CSS calc operator formatting ### 📊 Changes **8 files changed** (+148 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+106 -6) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+2 -1) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+20 -2) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+2 -1) 📝 `packages/client/src/components/chat/WeatherEffects.tsx` (+1 -1) 📝 `packages/client/src/components/layout/AppShell.tsx` (+0 -9) 📝 `packages/client/src/styles/globals.css` (+16 -3) </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 #5710 Closes #5711 ## Why this change - Real-device testing confirms the prior iPhone keyboard and black-screen fixes were incomplete on the current staging Docker image. - Composer focus can pan the iOS document, after which Marinara transforms its fixed full-screen shell by that scroll amount. - Roleplay retains an inactive decoded background and requests compositor layers that do not contribute to the rendered result. ## What changed - Lock the mobile document/root to the viewport and remove full-shell scroll-transform compensation. - Keep Android's focus assistance while preventing iOS composer focus from invoking document-scrolling `scrollIntoView()`. - Release the inactive Roleplay background after its crossfade and remove the unused weather-canvas compositor hint. - Add iPhone-sized WebKit regression coverage for document locking, stable edit scrolling, and visual-layer cleanup. ## 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 verification notes - `pnpm check` passed, including localization, formatting, lint, E2E type-checking, and the production build. - Focused mobile WebKit coverage passed for Roleplay editing, visual-viewport keyboard geometry, iOS focus without `scrollIntoView()`, and inactive-background release. - Every mobile-adjacent failure from the broad local matrix passed three repeated isolated runs on its original engine: 15/15 mobile WebKit and 15/15 mobile Chromium. - The broad local `pnpm smoke:ui` run finished with 394 passed and 216 skipped. Eight first-pass failures were isolated; seven mobile failures passed all repeated runs. One unrelated desktop group-awareness provider fixture remains reproducibly broken locally because it receives no provider request. - The local Docker client is present, but its daemon is unavailable. The PR's hosted `container-build-test` remains the container gate. ### Manual verification notes - Physical-iPhone confirmation remains required for the intermittent WebKit black-screen termination. - Manually verify composer focus, message editing, keyboard dismissal, transcript scrolling, and sustained Roleplay reading in the installed iPhone PWA. ## 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 `CHANGELOG.md` entry is included. No documentation or release metadata changes are needed. ## UI evidence (if applicable) The reporter supplied a physical-iPhone before screenshot showing the displaced app shell above the keyboard. The regression suite now checks the corresponding fixed geometry and layer lifecycle; after-state hardware evidence remains part of the manual iPhone gate. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved iPhone chat input behavior by preventing the on-screen keyboard from shifting or transforming the app layout. * Stabilized mobile viewport scrolling and prevented unintended input auto-scrolling. * Improved mobile layout stability during keyboard interactions. * Improved Roleplay background transitions by releasing inactive images after crossfades, reducing visual memory usage. * Reduced unnecessary compositor overhead for weather effects. <!-- 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:42 +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#6897
No description provided.