[PR #5673] [MERGED] Fix mobile keyboard chat handling #6875

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

📋 Pull Request Information

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

Base: staging ← Head: fix/5672-mobile-keyboard-editing


📝 Commits (9)

  • 0825eb1 fix: improve mobile chat keyboard handling
  • 9aa088b test: cover mobile message editing space
  • 8201c9a Merge remote-tracking branch 'origin/staging' into fix/5672-mobile-keyboard-editing
  • 359468a test: verify final edit lines without typing
  • bd90c0e test: capture mobile composer evidence
  • 385ed57 fix: scope mobile overlay hiding to composer focus
  • e8b17a1 test: align roleplay padding regression
  • ea62d31 test: expect compact mobile composer padding
  • 6e3bc0d Merge remote-tracking branch 'origin/staging' into fix/5672-mobile-keyboard-editing

📊 Changes

7 files changed (+187 additions, -12 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+156 -6)
📝 packages/client/src/components/chat/ChatMessage.tsx (+1 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+10 -3)
📝 packages/client/src/components/chat/ConversationMessageShared.tsx (+1 -0)
📝 packages/client/src/styles/globals.css (+16 -1)
📝 scripts/regressions/roleplay-streaming.regression.ts (+2 -2)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote the repository 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 #5672

Why this change

  • Mobile Roleplay typing leaves agent windows over the reduced viewport, message editors cannot expose their final lines until text changes, and Marinara adds avoidable height next to the iOS keyboard form assistant.

What changed

  • Hide Roleplay agent windows, including Echo Chamber and Trackers, while the mobile composer is active.
  • Add trailing scroll space to active Conversation and Roleplay message editors.
  • Compact Marinara-owned composer padding while the software keyboard is open. The iOS Previous/Next/Done form assistant itself is native Safari UI and is not web-styleable.
  • Add the user-facing fix to the Unreleased changelog.

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

Manual verification notes

  • pnpm check passed locally at the final head after merging the latest staging.
  • pnpm exec playwright test e2e/core-flows.e2e.ts --project=mobile-chromium --project=mobile-webkit --grep "mobile (Roleplay context|Conversation editing)" passed: 4 tests.
  • The focused proof hides Echo Chamber and an agent-window probe during Roleplay composer focus, preserves a minimum 44px composer shell while reducing its keyboard-open height by at least 10px, and restores overlays after blur.
  • Conversation and Roleplay editors both reach their final line at maximum scroll before any input event; the unchanged editor value and at least 100px of visible trailing room are asserted.
  • A real-iPhone pass remains useful for the native keyboard animation and native form assistant, which Playwright cannot render.

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 (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • The focused test attaches iPhone-sized WebKit screenshots for the visible Roleplay context, keyboard-active composer, final Roleplay edit line, and final Conversation edit line.
  • The generated screenshots were inspected locally. Direct binary upload was unavailable in the current automation session.

Summary by CodeRabbit

  • Improvements

    • Improved mobile Roleplay and Conversation editing with additional space below messages for easier scrolling.
    • Reduced composer spacing above the mobile keyboard to keep more content visible.
    • Agent overlays now clear while typing in the mobile composer.
    • Improved visibility and layout behavior while editing messages on mobile.
  • Bug Fixes

    • Improved editor and transcript scrolling behavior during mobile message editing.
    • Preserved message content while scrolling to the bottom of mobile editors.

🔄 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/5673 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/30/2026 **Status:** ✅ Merged **Merged:** 8/30/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5672-mobile-keyboard-editing` --- ### 📝 Commits (9) - [`0825eb1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0825eb1f3182429bcc23a5973f70ee93458f8927) fix: improve mobile chat keyboard handling - [`9aa088b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9aa088b92ff47db839478817a5f23275f0978d52) test: cover mobile message editing space - [`8201c9a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8201c9a8940142117c32dc6d4aa12f387fbd1c3b) Merge remote-tracking branch 'origin/staging' into fix/5672-mobile-keyboard-editing - [`359468a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/359468ad24b2d29c274b2ca02600680822c8b2a5) test: verify final edit lines without typing - [`bd90c0e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bd90c0e12f49f4e6a35754ce37d5acaddead5379) test: capture mobile composer evidence - [`385ed57`](https://github.com/Pasta-Devs/Marinara-Engine/commit/385ed5743541d5b488ee3dc4caf93cd86041b790) fix: scope mobile overlay hiding to composer focus - [`e8b17a1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e8b17a1979ed3dafb2da18a5a82423ea85fef873) test: align roleplay padding regression - [`ea62d31`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ea62d31a2316cb6c145ab64777dce7c41bd8eba2) test: expect compact mobile composer padding - [`6e3bc0d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6e3bc0d2512b7ece141f56320c2b610a9ada2f3b) Merge remote-tracking branch 'origin/staging' into fix/5672-mobile-keyboard-editing ### 📊 Changes **7 files changed** (+187 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+156 -6) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+1 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+10 -3) 📝 `packages/client/src/components/chat/ConversationMessageShared.tsx` (+1 -0) 📝 `packages/client/src/styles/globals.css` (+16 -1) 📝 `scripts/regressions/roleplay-streaming.regression.ts` (+2 -2) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote the repository `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #5672 ## Why this change - Mobile Roleplay typing leaves agent windows over the reduced viewport, message editors cannot expose their final lines until text changes, and Marinara adds avoidable height next to the iOS keyboard form assistant. ## What changed - Hide Roleplay agent windows, including Echo Chamber and Trackers, while the mobile composer is active. - Add trailing scroll space to active Conversation and Roleplay message editors. - Compact Marinara-owned composer padding while the software keyboard is open. The iOS Previous/Next/Done form assistant itself is native Safari UI and is not web-styleable. - Add the user-facing fix to the Unreleased changelog. ## 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` ### Manual verification notes - `pnpm check` passed locally at the final head after merging the latest `staging`. - `pnpm exec playwright test e2e/core-flows.e2e.ts --project=mobile-chromium --project=mobile-webkit --grep "mobile (Roleplay context|Conversation editing)"` passed: 4 tests. - The focused proof hides Echo Chamber and an agent-window probe during Roleplay composer focus, preserves a minimum 44px composer shell while reducing its keyboard-open height by at least 10px, and restores overlays after blur. - Conversation and Roleplay editors both reach their final line at maximum scroll before any input event; the unchanged editor value and at least 100px of visible trailing room are asserted. - A real-iPhone pass remains useful for the native keyboard animation and native form assistant, which Playwright cannot render. ## 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 (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - The focused test attaches iPhone-sized WebKit screenshots for the visible Roleplay context, keyboard-active composer, final Roleplay edit line, and final Conversation edit line. - The generated screenshots were inspected locally. Direct binary upload was unavailable in the current automation session. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Improved mobile Roleplay and Conversation editing with additional space below messages for easier scrolling. * Reduced composer spacing above the mobile keyboard to keep more content visible. * Agent overlays now clear while typing in the mobile composer. * Improved visibility and layout behavior while editing messages on mobile. * **Bug Fixes** * Improved editor and transcript scrolling behavior during mobile message editing. * Preserved message content while scrolling to the bottom of mobile editors. <!-- 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:29 +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#6875
No description provided.