[PR #6962] [MERGED] fix(ipad): open chats from the list, keep text above the keyboard, copy diagnostics #7404

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6962
Author: @SpicyMarinara
Created: 10/2/2026
Status: ✅ Merged
Merged: 10/2/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/ipad-touch


📝 Commits (8)

  • 7ca2fc3 fix(ui): close iPad full-screen panels after opening a chat
  • c978176 fix(chat): keep the edited message above the iPad keyboard
  • 6f66373 fix(settings): copy Support Diagnostics during the tap
  • d79e7fd docs(changelog): note the iPad chat list, keyboard and copy fixes
  • 4297664 Merge remote-tracking branch 'origin/staging' into fix/ipad-touch
  • 0aae818 Merge remote-tracking branch 'origin/staging' into fix/ipad-touch
  • 37d65db Merge remote-tracking branch 'origin/staging' into fix/ipad-touch
  • e435c3e Merge remote-tracking branch 'origin/staging' into fix/ipad-touch

📊 Changes

11 files changed (+242 additions, -31 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
➕ e2e/ipad-touch.e2e.ts (+169 -0)
📝 packages/client/src/components/chat/NewChatConnectionGate.tsx (+2 -2)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+4 -4)
📝 packages/client/src/components/modals/StartCharacterChatModal.tsx (+2 -2)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+18 -13)
📝 packages/client/src/hooks/use-visual-viewport-chat-bottom.ts (+26 -1)
📝 packages/client/src/lib/chat-insights.ts (+2 -2)
📝 packages/client/src/stores/ui.store.ts (+4 -4)
📝 packages/client/src/styles/globals.css (+6 -0)
📝 scripts/regressions/mari-understood-request.regression.ts (+7 -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 #6944

Why this change

On an iPad Pro in Safari:

  • tapping a roleplay in the chat list seemed to do nothing until you tapped the character list;
  • the keyboard covered the message box;
  • the Copy button in Support Diagnostics didn't copy.

iPads get the phone-style shell, but a few places still checked for a phone-sized screen, so they behaved like desktop.

What changed

  • Opening a chat (the "scene does nothing" tap):
    • On touch tablets up to 1440px wide, the chat list and side panels open full screen. But the code that closes them after you pick a chat checked for a window under 768px.
    • On an iPad the chat opened behind the list, and the list stayed on top.
    • Every place that closes a panel after navigating now uses the same check as the shell: the chat list, the new-chat connection gate, starting a chat from a character, search results, and the Bot Browser, Game Assets, Noodle and chat-mode shortcuts.
  • Keyboard:
    • The rules that fit the app above the on-screen keyboard only applied to phones. They now use the same touch-tablet check.
    • When the keyboard opens, the transcript (never the app shell) scrolls back to the message you're editing.
  • Copy Support Diagnostics:
    • Safari only allows a clipboard write while it's still handling the tap. The button first waited up to five seconds for Professor Mari's status, so the copy was refused.
    • That status now loads with the rest of the diagnostics, so the copy happens in the tap.
  • Not changed, the "buttons get stuck" report: I couldn't find a separate cause for it. It may be the same panel left over the chat, which makes taps look dead, but I can't confirm that without an iPad. If it still happens after this, we'll need a fresh report.

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

What I ran (not a replacement for the checklist):

  • Checks: pnpm check and pnpm smoke:ui (7/7) pass.
  • New e2e/ipad-touch.e2e.ts: runs with the iPad Pro 11 profile in WebKit.
    • It covers tapping a roleplay in the chat list, editing a message with the keyboard open, and copying Support Diagnostics.
    • All three pass. The Chromium runs of this file are skipped by design.
  • Regression: mari-understood-request (touched by the diagnostics change) passes.
  • Local CodeRabbit: 0 findings.

To check by hand on a real iPad in Safari:

  • Open the chat list, tap a roleplay, and confirm it opens right away.
  • Edit a message, and confirm the text box stays above the keyboard.
  • Settings → Advanced → Support Diagnostics → Copy, then paste somewhere.
  • Use the app for a while and watch for buttons that stop responding.

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

CHANGELOG entry only.

UI evidence (if applicable)

Covered by the WebKit iPad tests above; no real-device screenshots.


🔄 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/6962 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/2/2026 **Status:** ✅ Merged **Merged:** 10/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/ipad-touch` --- ### 📝 Commits (8) - [`7ca2fc3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7ca2fc338bcbdc6ca25b6bbdc5afaf313006fe94) fix(ui): close iPad full-screen panels after opening a chat - [`c978176`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c9781764179f28dd371e5c5df0db1a402872c6fa) fix(chat): keep the edited message above the iPad keyboard - [`6f66373`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6f6637389d9a25c26f0ec2610273008f043bfe27) fix(settings): copy Support Diagnostics during the tap - [`d79e7fd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d79e7fd76ae397ebd8b76e0d65c624dea923b0d9) docs(changelog): note the iPad chat list, keyboard and copy fixes - [`4297664`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4297664bf5c970380deddd262cc0b00ef79eafa3) Merge remote-tracking branch 'origin/staging' into fix/ipad-touch - [`0aae818`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0aae8186fced426b1c54fba65fb0cb62a57d4fa6) Merge remote-tracking branch 'origin/staging' into fix/ipad-touch - [`37d65db`](https://github.com/Pasta-Devs/Marinara-Engine/commit/37d65db38f72096fe3da5ab3fa2487ebed3dc71c) Merge remote-tracking branch 'origin/staging' into fix/ipad-touch - [`e435c3e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e435c3e0664de150332ae7b493eb536cf8531310) Merge remote-tracking branch 'origin/staging' into fix/ipad-touch ### 📊 Changes **11 files changed** (+242 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) ➕ `e2e/ipad-touch.e2e.ts` (+169 -0) 📝 `packages/client/src/components/chat/NewChatConnectionGate.tsx` (+2 -2) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+4 -4) 📝 `packages/client/src/components/modals/StartCharacterChatModal.tsx` (+2 -2) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+18 -13) 📝 `packages/client/src/hooks/use-visual-viewport-chat-bottom.ts` (+26 -1) 📝 `packages/client/src/lib/chat-insights.ts` (+2 -2) 📝 `packages/client/src/stores/ui.store.ts` (+4 -4) 📝 `packages/client/src/styles/globals.css` (+6 -0) 📝 `scripts/regressions/mari-understood-request.regression.ts` (+7 -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 #6944 ## Why this change On an iPad Pro in Safari: - tapping a roleplay in the chat list seemed to do nothing until you tapped the character list; - the keyboard covered the message box; - the **Copy** button in Support Diagnostics didn't copy. iPads get the phone-style shell, but a few places still checked for a phone-sized screen, so they behaved like desktop. ## What changed - **Opening a chat (the "scene does nothing" tap):** - On touch tablets up to 1440px wide, the chat list and side panels open full screen. But the code that closes them after you pick a chat checked for a window under 768px. - On an iPad the chat opened behind the list, and the list stayed on top. - Every place that closes a panel after navigating now uses the same check as the shell: the chat list, the new-chat connection gate, starting a chat from a character, search results, and the Bot Browser, Game Assets, Noodle and chat-mode shortcuts. - **Keyboard:** - The rules that fit the app above the on-screen keyboard only applied to phones. They now use the same touch-tablet check. - When the keyboard opens, the transcript (never the app shell) scrolls back to the message you're editing. - **Copy Support Diagnostics:** - Safari only allows a clipboard write while it's still handling the tap. The button first waited up to five seconds for Professor Mari's status, so the copy was refused. - That status now loads with the rest of the diagnostics, so the copy happens in the tap. - **Not changed, the "buttons get stuck" report:** I couldn't find a separate cause for it. It may be the same panel left over the chat, which makes taps look dead, but I can't confirm that without an iPad. If it still happens after this, we'll need a fresh report. ## 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 What I ran (not a replacement for the checklist): - **Checks:** `pnpm check` and `pnpm smoke:ui` (7/7) pass. - **New `e2e/ipad-touch.e2e.ts`:** runs with the iPad Pro 11 profile in WebKit. - It covers tapping a roleplay in the chat list, editing a message with the keyboard open, and copying Support Diagnostics. - All three pass. The Chromium runs of this file are skipped by design. - **Regression:** `mari-understood-request` (touched by the diagnostics change) passes. - **Local CodeRabbit:** 0 findings. To check by hand on a real iPad in Safari: - Open the chat list, tap a roleplay, and confirm it opens right away. - Edit a message, and confirm the text box stays above the keyboard. - Settings → Advanced → Support Diagnostics → Copy, then paste somewhere. - Use the app for a while and watch for buttons that stop responding. ## 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 (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) CHANGELOG entry only. ## UI evidence (if applicable) Covered by the WebKit iPad tests above; no real-device screenshots. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:19:26 +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#7404
No description provided.