[GH-ISSUE #5822] [Issue]: Mobile chat menus leave the visual viewport when the keyboard opens #3210

Closed
opened 2026-10-21 06:00:37 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Sep 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5822

Originally assigned to: @SpicyMarinara on GitHub.

Summary

On mobile, focusing an editable field inside a chat menu can move the menu outside the visible screen when the software keyboard opens. Chat Summary reproduces this with its message count, range, context-size, and prompt fields in Roleplay, and the shared behavior must remain usable in every chat mode.

Expected behavior

Any open chat menu containing the focused field should remain inside the current visual viewport while the mobile keyboard is open, with its content scrollable and the focused control visible. Dismissing the keyboard should restore the normal menu geometry without closing the menu.

Actual behavior

The keyboard reduces and pans the visible viewport, but the body-portal chat menu keeps coordinates based on the previous layout viewport. The menu disappears above the visible screen while typing, even though its field remains focused.

Steps to reproduce

  1. Open a Roleplay chat in an iPhone/mobile viewport.
  2. Open Chat Summary from the chat toolbar.
  3. Focus a numeric field such as message count, message range, or context size, or focus a summary prompt field.
  4. Let the software keyboard open and begin typing.
  5. Observe that the menu is no longer visible.

Environment

  • Marinara Engine version: Latest staging at the time of report
  • Install type: docker
  • OS + version: iPhone / iOS; version not provided
  • Browser or app shell: Mobile browser; exact shell not provided

Logs, screenshots, or video

No logs or screenshot were attached to this report. The disappearing focused menu was described directly.

Additional context

  • Chat Summary is the confirmed reproduction surface.
  • The fix should use the current mobile visual viewport for shared chat-menu positioning and available height, rather than adding a one-off offset for a single field.
  • Verify keyboard open and dismiss cycles in Conversation, Roleplay, and Game modes, and verify desktop menu positioning remains unchanged.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Sep 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5822 Originally assigned to: @SpicyMarinara on GitHub. ## Summary On mobile, focusing an editable field inside a chat menu can move the menu outside the visible screen when the software keyboard opens. Chat Summary reproduces this with its message count, range, context-size, and prompt fields in Roleplay, and the shared behavior must remain usable in every chat mode. ## Expected behavior Any open chat menu containing the focused field should remain inside the current visual viewport while the mobile keyboard is open, with its content scrollable and the focused control visible. Dismissing the keyboard should restore the normal menu geometry without closing the menu. ## Actual behavior The keyboard reduces and pans the visible viewport, but the body-portal chat menu keeps coordinates based on the previous layout viewport. The menu disappears above the visible screen while typing, even though its field remains focused. ## Steps to reproduce 1. Open a Roleplay chat in an iPhone/mobile viewport. 2. Open Chat Summary from the chat toolbar. 3. Focus a numeric field such as message count, message range, or context size, or focus a summary prompt field. 4. Let the software keyboard open and begin typing. 5. Observe that the menu is no longer visible. ## Environment - Marinara Engine version: Latest staging at the time of report - Install type: docker - OS + version: iPhone / iOS; version not provided - Browser or app shell: Mobile browser; exact shell not provided ## Logs, screenshots, or video No logs or screenshot were attached to this report. The disappearing focused menu was described directly. ## Additional context - Chat Summary is the confirmed reproduction surface. - The fix should use the current mobile visual viewport for shared chat-menu positioning and available height, rather than adding a one-off offset for a single field. - Verify keyboard open and dismiss cycles in Conversation, Roleplay, and Game modes, and verify desktop menu positioning remains unchanged. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:00:37 +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#3210
No description provided.