[PR #5739] [MERGED] Fix iPhone chat shell keyboard displacement #6911

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5739
Author: @SpicyMarinara
Created: 9/1/2026
Status: ✅ Merged
Merged: 9/1/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/5710-ios-absolute-chat-shell


📝 Commits (3)

  • 127d16e chore: start iOS chat shell follow-up
  • 1539296 fix: anchor iOS chat shell during keyboard focus
  • 016201d test: model native iOS keyboard pan

📊 Changes

4 files changed (+72 additions, -8 deletions)

View changed files

📝 CHANGELOG.md (+1 -1)
📝 e2e/core-flows.e2e.ts (+60 -7)
📝 packages/client/src/components/layout/AppShell.tsx (+4 -0)
📝 packages/client/src/styles/globals.css (+7 -0)

📄 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

Why this change

  • Physical-iPhone testing confirms the latest staging build can still move the entire Roleplay shell into the dark document backing when the composer receives focus.
  • The existing absolute visual-viewport offset was applied to a fixed shell. Current iOS WebKit can visually pan a locked document during keyboard focus while leaving document scroll offsets at zero, making that fixed path apply the displacement in the wrong coordinate space.

What changed

  • Mark iOS WebKit at the document root by reusing the existing platform predicate.
  • Position active iOS chat shells in document coordinates while retaining the existing visual-viewport top and height; Android keeps the fixed-shell path.
  • Extend the mobile keyboard regression to require the iOS document-coordinate shell contract.
  • Correct the existing Unreleased changelog entry.

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

  • Regression-first proof failed on staging because the iOS document marker was absent and the active chat shell remained fixed.
  • pnpm check passed, including Impeccable context, localization, formatting, lint, E2E type checking, and production builds.
  • The focused keyboard viewport regression passed on iPhone-sized WebKit and Android-sized Chromium.
  • Adjacent mobile Roleplay chrome, composer-history, and topbar tests passed; the topbar WebKit case also passed in an isolated rerun.
  • The broad local pnpm smoke:ui attempt did not complete: the machine exhausted its remaining disk space while Playwright wrote failure traces for unrelated cross-project fixture failures. Hosted UI checks remain the complete matrix gate.

Manual verification notes

  • The in-app browser connection was unavailable in this session.
  • Physical-iPhone confirmation remains required after deployment because desktop Playwright WebKit cannot invoke the native iOS keyboard pan.
  • Manually verify Roleplay composer focus, typing, keyboard dismissal, and transcript scrolling on the staging Docker image.

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] <paths> follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

No user documentation, localization catalog, or release metadata changes are needed. The existing Unreleased changelog entry is corrected.

UI evidence (if applicable)

The reporter attached current-staging before/after physical-iPhone screenshots to issue #5710. The after image shows the chat shell displaced completely out of view above the keyboard.

Summary by CodeRabbit

  • Bug Fixes

    • Improved chat behavior on iPhone and iPad when the keyboard opens.
    • Keeps the chat interface and Roleplay content visible above the keyboard while iOS WebKit pans the page.
    • Prevents unexpected shell movement during text input.
  • Tests

    • Added end-to-end coverage for iOS WebKit detection and chat shell positioning.

🔄 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/5739 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/1/2026 **Status:** ✅ Merged **Merged:** 9/1/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5710-ios-absolute-chat-shell` --- ### 📝 Commits (3) - [`127d16e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/127d16e26b5e759120dbbd210c9089c7b5647f45) chore: start iOS chat shell follow-up - [`1539296`](https://github.com/Pasta-Devs/Marinara-Engine/commit/153929620961d8e85398a96dcede8fec7f9ba929) fix: anchor iOS chat shell during keyboard focus - [`016201d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/016201dad2d52c18cb34399f6364b398df01b8c7) test: model native iOS keyboard pan ### 📊 Changes **4 files changed** (+72 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -1) 📝 `e2e/core-flows.e2e.ts` (+60 -7) 📝 `packages/client/src/components/layout/AppShell.tsx` (+4 -0) 📝 `packages/client/src/styles/globals.css` (+7 -0) </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 ## Why this change - Physical-iPhone testing confirms the latest staging build can still move the entire Roleplay shell into the dark document backing when the composer receives focus. - The existing absolute visual-viewport offset was applied to a fixed shell. Current iOS WebKit can visually pan a locked document during keyboard focus while leaving document scroll offsets at zero, making that fixed path apply the displacement in the wrong coordinate space. ## What changed - Mark iOS WebKit at the document root by reusing the existing platform predicate. - Position active iOS chat shells in document coordinates while retaining the existing visual-viewport top and height; Android keeps the fixed-shell path. - Extend the mobile keyboard regression to require the iOS document-coordinate shell contract. - Correct the existing Unreleased changelog entry. ## 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 - Regression-first proof failed on staging because the iOS document marker was absent and the active chat shell remained fixed. - `pnpm check` passed, including Impeccable context, localization, formatting, lint, E2E type checking, and production builds. - The focused keyboard viewport regression passed on iPhone-sized WebKit and Android-sized Chromium. - Adjacent mobile Roleplay chrome, composer-history, and topbar tests passed; the topbar WebKit case also passed in an isolated rerun. - The broad local `pnpm smoke:ui` attempt did not complete: the machine exhausted its remaining disk space while Playwright wrote failure traces for unrelated cross-project fixture failures. Hosted UI checks remain the complete matrix gate. ### Manual verification notes - The in-app browser connection was unavailable in this session. - Physical-iPhone confirmation remains required after deployment because desktop Playwright WebKit cannot invoke the native iOS keyboard pan. - Manually verify Roleplay composer focus, typing, keyboard dismissal, and transcript scrolling on the staging Docker image. ## 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] <paths>` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) No user documentation, localization catalog, or release metadata changes are needed. The existing Unreleased changelog entry is corrected. ## UI evidence (if applicable) The reporter attached current-staging before/after physical-iPhone screenshots to issue #5710. The after image shows the chat shell displaced completely out of view above the keyboard. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved chat behavior on iPhone and iPad when the keyboard opens. * Keeps the chat interface and Roleplay content visible above the keyboard while iOS WebKit pans the page. * Prevents unexpected shell movement during text input. * **Tests** * Added end-to-end coverage for iOS WebKit detection and chat shell positioning. <!-- 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:50 +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#6911
No description provided.