[GH-ISSUE #4968] [Issue]: Termux-hosted ME stops updating unless Termux is foregrounded on Android #2758

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When Marinara Engine is hosted through Termux on Android, the browser client becomes stale or unresponsive after roughly 30 seconds to 1 minute unless the user switches to the Termux app and then back to ME. This makes mobile use difficult because manually foregrounding Termux is required to trigger updates.

Expected behavior

Marinara Engine should continue updating and respond to user interactions while Termux runs in the background, without requiring the user to open or foreground Termux.

Actual behavior

After approximately 30 seconds to 1 minute of ME usage, updates stop or interactions become delayed/unresponsive. Switching to the Termux app and back to ME causes the pending update or interaction to take effect.

Steps to reproduce

  1. Host Marinara Engine through Termux on an Android phone.
  2. Open the hosted ME instance in Firefox for Android.
  3. Use ME, then leave Termux in the background while keeping the browser open.
  4. Wait approximately 30 seconds to 1 minute and attempt to interact with or navigate ME.
  5. Observe that ME is stale, lagging, or unresponsive until switching to the Termux app and then back to the browser.

Environment

  • Marinara Engine version: v2.4.2, staging build 2.4.2+65c8ebc180ce, commit 65c8ebc180
  • Install type: termux
  • OS + version: Android 14 on OnePlus 10 Pro
  • Browser or app shell: Firefox Mobile 153.0 (Mozilla/5.0 (Android 14; Mobile; rv:153.0) Gecko/153.0 Firefox/153.0)

Logs, screenshots, or video

Screenshots showing the behavior before and after switching to Termux: https://cdn.discordapp.com/attachments/1534559002787315844/1537438997570392185/Screenshot_2026-08-13-05-31-36-25_3aea4af51f236e4932235fdada7d1643.jpg and https://cdn.discordapp.com/attachments/1534559002787315844/1537438997960335370/Screenshot_2026-08-13-05-31-47-25_3aea4af51f236e4932235fdada7d1643.jpg

Additional context

The behavior appeared after changes intended to reduce Termux polling and improve battery usage. It persisted on staging builds 2.4.2+0f9abe4323d6 and 2.4.2+65c8ebc180ce, including after PR #4958 was reported as a fix. The original battery-drain concern improved when ME was not hosted or active, but the background-update regression remains. Related GitHub issue: #4956.

Discord thread: Running ME on Android via Termux taxes phone battery
Discord thread link: https://discord.com/channels/1417099416812392641/1534559002787315844
Requested by: kolache (k0lache, Discord ID 220320261780668416)

Discord thread transcript (85 messages)
[2026-08-05T13:49:36.992Z] DSBwizzard: I have seen this issue since ever installing ME - Version Agnostic 
OnePlus 10 pro installation via Termux

I will submit my own report - I believe it to be unrelated to https://discord.com/channels/1417099416812392641/1534547851349197020 and instead a simple tax on my battery when Termux/ME is running.

When I have Termux/ME running, I see noticable degradation to my phone's battery life. The drain feels significant and I find myself running out of battery mid-day where I would previously see it last at least all my day. This drain does seem more noticable when actively using the software which is expected at some level - if I am playing a Balatro or something on my phone it drains faster. However I would expect this to not be as significant as it is. I recognize I am using Termux to self-host a website but it feels rather noticeable even then, since ME is at its core text based, and in my case it is offloading the brunt of work to something like Openrouter or LinkAPI.

Even when I do not have ME open in my browser and my phone is sleeping in my pocket or at my desk, simply having Termux running ME causes the battery of my device to drain at a higher rate than I expect. Drafting this Discord post took me ten minutes and I've seen my battery drop by 3%.

I have confirmed that not utilizing Termux to host my ME instance does stop this increase in battery drain.

Thanks for listening. I don't really know how to offer hard repro or metrics on this issue as it is unfortunately purely anecdotal, but it's been one of the larger 'things I wish wouldn't happen' with ME on my android so I have been convinced to bring it up officially rather than allude to it in other posts.
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534559002787315844]

[2026-08-05T13:49:58.545Z] kolache: investigating rn and do have 2 bugs I am filing Issues for shortly
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534559093187154061]

[2026-08-05T13:50:17.851Z] DSBwizzard: (no text content)

[attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534559174153994311/image0.gif?ex=6a7e7459&is=6a7d22d9&hm=f4971900aa90cdf06a21f64c6b9acf614e245a4cf4194a8ec4206b660f9a5089&]
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534559174162386995]

[2026-08-05T13:53:05.707Z] m;aemoifmpfmmafe: I would like to confirm this, I run ME via a remote server host on Podman with tailscale. 
When accessed via Android Chrome increases the battery drain.
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534559878201217134]

[2026-08-05T13:55:02.912Z] kolache: https://github.com/Pasta-Devs/Marinara-Engine/issues/4628
https://github.com/Pasta-Devs/Marinara-Engine/issues/4629
https://github.com/Pasta-Devs/Marinara-Engine/issues/4630 (@gunterlie)
[Issue]: Professor Mari streaming has no render throttling — per-...
Summary The Professor Mari assistant streams with no render throttling: every SSE token event triggers an immediate state update that re-renders the entire home chat component, and the growing repl...
[Issue]: Personal-extension runtime polled every 2s on every screen...
Summary The personal-extension client runtime is polled over HTTP every 2 seconds, on every screen, for the whole app session — explicitly including hidden/background tabs — even when the user has ...
[Issue]: Noodler reserve reconciler full-scans noodle tables every ...
Summary The Noodler reserve scheduler full-scans the noodlerPreparedPosts and noodlePosts tables (with per-row JSON parsing), plus re-lists prepared posts and both account tables, every 60 seconds,...
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534560369794879518]

[2026-08-05T13:55:21.453Z] kolache: @Clanker just so you can track too
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534560447561469962]

[2026-08-05T13:56:19.626Z] Clanker: huh so i was right about the streaming thing ;7 well ima track too 🙂
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534560691556712588]

[2026-08-05T18:22:22.749Z] kolache: @Clanker @DSBwizzard both fixed in staging if yall want to try it and confirm
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534627645747232832]

[2026-08-05T18:23:19.314Z] DSBwizzard: Ooh. I'll update to latest staging and take some time to monitor passive battery drain and report back after I have time to compare.
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534627882997911572]

[2026-08-05T18:24:17.511Z] kolache: there's also a new `Reduced Ambient Animations & Effects` in settings that should additionally help mobile users with battery a bit
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534628127093817414]

[2026-08-05T19:13:02.472Z] DSBwizzard: I'm on Release: v2.4.2
Build: 2089cd7
And have ticked that new setting, and will share once I have a good vibe on any potential improvements
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534640395269439620]

[2026-08-05T19:17:40.743Z] DSBwizzard: Is that 'reduce paint effects'?

[attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534641561932140604/Screenshot_2026-08-05-12-17-27-02_3aea4af51f236e4932235fdada7d1643.jpg?ex=6a7ec114&is=6a7d6f94&hm=4ef930a114d1def18fed97a6cdabb69ca2c839bbde93ddefd920b907157a3cb2&]
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534641562422607874]

[2026-08-05T19:53:38.731Z] kolache: :pepehmm: no hold on lemme look for it
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534650613680439367]

[2026-08-05T19:55:22.629Z] DSBwizzard: I can't find it 💀
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534651049460236392]

[2026-08-05T19:57:46.393Z] kolache: (no text content)

[attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534651652164948078/image.png?ex=6a7eca7a&is=6a7d78fa&hm=d054d0d9ef9720263de9b0e3940c6ef3d039ac0693906873d290e44c846a4e69&]
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534651652450291792]

[2026-08-05T20:00:46.719Z] DSBwizzard: :monaks:

[attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534652407793848411/Screenshot_2026-08-05-13-00-27-19_3aea4af51f236e4932235fdada7d1643.jpg?ex=6a7ecb2e&is=6a7d79ae&hm=f062e52aa2c0eeda0828f9b3393e3f59cce58105c37e3e1d9071d63aa58e9567&]
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534652408792223747]

[2026-08-05T20:01:27.327Z] kolache: hmm it does say it automatically applies when device requests reduced motion

[attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534652578804142251/image.png?ex=6a7ecb57&is=6a7d79d7&hm=0917c9c446a2877e6d8a974ffe539d42d3b14616678833b8e35086c69022b031&]
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534652579114647552]

[2026-08-05T20:01:30.350Z] kolache: but...
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534652591794032793]

[2026-08-05T20:01:37.851Z] kolache: if not then idk maybe double check you are on latest staging
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534652623255240795]

[2026-08-05T20:01:41.605Z] kolache: :thonk:
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534652639000793118]

[2026-08-05T20:02:00.753Z] kolache: if you go to home page and the mari is eerily still, then you know it's turned on
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534652719313326283]

[2026-08-05T20:03:05.673Z] DSBwizzard: Mari never really moves for me 

Release: v2.4.2Build: 2089cd7
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534652991607537775]

[2026-08-05T20:03:42.752Z] DSBwizzard: I assume my browser is requesting reduced motion? But I'd also assume the toggle is shown to me ( even remaining uneditable is fine) so I know this option exists?
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534653147128139910]

[2026-08-05T20:10:20.643Z] kolache: does your ME icon also look like the one on the right (black background behind the spaghetti)?

[attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534654815207034962/image.png?ex=6a7ecd6c&is=6a7d7bec&hm=f9ec3e09092daac71817402acc27f7f4e805f725b06d8f34a4dc05ff283f875e&]
[attached image 2: https://cdn.discordapp.com/attachments/1534559002787315844/1534654815626330182/image.png?ex=6a7ecd6c&is=6a7d7bec&hm=e4e49e7b608dc5ccfcf351ac59a0207d142cdb9ab65dec26f25093792a0b1c93&]
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534654816003821608]

[2026-08-05T21:18:27.782Z] DSBwizzard: Nope. I fully restarted my Termux app entirely and relaunched ME and Mari is kinda moving a little bit now.

[attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534671958359150602/Screenshot_2026-08-05-14-18-03-13_3aea4af51f236e4932235fdada7d1643.jpg?ex=6a7edd63&is=6a7d8be3&hm=e3373ca9bcd8b4e6cc4d673cc7cd24b05dae286711cfc391382c0431a209f0de&]
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534671958707535894]

[2026-08-05T21:18:52.948Z] DSBwizzard: Still no Reduce Ambient Animation and Effects button
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534672064261390507]

[2026-08-05T21:29:47.058Z] kolache: :cathuhh:
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534674807797452920]

[2026-08-05T21:30:05.682Z] kolache: tf
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534674885912039545]

[2026-08-05T21:30:12.496Z] kolache: can you try pnpm install pnpm build??
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534674914492158014]

[2026-08-05T23:25:21.011Z] Clanker: fixed it for me
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534703890904387726]

[2026-08-06T00:08:57.251Z] DSBwizzard: And you just run this commands in the ME directory in Terminal?
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534714864210284686]

[2026-08-06T00:09:09.308Z] DSBwizzard: P sure
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534714914781003806]

[2026-08-06T00:10:09.754Z] DSBwizzard: Ye
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534715168309645312]

[2026-08-06T00:22:32.948Z] DSBwizzard: My install doesn't like pnpm, is my install borked
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534718285491470560]

[2026-08-06T00:23:00.890Z] DSBwizzard: I suppose I can use my own personal skills to investigate that. :DeadDottie:
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534718402688581655]

[2026-08-06T12:48:50.702Z] DSBwizzard: Fix goblin showed up last night.
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534906097004187751]

[2026-08-06T12:49:35.442Z] DSBwizzard: I will report back on if I find any noticable improvements to my overall battery usage now that this is enabled and I have my ME on Release: v2.4.2 / Build: 9f771b2

[attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534906284434788473/image.png?ex=6a7e661f&is=6a7d149f&hm=2a99271488d4fb58b5a99eb856dfd8f7cbfb9cb22b39d198edda1e8163a6b52e&]
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534906284657348891]

[2026-08-06T12:57:23.417Z] kolache: thank you! :salute:
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534908247486763018]

[2026-08-06T22:36:27.520Z] DSBwizzard: It's hard to say if this is just my phone. But after ensuring I remain on the latest staging and using my phone as normal, I don't see a meaningful change on the active or passive discharge that my battery sees when running and/or accessing the ME I host on my phone via Termux.
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535053974816821289]

[2026-08-07T10:10:00.874Z] kolache: investigating
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535228513873952808]

[2026-08-07T10:37:29.159Z] kolache: did find some stuff, but in the meantime, can you compare your battery drainage with Termux open but the ME server stopped?
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535235427282452541]

[2026-08-07T13:16:34.023Z] DSBwizzard: Can do!
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535275461343580230]

[2026-08-07T19:14:48.741Z] DSBwizzard: halfway through my average workday. I am at 64% battery and usually I feel like I would be at ~30% at this point on other days. Maybe less with heavy usage. Again, this is anecdotal unfortunately but it absolutely feels a lot happier right now.
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535365616725270650]

[2026-08-07T19:15:08.938Z] DSBwizzard: Termux on, not hosting ME or doing anything
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535365701437489183]

[2026-08-07T19:17:11.158Z] DSBwizzard: I would usually find my phone really needing a charge around 2-3PM (3 hours from now), but dont expect that at this time
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535366214065328270]

[2026-08-07T19:25:11.875Z] kolache: i did push a couple PRs today that hopefully help with termux ME battery drainage, so whenever you're ready to give it another try let me know how it feels
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535368230338822155]

[2026-08-07T19:26:50.742Z] DSBwizzard: Im ready put me in coach
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535368645016813668]

[2026-08-07T19:26:52.764Z] DSBwizzard: I can win this
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535368653497827349]

[2026-08-07T19:27:07.216Z] DSBwizzard: I'll lyk the vibes after giving it some time on latest staging
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535368714113785946]

[2026-08-07T22:42:22.092Z] DSBwizzard: I'll be able to give you a pretty good idea tomorrow. right now it sorta feels okay? But I want to see how it does on a longer day on the whole set of new changes
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535417849865306143]

[2026-08-08T16:56:52.954Z] kolache: kk everything that i thought would help termux battery usage has been officially merged so lmk
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535693293424349244]

[2026-08-08T16:59:54.092Z] DSBwizzard: You got it. I'll keep an eye on usage when I am doing normal phone things and report back.
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535694053172187327]

[2026-08-09T23:40:08.642Z] DSBwizzard: Today with average phone usage for a Sunday, I am seeing at this time of day my phone battery at 46%. I believe historically I would see my phone be around <30% at this time. :rizzing: 

Again, my experience is anecdotal, but I do feel like my battery is lasting longer. I can report back again in my higher-phone-usage workdays in the middle of the week where I usually have to charge my phone from ~5-10% at a certain time of day so I have a more clear benchmark then.

Let me confirm for you on wednesday, just for that final little piece of evidence.
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1536157165360914432]

[2026-08-12T16:48:07.576Z] DSBwizzard: I feel like I'm seeing a few oddities when working on my phone a lot more today. The last few days, it's felt kind of like Termux stops updating ME unless I have Termux open and visible as my active app instead of updating in the background.

Today, despite multiple restarts of Termux/ME and my phone, i am seeing lag or fails to respond in ME.

[attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1537140641304154162/Screenshot_2026-08-12-09-46-57-81_3aea4af51f236e4932235fdada7d1643.jpg?ex=6a7e9e07&is=6a7d4c87&hm=931719db1b74c7f65a738e4bbc306ce6e83e2664889c524d621aaa6eee9a6b82&]
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537140641291706510]

[2026-08-12T16:48:29.745Z] DSBwizzard: Not sure if it's related but it feels like this sort of unwanted behavior has begun since these Termux changes and I'm only really exploring them now
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537140734275231886]

[2026-08-12T16:52:28.293Z] DSBwizzard: This happened too, just now.

- I swapped to my home screen, back to ME, no change.

- I swapped to an alternative unrelated app, back to ME, no change.

- I swap to my Termux window, then back to ME. Chat settings loads immediately.

[attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1537141734549753866/Screenshot_2026-08-12-09-51-06-49_3aea4af51f236e4932235fdada7d1643.jpg?ex=6a7e9f0c&is=6a7d4d8c&hm=9139c52252286515bbf2ba13f83320210675912ec3fa4b0881ee7c182d60827a&]
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537141734818058251]

[2026-08-12T16:53:33.082Z] DSBwizzard: I saw this again when trying to change my chat connection. It feels very very much like I need to go and 'observe' my Termux application in order to navigate my ME on my android.
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142006562689034]

[2026-08-12T16:53:47.319Z] DSBwizzard: Marinara Engine diagnostics
Version: 2.4.2
Build: 2.4.2
Commit: Unavailable
OS: Android 14
Browser / app shell: Mozilla/5.0 (Android 14; Mobile; rv:153.0) Gecko/153.0 Firefox/153.0
GPU: Adreno (TM) 650, or similar
Active connection: DeepSeek Direct API
Connection provider: custom
LLM model: deepseek-v4-flash
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142066276990996]

[2026-08-12T16:54:20.276Z] kolache: xD accurate assessment
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142204508930109]

[2026-08-12T16:54:29.425Z] kolache: i did change it so ME is pinging termux a lot less
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142242882359406]

[2026-08-12T16:54:34.870Z] DSBwizzard: LOOK it didn't see the commit until I looked at Termux again 

Marinara Engine diagnostics
Version: 2.4.2
Build: 2.4.2+acd8deb05001
Commit: acd8deb05001
OS: Android 14
Browser / app shell: Mozilla/5.0 (Android 14; Mobile; rv:153.0) Gecko/153.0 Firefox/153.0
GPU: Adreno (TM) 650, or similar
Active connection: DeepSeek Direct API
Connection provider: custom
LLM model: deepseek-v4-flash
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142265720475818]

[2026-08-12T16:54:38.303Z] kolache: guess some of that needs to be dialed back
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142280119517244]

[2026-08-12T16:54:42.464Z] DSBwizzard: Yeah that's possibly why.
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142297571885087]

[2026-08-12T16:55:10.027Z] DSBwizzard: Why must we suffer, just give us +25% battery life when running Termux/me with a 15% increase in speed
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142413179617422]

[2026-08-12T16:55:15.202Z] DSBwizzard: Cmon man, easy
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142434885275669]

[2026-08-12T16:55:47.170Z] kolache: https://github.com/Pasta-Devs/Marinara-Engine/pull/4727
https://github.com/Pasta-Devs/Marinara-Engine/pull/4723
https://github.com/Pasta-Devs/Marinara-Engine/pull/4719
https://github.com/Pasta-Devs/Marinara-Engine/pull/4716
https://github.com/Pasta-Devs/Marinara-Engine/pull/4715
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142568968654970]

[2026-08-12T16:55:49.958Z] kolache: should be one of these PRs that need to be looked at for the regression
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142580662378637]

[2026-08-12T16:56:25.763Z] kolache: @Professor Mari GitHub Issue
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142730839425136]

[2026-08-12T16:56:41.842Z] Professor Mari [bot]: Skill issue. Made a GitHub issue here: https://github.com/Pasta-Devs/Marinara-Engine/issues/4956
[Issue]: Marinara Engine stops updating in background and becomes u...
Summary On a phone using Termux, Marinara Engine appears to stop updating unless Termux is open and visible as the active app. It also exhibits lag or fails to respond despite multiple restarts. Ex...
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142798279639090]

[2026-08-12T16:56:45.220Z] DSBwizzard: You really are doing good work
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142812447998043]

[2026-08-12T18:57:44.219Z] Clanker: he sure is
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537173258896547963]

[2026-08-12T19:11:22.367Z] kolache: unfortunately it means termux ME probably can’t be much more optimized but if you ever notice it sucking battery again let us know
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537176690457845760]

[2026-08-12T19:14:08.884Z] DSBwizzard: That is OKAY
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537177388880887901]

[2026-08-12T19:14:23.626Z] DSBwizzard: It really is highly likely my old abused phone is just aging lol
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537177450713456780]

[2026-08-12T19:14:50.398Z] DSBwizzard: But I did see a distinct passive drain reduction when I was leaving my phone at rest and just Accessing ME on my laptop via TailScale. That's Real
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537177563003224224]

[2026-08-12T19:15:09.382Z] DSBwizzard: I think my own use on my phone itself is doomed to the battery and my heavy usage habits over the years. Thanks so much!
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537177642627895337]

[2026-08-12T20:49:21.149Z] DSBwizzard: Unfortunately, this issue with Termux needing to be actively looked at to trigger updates on Android ME makes it feel pretty unusable. I need to go and manually swap phone apps to look at Termux, then back to my browser, Android/Firefox, for ME to react to anything I attempt to use or do.
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537201347856830555]

[2026-08-12T20:54:12.207Z] DSBwizzard: I am moving to very latest staging as I see this has the fixed in staging tag in GH. Will report back
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537202568642429019]

[2026-08-12T20:58:10.439Z] DSBwizzard: Marinara Engine diagnostics
Version: 2.4.2
Build: 2.4.2+0f9abe4323d6
Commit: 0f9abe4323d6
OS: Android 14
Browser / app shell: Mozilla/5.0 (Android 14; Mobile; rv:153.0) Gecko/153.0 Firefox/153.0
GPU: Adreno (TM) 650, or similar
Active connection: DeepSeek Direct API
Connection provider: custom
LLM model: deepseek-v4-pro

I believe something is possibly wrong with the approach taken to limit pings to Termux. This latest change gives me more time between having to go physically look at my Termux application, but I still have to physically swap to my Termux app every 15-30 seconds
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537203567859994634]

[2026-08-12T20:58:23.844Z] DSBwizzard: The road to hell is paved with good intentions 😭
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537203624084643922]

[2026-08-13T08:03:56.182Z] kolache: it looks like mari already pushed a fix if you want to try https://github.com/Pasta-Devs/Marinara-Engine/pull/4958
fix: refresh stale staging clients and keep Termux awake by SpicyMa...
Linked issues
Closes #4957
Closes #4956
Why this change
NovelAI default parameters already survive the current save, navigation, and import paths, but staging commits keep the same release version....
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537371112449769492]

[2026-08-13T12:28:14.146Z] DSBwizzard: Moving to latest staging now...
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537437625571344385]

[2026-08-13T12:32:47.018Z] DSBwizzard: Marinara Engine diagnostics
Version: 2.4.2
Build: 2.4.2+65c8ebc180ce
Commit: 65c8ebc180ce
OS: Android 14
Browser / app shell: Mozilla/5.0 (Android 14; Mobile; rv:153.0) Gecko/153.0 Firefox/153.0
GPU: Adreno (TM) 650, or similar
Active connection: DeepSeek Direct API
Connection provider: custom
LLM model: deepseek-v4-pro
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537438770079473755]

[2026-08-13T12:33:18.795Z] DSBwizzard: Still seeing this behavior. After ~30seconds - 1min of ME usage I need to go and manually observe my Termux application on my phone in order to make ME respond for me.
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537438903361867777]

[2026-08-13T12:33:41.380Z] DSBwizzard: Before and after tabbing over to Termux application -> back to ME

[attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1537438997570392185/Screenshot_2026-08-13-05-31-36-25_3aea4af51f236e4932235fdada7d1643.jpg?ex=6a7f0b25&is=6a7db9a5&hm=109ccdc550b51c95d74de946cb256f63c8704c9899d6c1fc60c42e65557621bb&]
[attached image 2: https://cdn.discordapp.com/attachments/1534559002787315844/1537438997960335370/Screenshot_2026-08-13-05-31-47-25_3aea4af51f236e4932235fdada7d1643.jpg?ex=6a7f0b25&is=6a7db9a5&hm=ece6969f4bedc434bb7304c9aa84587ed24549ced3ac76c7d2a7654d5df340b4&]
[Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537438998090489990]

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 13, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4968 Originally assigned to: @SpicyMarinara on GitHub. ## Summary When Marinara Engine is hosted through Termux on Android, the browser client becomes stale or unresponsive after roughly 30 seconds to 1 minute unless the user switches to the Termux app and then back to ME. This makes mobile use difficult because manually foregrounding Termux is required to trigger updates. ## Expected behavior Marinara Engine should continue updating and respond to user interactions while Termux runs in the background, without requiring the user to open or foreground Termux. ## Actual behavior After approximately 30 seconds to 1 minute of ME usage, updates stop or interactions become delayed/unresponsive. Switching to the Termux app and back to ME causes the pending update or interaction to take effect. ## Steps to reproduce 1. Host Marinara Engine through Termux on an Android phone. 2. Open the hosted ME instance in Firefox for Android. 3. Use ME, then leave Termux in the background while keeping the browser open. 4. Wait approximately 30 seconds to 1 minute and attempt to interact with or navigate ME. 5. Observe that ME is stale, lagging, or unresponsive until switching to the Termux app and then back to the browser. ## Environment - Marinara Engine version: v2.4.2, staging build 2.4.2+65c8ebc180ce, commit 65c8ebc180ce - Install type: termux - OS + version: Android 14 on OnePlus 10 Pro - Browser or app shell: Firefox Mobile 153.0 (Mozilla/5.0 (Android 14; Mobile; rv:153.0) Gecko/153.0 Firefox/153.0) ## Logs, screenshots, or video Screenshots showing the behavior before and after switching to Termux: https://cdn.discordapp.com/attachments/1534559002787315844/1537438997570392185/Screenshot_2026-08-13-05-31-36-25_3aea4af51f236e4932235fdada7d1643.jpg and https://cdn.discordapp.com/attachments/1534559002787315844/1537438997960335370/Screenshot_2026-08-13-05-31-47-25_3aea4af51f236e4932235fdada7d1643.jpg ## Additional context The behavior appeared after changes intended to reduce Termux polling and improve battery usage. It persisted on staging builds 2.4.2+0f9abe4323d6 and 2.4.2+65c8ebc180ce, including after PR #4958 was reported as a fix. The original battery-drain concern improved when ME was not hosted or active, but the background-update regression remains. Related GitHub issue: #4956. Discord thread: Running ME on Android via Termux taxes phone battery Discord thread link: https://discord.com/channels/1417099416812392641/1534559002787315844 Requested by: kolache (k0lache, Discord ID 220320261780668416) <details> <summary>Discord thread transcript (85 messages)</summary> ```text [2026-08-05T13:49:36.992Z] DSBwizzard: I have seen this issue since ever installing ME - Version Agnostic OnePlus 10 pro installation via Termux I will submit my own report - I believe it to be unrelated to https://discord.com/channels/1417099416812392641/1534547851349197020 and instead a simple tax on my battery when Termux/ME is running. When I have Termux/ME running, I see noticable degradation to my phone's battery life. The drain feels significant and I find myself running out of battery mid-day where I would previously see it last at least all my day. This drain does seem more noticable when actively using the software which is expected at some level - if I am playing a Balatro or something on my phone it drains faster. However I would expect this to not be as significant as it is. I recognize I am using Termux to self-host a website but it feels rather noticeable even then, since ME is at its core text based, and in my case it is offloading the brunt of work to something like Openrouter or LinkAPI. Even when I do not have ME open in my browser and my phone is sleeping in my pocket or at my desk, simply having Termux running ME causes the battery of my device to drain at a higher rate than I expect. Drafting this Discord post took me ten minutes and I've seen my battery drop by 3%. I have confirmed that not utilizing Termux to host my ME instance does stop this increase in battery drain. Thanks for listening. I don't really know how to offer hard repro or metrics on this issue as it is unfortunately purely anecdotal, but it's been one of the larger 'things I wish wouldn't happen' with ME on my android so I have been convinced to bring it up officially rather than allude to it in other posts. [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534559002787315844] [2026-08-05T13:49:58.545Z] kolache: investigating rn and do have 2 bugs I am filing Issues for shortly [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534559093187154061] [2026-08-05T13:50:17.851Z] DSBwizzard: (no text content) [attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534559174153994311/image0.gif?ex=6a7e7459&is=6a7d22d9&hm=f4971900aa90cdf06a21f64c6b9acf614e245a4cf4194a8ec4206b660f9a5089&] [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534559174162386995] [2026-08-05T13:53:05.707Z] m;aemoifmpfmmafe: I would like to confirm this, I run ME via a remote server host on Podman with tailscale. When accessed via Android Chrome increases the battery drain. [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534559878201217134] [2026-08-05T13:55:02.912Z] kolache: https://github.com/Pasta-Devs/Marinara-Engine/issues/4628 https://github.com/Pasta-Devs/Marinara-Engine/issues/4629 https://github.com/Pasta-Devs/Marinara-Engine/issues/4630 (@gunterlie) [Issue]: Professor Mari streaming has no render throttling — per-... Summary The Professor Mari assistant streams with no render throttling: every SSE token event triggers an immediate state update that re-renders the entire home chat component, and the growing repl... [Issue]: Personal-extension runtime polled every 2s on every screen... Summary The personal-extension client runtime is polled over HTTP every 2 seconds, on every screen, for the whole app session — explicitly including hidden/background tabs — even when the user has ... [Issue]: Noodler reserve reconciler full-scans noodle tables every ... Summary The Noodler reserve scheduler full-scans the noodlerPreparedPosts and noodlePosts tables (with per-row JSON parsing), plus re-lists prepared posts and both account tables, every 60 seconds,... [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534560369794879518] [2026-08-05T13:55:21.453Z] kolache: @Clanker just so you can track too [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534560447561469962] [2026-08-05T13:56:19.626Z] Clanker: huh so i was right about the streaming thing ;7 well ima track too 🙂 [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534560691556712588] [2026-08-05T18:22:22.749Z] kolache: @Clanker @DSBwizzard both fixed in staging if yall want to try it and confirm [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534627645747232832] [2026-08-05T18:23:19.314Z] DSBwizzard: Ooh. I'll update to latest staging and take some time to monitor passive battery drain and report back after I have time to compare. [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534627882997911572] [2026-08-05T18:24:17.511Z] kolache: there's also a new `Reduced Ambient Animations & Effects` in settings that should additionally help mobile users with battery a bit [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534628127093817414] [2026-08-05T19:13:02.472Z] DSBwizzard: I'm on Release: v2.4.2 Build: 2089cd7 And have ticked that new setting, and will share once I have a good vibe on any potential improvements [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534640395269439620] [2026-08-05T19:17:40.743Z] DSBwizzard: Is that 'reduce paint effects'? [attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534641561932140604/Screenshot_2026-08-05-12-17-27-02_3aea4af51f236e4932235fdada7d1643.jpg?ex=6a7ec114&is=6a7d6f94&hm=4ef930a114d1def18fed97a6cdabb69ca2c839bbde93ddefd920b907157a3cb2&] [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534641562422607874] [2026-08-05T19:53:38.731Z] kolache: :pepehmm: no hold on lemme look for it [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534650613680439367] [2026-08-05T19:55:22.629Z] DSBwizzard: I can't find it 💀 [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534651049460236392] [2026-08-05T19:57:46.393Z] kolache: (no text content) [attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534651652164948078/image.png?ex=6a7eca7a&is=6a7d78fa&hm=d054d0d9ef9720263de9b0e3940c6ef3d039ac0693906873d290e44c846a4e69&] [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534651652450291792] [2026-08-05T20:00:46.719Z] DSBwizzard: :monaks: [attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534652407793848411/Screenshot_2026-08-05-13-00-27-19_3aea4af51f236e4932235fdada7d1643.jpg?ex=6a7ecb2e&is=6a7d79ae&hm=f062e52aa2c0eeda0828f9b3393e3f59cce58105c37e3e1d9071d63aa58e9567&] [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534652408792223747] [2026-08-05T20:01:27.327Z] kolache: hmm it does say it automatically applies when device requests reduced motion [attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534652578804142251/image.png?ex=6a7ecb57&is=6a7d79d7&hm=0917c9c446a2877e6d8a974ffe539d42d3b14616678833b8e35086c69022b031&] [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534652579114647552] [2026-08-05T20:01:30.350Z] kolache: but... [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534652591794032793] [2026-08-05T20:01:37.851Z] kolache: if not then idk maybe double check you are on latest staging [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534652623255240795] [2026-08-05T20:01:41.605Z] kolache: :thonk: [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534652639000793118] [2026-08-05T20:02:00.753Z] kolache: if you go to home page and the mari is eerily still, then you know it's turned on [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534652719313326283] [2026-08-05T20:03:05.673Z] DSBwizzard: Mari never really moves for me Release: v2.4.2Build: 2089cd7 [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534652991607537775] [2026-08-05T20:03:42.752Z] DSBwizzard: I assume my browser is requesting reduced motion? But I'd also assume the toggle is shown to me ( even remaining uneditable is fine) so I know this option exists? [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534653147128139910] [2026-08-05T20:10:20.643Z] kolache: does your ME icon also look like the one on the right (black background behind the spaghetti)? [attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534654815207034962/image.png?ex=6a7ecd6c&is=6a7d7bec&hm=f9ec3e09092daac71817402acc27f7f4e805f725b06d8f34a4dc05ff283f875e&] [attached image 2: https://cdn.discordapp.com/attachments/1534559002787315844/1534654815626330182/image.png?ex=6a7ecd6c&is=6a7d7bec&hm=e4e49e7b608dc5ccfcf351ac59a0207d142cdb9ab65dec26f25093792a0b1c93&] [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534654816003821608] [2026-08-05T21:18:27.782Z] DSBwizzard: Nope. I fully restarted my Termux app entirely and relaunched ME and Mari is kinda moving a little bit now. [attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534671958359150602/Screenshot_2026-08-05-14-18-03-13_3aea4af51f236e4932235fdada7d1643.jpg?ex=6a7edd63&is=6a7d8be3&hm=e3373ca9bcd8b4e6cc4d673cc7cd24b05dae286711cfc391382c0431a209f0de&] [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534671958707535894] [2026-08-05T21:18:52.948Z] DSBwizzard: Still no Reduce Ambient Animation and Effects button [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534672064261390507] [2026-08-05T21:29:47.058Z] kolache: :cathuhh: [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534674807797452920] [2026-08-05T21:30:05.682Z] kolache: tf [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534674885912039545] [2026-08-05T21:30:12.496Z] kolache: can you try pnpm install pnpm build?? [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534674914492158014] [2026-08-05T23:25:21.011Z] Clanker: fixed it for me [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534703890904387726] [2026-08-06T00:08:57.251Z] DSBwizzard: And you just run this commands in the ME directory in Terminal? [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534714864210284686] [2026-08-06T00:09:09.308Z] DSBwizzard: P sure [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534714914781003806] [2026-08-06T00:10:09.754Z] DSBwizzard: Ye [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534715168309645312] [2026-08-06T00:22:32.948Z] DSBwizzard: My install doesn't like pnpm, is my install borked [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534718285491470560] [2026-08-06T00:23:00.890Z] DSBwizzard: I suppose I can use my own personal skills to investigate that. :DeadDottie: [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534718402688581655] [2026-08-06T12:48:50.702Z] DSBwizzard: Fix goblin showed up last night. [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534906097004187751] [2026-08-06T12:49:35.442Z] DSBwizzard: I will report back on if I find any noticable improvements to my overall battery usage now that this is enabled and I have my ME on Release: v2.4.2 / Build: 9f771b2 [attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1534906284434788473/image.png?ex=6a7e661f&is=6a7d149f&hm=2a99271488d4fb58b5a99eb856dfd8f7cbfb9cb22b39d198edda1e8163a6b52e&] [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534906284657348891] [2026-08-06T12:57:23.417Z] kolache: thank you! :salute: [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1534908247486763018] [2026-08-06T22:36:27.520Z] DSBwizzard: It's hard to say if this is just my phone. But after ensuring I remain on the latest staging and using my phone as normal, I don't see a meaningful change on the active or passive discharge that my battery sees when running and/or accessing the ME I host on my phone via Termux. [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535053974816821289] [2026-08-07T10:10:00.874Z] kolache: investigating [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535228513873952808] [2026-08-07T10:37:29.159Z] kolache: did find some stuff, but in the meantime, can you compare your battery drainage with Termux open but the ME server stopped? [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535235427282452541] [2026-08-07T13:16:34.023Z] DSBwizzard: Can do! [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535275461343580230] [2026-08-07T19:14:48.741Z] DSBwizzard: halfway through my average workday. I am at 64% battery and usually I feel like I would be at ~30% at this point on other days. Maybe less with heavy usage. Again, this is anecdotal unfortunately but it absolutely feels a lot happier right now. [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535365616725270650] [2026-08-07T19:15:08.938Z] DSBwizzard: Termux on, not hosting ME or doing anything [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535365701437489183] [2026-08-07T19:17:11.158Z] DSBwizzard: I would usually find my phone really needing a charge around 2-3PM (3 hours from now), but dont expect that at this time [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535366214065328270] [2026-08-07T19:25:11.875Z] kolache: i did push a couple PRs today that hopefully help with termux ME battery drainage, so whenever you're ready to give it another try let me know how it feels [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535368230338822155] [2026-08-07T19:26:50.742Z] DSBwizzard: Im ready put me in coach [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535368645016813668] [2026-08-07T19:26:52.764Z] DSBwizzard: I can win this [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535368653497827349] [2026-08-07T19:27:07.216Z] DSBwizzard: I'll lyk the vibes after giving it some time on latest staging [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535368714113785946] [2026-08-07T22:42:22.092Z] DSBwizzard: I'll be able to give you a pretty good idea tomorrow. right now it sorta feels okay? But I want to see how it does on a longer day on the whole set of new changes [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535417849865306143] [2026-08-08T16:56:52.954Z] kolache: kk everything that i thought would help termux battery usage has been officially merged so lmk [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535693293424349244] [2026-08-08T16:59:54.092Z] DSBwizzard: You got it. I'll keep an eye on usage when I am doing normal phone things and report back. [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1535694053172187327] [2026-08-09T23:40:08.642Z] DSBwizzard: Today with average phone usage for a Sunday, I am seeing at this time of day my phone battery at 46%. I believe historically I would see my phone be around <30% at this time. :rizzing: Again, my experience is anecdotal, but I do feel like my battery is lasting longer. I can report back again in my higher-phone-usage workdays in the middle of the week where I usually have to charge my phone from ~5-10% at a certain time of day so I have a more clear benchmark then. Let me confirm for you on wednesday, just for that final little piece of evidence. [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1536157165360914432] [2026-08-12T16:48:07.576Z] DSBwizzard: I feel like I'm seeing a few oddities when working on my phone a lot more today. The last few days, it's felt kind of like Termux stops updating ME unless I have Termux open and visible as my active app instead of updating in the background. Today, despite multiple restarts of Termux/ME and my phone, i am seeing lag or fails to respond in ME. [attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1537140641304154162/Screenshot_2026-08-12-09-46-57-81_3aea4af51f236e4932235fdada7d1643.jpg?ex=6a7e9e07&is=6a7d4c87&hm=931719db1b74c7f65a738e4bbc306ce6e83e2664889c524d621aaa6eee9a6b82&] [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537140641291706510] [2026-08-12T16:48:29.745Z] DSBwizzard: Not sure if it's related but it feels like this sort of unwanted behavior has begun since these Termux changes and I'm only really exploring them now [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537140734275231886] [2026-08-12T16:52:28.293Z] DSBwizzard: This happened too, just now. - I swapped to my home screen, back to ME, no change. - I swapped to an alternative unrelated app, back to ME, no change. - I swap to my Termux window, then back to ME. Chat settings loads immediately. [attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1537141734549753866/Screenshot_2026-08-12-09-51-06-49_3aea4af51f236e4932235fdada7d1643.jpg?ex=6a7e9f0c&is=6a7d4d8c&hm=9139c52252286515bbf2ba13f83320210675912ec3fa4b0881ee7c182d60827a&] [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537141734818058251] [2026-08-12T16:53:33.082Z] DSBwizzard: I saw this again when trying to change my chat connection. It feels very very much like I need to go and 'observe' my Termux application in order to navigate my ME on my android. [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142006562689034] [2026-08-12T16:53:47.319Z] DSBwizzard: Marinara Engine diagnostics Version: 2.4.2 Build: 2.4.2 Commit: Unavailable OS: Android 14 Browser / app shell: Mozilla/5.0 (Android 14; Mobile; rv:153.0) Gecko/153.0 Firefox/153.0 GPU: Adreno (TM) 650, or similar Active connection: DeepSeek Direct API Connection provider: custom LLM model: deepseek-v4-flash [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142066276990996] [2026-08-12T16:54:20.276Z] kolache: xD accurate assessment [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142204508930109] [2026-08-12T16:54:29.425Z] kolache: i did change it so ME is pinging termux a lot less [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142242882359406] [2026-08-12T16:54:34.870Z] DSBwizzard: LOOK it didn't see the commit until I looked at Termux again Marinara Engine diagnostics Version: 2.4.2 Build: 2.4.2+acd8deb05001 Commit: acd8deb05001 OS: Android 14 Browser / app shell: Mozilla/5.0 (Android 14; Mobile; rv:153.0) Gecko/153.0 Firefox/153.0 GPU: Adreno (TM) 650, or similar Active connection: DeepSeek Direct API Connection provider: custom LLM model: deepseek-v4-flash [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142265720475818] [2026-08-12T16:54:38.303Z] kolache: guess some of that needs to be dialed back [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142280119517244] [2026-08-12T16:54:42.464Z] DSBwizzard: Yeah that's possibly why. [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142297571885087] [2026-08-12T16:55:10.027Z] DSBwizzard: Why must we suffer, just give us +25% battery life when running Termux/me with a 15% increase in speed [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142413179617422] [2026-08-12T16:55:15.202Z] DSBwizzard: Cmon man, easy [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142434885275669] [2026-08-12T16:55:47.170Z] kolache: https://github.com/Pasta-Devs/Marinara-Engine/pull/4727 https://github.com/Pasta-Devs/Marinara-Engine/pull/4723 https://github.com/Pasta-Devs/Marinara-Engine/pull/4719 https://github.com/Pasta-Devs/Marinara-Engine/pull/4716 https://github.com/Pasta-Devs/Marinara-Engine/pull/4715 [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142568968654970] [2026-08-12T16:55:49.958Z] kolache: should be one of these PRs that need to be looked at for the regression [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142580662378637] [2026-08-12T16:56:25.763Z] kolache: @Professor Mari GitHub Issue [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142730839425136] [2026-08-12T16:56:41.842Z] Professor Mari [bot]: Skill issue. Made a GitHub issue here: https://github.com/Pasta-Devs/Marinara-Engine/issues/4956 [Issue]: Marinara Engine stops updating in background and becomes u... Summary On a phone using Termux, Marinara Engine appears to stop updating unless Termux is open and visible as the active app. It also exhibits lag or fails to respond despite multiple restarts. Ex... [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142798279639090] [2026-08-12T16:56:45.220Z] DSBwizzard: You really are doing good work [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537142812447998043] [2026-08-12T18:57:44.219Z] Clanker: he sure is [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537173258896547963] [2026-08-12T19:11:22.367Z] kolache: unfortunately it means termux ME probably can’t be much more optimized but if you ever notice it sucking battery again let us know [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537176690457845760] [2026-08-12T19:14:08.884Z] DSBwizzard: That is OKAY [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537177388880887901] [2026-08-12T19:14:23.626Z] DSBwizzard: It really is highly likely my old abused phone is just aging lol [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537177450713456780] [2026-08-12T19:14:50.398Z] DSBwizzard: But I did see a distinct passive drain reduction when I was leaving my phone at rest and just Accessing ME on my laptop via TailScale. That's Real [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537177563003224224] [2026-08-12T19:15:09.382Z] DSBwizzard: I think my own use on my phone itself is doomed to the battery and my heavy usage habits over the years. Thanks so much! [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537177642627895337] [2026-08-12T20:49:21.149Z] DSBwizzard: Unfortunately, this issue with Termux needing to be actively looked at to trigger updates on Android ME makes it feel pretty unusable. I need to go and manually swap phone apps to look at Termux, then back to my browser, Android/Firefox, for ME to react to anything I attempt to use or do. [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537201347856830555] [2026-08-12T20:54:12.207Z] DSBwizzard: I am moving to very latest staging as I see this has the fixed in staging tag in GH. Will report back [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537202568642429019] [2026-08-12T20:58:10.439Z] DSBwizzard: Marinara Engine diagnostics Version: 2.4.2 Build: 2.4.2+0f9abe4323d6 Commit: 0f9abe4323d6 OS: Android 14 Browser / app shell: Mozilla/5.0 (Android 14; Mobile; rv:153.0) Gecko/153.0 Firefox/153.0 GPU: Adreno (TM) 650, or similar Active connection: DeepSeek Direct API Connection provider: custom LLM model: deepseek-v4-pro I believe something is possibly wrong with the approach taken to limit pings to Termux. This latest change gives me more time between having to go physically look at my Termux application, but I still have to physically swap to my Termux app every 15-30 seconds [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537203567859994634] [2026-08-12T20:58:23.844Z] DSBwizzard: The road to hell is paved with good intentions 😭 [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537203624084643922] [2026-08-13T08:03:56.182Z] kolache: it looks like mari already pushed a fix if you want to try https://github.com/Pasta-Devs/Marinara-Engine/pull/4958 fix: refresh stale staging clients and keep Termux awake by SpicyMa... Linked issues Closes #4957 Closes #4956 Why this change NovelAI default parameters already survive the current save, navigation, and import paths, but staging commits keep the same release version.... [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537371112449769492] [2026-08-13T12:28:14.146Z] DSBwizzard: Moving to latest staging now... [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537437625571344385] [2026-08-13T12:32:47.018Z] DSBwizzard: Marinara Engine diagnostics Version: 2.4.2 Build: 2.4.2+65c8ebc180ce Commit: 65c8ebc180ce OS: Android 14 Browser / app shell: Mozilla/5.0 (Android 14; Mobile; rv:153.0) Gecko/153.0 Firefox/153.0 GPU: Adreno (TM) 650, or similar Active connection: DeepSeek Direct API Connection provider: custom LLM model: deepseek-v4-pro [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537438770079473755] [2026-08-13T12:33:18.795Z] DSBwizzard: Still seeing this behavior. After ~30seconds - 1min of ME usage I need to go and manually observe my Termux application on my phone in order to make ME respond for me. [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537438903361867777] [2026-08-13T12:33:41.380Z] DSBwizzard: Before and after tabbing over to Termux application -> back to ME [attached image 1: https://cdn.discordapp.com/attachments/1534559002787315844/1537438997570392185/Screenshot_2026-08-13-05-31-36-25_3aea4af51f236e4932235fdada7d1643.jpg?ex=6a7f0b25&is=6a7db9a5&hm=109ccdc550b51c95d74de946cb256f63c8704c9899d6c1fc60c42e65557621bb&] [attached image 2: https://cdn.discordapp.com/attachments/1534559002787315844/1537438997960335370/Screenshot_2026-08-13-05-31-47-25_3aea4af51f236e4932235fdada7d1643.jpg?ex=6a7f0b25&is=6a7db9a5&hm=ece6969f4bedc434bb7304c9aa84587ed24549ced3ac76c7d2a7654d5df340b4&] [Discord message: https://discord.com/channels/1417099416812392641/1534559002787315844/1537438998090489990] ``` </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:54:39 +07:00
Author
Owner

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

@SpicyMarinara is taking this in draft PR #4972 against staging. No existing issue-linked branch or PR was found, so implementation can proceed without duplicating another contributor.

<!-- gh-comment-id:5281628864 --> @SpicyMarinara commented on GitHub (Aug 13, 2026): @SpicyMarinara is taking this in draft PR #4972 against `staging`. No existing issue-linked branch or PR was found, so implementation can proceed without duplicating another contributor.
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#2758
No description provided.