[GH-ISSUE #5366] [Issue]: Android APK back button exits instead of dismissing overlays #2970

Closed
opened 2026-10-21 05:58:27 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The Android APK does not use the built-in Android back button to dismiss open menus or overlays. Pressing back exits the app instead.

Expected behavior

Pressing the Android back button should dismiss the currently open menu or overlay instead of exiting the app.

Actual behavior

Pressing the Android back button exits the Android APK, requiring users to dismiss menus with the on-screen close button.

Steps to reproduce

  1. Open Marinara Engine in the Android APK wrapper.
  2. Open a menu or overlay.
  3. Press the Android system back button or use the back gesture.

Environment

  • Marinara Engine version: 2.4.4 (build 2.4.4+e92fa77d518a, commit e92fa77d51)
  • Install type: installer
  • OS + version: Client: Android 17; server: Android / Termux 6.6.118-android15-8-g1831c2a45d9b-ab15739706-4k (arm64)
  • Browser or app shell: Mozilla/5.0 (Linux; Android 17; Pixel 10 Pro Build/CP2A.260805.005; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/151.0.7922.137 Mobile Safari/537.36 MarinaraEngine/Android

Logs, screenshots, or video

No logs provided. Screen recordings are attached: https://cdn.discordapp.com/attachments/1540404434503467080/1540404435673415810/screen-20260821-095548-1787331340638.mp42.mp4 and https://cdn.discordapp.com/attachments/1540404434503467080/1540412960030072952/screen-20260821-101943-17873327667372.mp4

Additional context

The same behavior was reported with the APK wrapper by another user. A proposed patch is available at https://github.com/Pasta-Devs/Marinara-Engine/compare/staging...luma-inibitor:Marinara-Engine:patch/back-dismiss-overlays?expand=1. Analysis and patch notes were attached in Discord.

Discord thread: Make the back button work in Android APK
Discord thread link: https://discord.com/channels/1417099416812392641/1540404434503467080
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (5 messages)
[2026-08-21T16:57:16.516Z] containerd | crow: It'd be really nice if I could use the built-in "back" bottom/gesture in the Android APK and for it to work instead of exiting the app. This would be a lot more convenient because dismissing menus typically requires hitting an "x" button near the top-right of the screen and my fingers are typically near the bottom for the keyboard.

Claude thinks this wouldn't require any APK side changes and just requires some bookkeeping from the web client. I'm having it take a stab at implementing it.

Attached is Claude's analysis from a few weeks ago. I haven't verified any of it but I'm having it try to implement the proposed changes.


Marinara Engine diagnostics
Version: 2.4.4
Build: 2.4.4+e92fa77d518a
Commit: e92fa77d518a
Server OS: Android / Termux 6.6.118-android15-8-g1831c2a45d9b-ab15739706-4k (arm64)
Client OS: Android 17
Browser / app shell: Mozilla/5.0 (Linux; Android 17; Pixel 10 Pro Build/CP2A.260805.005; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/151.0.7922.137 Mobile Safari/537.36 MarinaraEngine/Android
GPU: PowerVR D-Series DXT-48-1536
Active connection: [or] ds v4
Connection provider: openrouter
LLM model: deepseek/deepseek-v4-pro
[attached file: android-back-button-1.md — https://cdn.discordapp.com/attachments/1540404434503467080/1540404435094605864/android-back-button-1.md?ex=6a89d4ec&is=6a88836c&hm=1fdfab5ff3a2b2115819cee8fb51eecb92d7fe4f1efcbc82fe8b4b649b7b85d8&]
[attached file: screen-20260821-095548-1787331340638.mp42.mp4 — https://cdn.discordapp.com/attachments/1540404434503467080/1540404435673415810/screen-20260821-095548-1787331340638.mp42.mp4?ex=6a89d4ec&is=6a88836c&hm=b2c0bcc1a7eb4ec999956285c515fb607b5034209066a4c6321c4cac88614b79&]
[Discord message: https://discord.com/channels/1417099416812392641/1540404434503467080/1540404434503467080]

[2026-08-21T16:57:17.625Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1540404434503467080/1540404439154950235]

[2026-08-21T16:58:27.177Z] DSBwizzard: I see this same behaviour when using the APK wrapper and agree it would be a good change.
[Discord message: https://discord.com/channels/1417099416812392641/1540404434503467080/1540404730877051001]

[2026-08-21T17:31:09.519Z] containerd | crow: <https://github.com/Pasta-Devs/Marinara-Engine/compare/staging...luma-inibitor:Marinara-Engine:patch/back-dismiss-overlays?expand=1>
[attached file: screen-20260821-101943-17873327667372.mp4 — https://cdn.discordapp.com/attachments/1540404434503467080/1540412960030072952/screen-20260821-101943-17873327667372.mp4?ex=6a89dcdd&is=6a888b5d&hm=a93e439a2c0019f0eb588d975cb4843eb54ed40e90fd567a8cb66bbb41d7597e&]
[attached file: back-dismiss-overlays-patch-notes.md — https://cdn.discordapp.com/attachments/1540404434503467080/1540412960890159124/back-dismiss-overlays-patch-notes.md?ex=6a89dcdd&is=6a888b5d&hm=ea9b4e34bc63557669fe5ae0ec6b9cc2eb6bfca2b7920216c8a2b6632fb411f7&]
[Discord message: https://discord.com/channels/1417099416812392641/1540404434503467080/1540412961535955035]

[2026-08-21T18:04:29.328Z] Marinara: Oh, is that a PR? Thank you so much!
[Discord message: https://discord.com/channels/1417099416812392641/1540404434503467080/1540421349342716087]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5366 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The Android APK does not use the built-in Android back button to dismiss open menus or overlays. Pressing back exits the app instead. ## Expected behavior Pressing the Android back button should dismiss the currently open menu or overlay instead of exiting the app. ## Actual behavior Pressing the Android back button exits the Android APK, requiring users to dismiss menus with the on-screen close button. ## Steps to reproduce 1. Open Marinara Engine in the Android APK wrapper. 2. Open a menu or overlay. 3. Press the Android system back button or use the back gesture. ## Environment - Marinara Engine version: 2.4.4 (build 2.4.4+e92fa77d518a, commit e92fa77d518a) - Install type: installer - OS + version: Client: Android 17; server: Android / Termux 6.6.118-android15-8-g1831c2a45d9b-ab15739706-4k (arm64) - Browser or app shell: Mozilla/5.0 (Linux; Android 17; Pixel 10 Pro Build/CP2A.260805.005; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/151.0.7922.137 Mobile Safari/537.36 MarinaraEngine/Android ## Logs, screenshots, or video No logs provided. Screen recordings are attached: https://cdn.discordapp.com/attachments/1540404434503467080/1540404435673415810/screen-20260821-095548-1787331340638.mp42.mp4 and https://cdn.discordapp.com/attachments/1540404434503467080/1540412960030072952/screen-20260821-101943-17873327667372.mp4 ## Additional context The same behavior was reported with the APK wrapper by another user. A proposed patch is available at https://github.com/Pasta-Devs/Marinara-Engine/compare/staging...luma-inibitor:Marinara-Engine:patch/back-dismiss-overlays?expand=1. Analysis and patch notes were attached in Discord. Discord thread: Make the back button work in Android APK Discord thread link: https://discord.com/channels/1417099416812392641/1540404434503467080 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (5 messages)</summary> ```text [2026-08-21T16:57:16.516Z] containerd | crow: It'd be really nice if I could use the built-in "back" bottom/gesture in the Android APK and for it to work instead of exiting the app. This would be a lot more convenient because dismissing menus typically requires hitting an "x" button near the top-right of the screen and my fingers are typically near the bottom for the keyboard. Claude thinks this wouldn't require any APK side changes and just requires some bookkeeping from the web client. I'm having it take a stab at implementing it. Attached is Claude's analysis from a few weeks ago. I haven't verified any of it but I'm having it try to implement the proposed changes. Marinara Engine diagnostics Version: 2.4.4 Build: 2.4.4+e92fa77d518a Commit: e92fa77d518a Server OS: Android / Termux 6.6.118-android15-8-g1831c2a45d9b-ab15739706-4k (arm64) Client OS: Android 17 Browser / app shell: Mozilla/5.0 (Linux; Android 17; Pixel 10 Pro Build/CP2A.260805.005; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/151.0.7922.137 Mobile Safari/537.36 MarinaraEngine/Android GPU: PowerVR D-Series DXT-48-1536 Active connection: [or] ds v4 Connection provider: openrouter LLM model: deepseek/deepseek-v4-pro [attached file: android-back-button-1.md — https://cdn.discordapp.com/attachments/1540404434503467080/1540404435094605864/android-back-button-1.md?ex=6a89d4ec&is=6a88836c&hm=1fdfab5ff3a2b2115819cee8fb51eecb92d7fe4f1efcbc82fe8b4b649b7b85d8&] [attached file: screen-20260821-095548-1787331340638.mp42.mp4 — https://cdn.discordapp.com/attachments/1540404434503467080/1540404435673415810/screen-20260821-095548-1787331340638.mp42.mp4?ex=6a89d4ec&is=6a88836c&hm=b2c0bcc1a7eb4ec999956285c515fb607b5034209066a4c6321c4cac88614b79&] [Discord message: https://discord.com/channels/1417099416812392641/1540404434503467080/1540404434503467080] [2026-08-21T16:57:17.625Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1540404434503467080/1540404439154950235] [2026-08-21T16:58:27.177Z] DSBwizzard: I see this same behaviour when using the APK wrapper and agree it would be a good change. [Discord message: https://discord.com/channels/1417099416812392641/1540404434503467080/1540404730877051001] [2026-08-21T17:31:09.519Z] containerd | crow: <https://github.com/Pasta-Devs/Marinara-Engine/compare/staging...luma-inibitor:Marinara-Engine:patch/back-dismiss-overlays?expand=1> [attached file: screen-20260821-101943-17873327667372.mp4 — https://cdn.discordapp.com/attachments/1540404434503467080/1540412960030072952/screen-20260821-101943-17873327667372.mp4?ex=6a89dcdd&is=6a888b5d&hm=a93e439a2c0019f0eb588d975cb4843eb54ed40e90fd567a8cb66bbb41d7597e&] [attached file: back-dismiss-overlays-patch-notes.md — https://cdn.discordapp.com/attachments/1540404434503467080/1540412960890159124/back-dismiss-overlays-patch-notes.md?ex=6a89dcdd&is=6a888b5d&hm=ea9b4e34bc63557669fe5ae0ec6b9cc2eb6bfca2b7920216c8a2b6632fb411f7&] [Discord message: https://discord.com/channels/1417099416812392641/1540404434503467080/1540412961535955035] [2026-08-21T18:04:29.328Z] Marinara: Oh, is that a PR? Thank you so much! [Discord message: https://discord.com/channels/1417099416812392641/1540404434503467080/1540421349342716087] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:58:27 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 21, 2026):

Resolved by #5367, merged into staging as 448042c2dc.

<!-- gh-comment-id:5374672725 --> @SpicyMarinara commented on GitHub (Aug 21, 2026): Resolved by #5367, merged into staging as 448042c2dced0b50ea28332525b65444e7d321b9.
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#2970
No description provided.