[GH-ISSUE #5656] Surface the Termux wake-lock outcome in /health and support diagnostics #3132

Closed
opened 2026-10-21 05:59:52 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @kolacheee on GitHub.

What happens

start-termux.sh acquires the Android wake lock and prints one [OK]/[WARN] line at launch — and that's the only place the outcome ever exists. It never reaches /health, the in-app support diagnostics, or anything a user pastes into a report. In the background-freeze report we just triaged, determining whether the wake lock had engaged required asking the user to dig the session log's first lines out of ~/.marinara-engine/logs/ — the single most important fact for that diagnosis, and the diagnostics block the user had already pasted couldn't tell us.

The fix

  • start-termux.sh exports the outcome (e.g. MARINARA_WAKE_LOCK_STATUS=acquired|failed|unavailable) before launching the server.
  • The server includes it in /health, and the client's Copy Support Diagnostics block (packages/client/src/lib/support-diagnostics.ts) renders it alongside the other server fields.
  • Make the launch-time [WARN] loud: highlighted and repeated in the startup summary rather than one easy-to-scroll-past line. A wake lock that failed to acquire on Termux is the #1 background-reliability signal we have.

Try it yourself

Run start-termux.sh on a device, then open Copy Support Diagnostics in the app — nothing reports whether the wake lock engaged.

Related: the server-side freeze detector and client unreachable-state UX are filed separately (see cross-references).

Originally created by @kolacheee on GitHub (Aug 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5656 Originally assigned to: @kolacheee on GitHub. **What happens** `start-termux.sh` acquires the Android wake lock and prints one `[OK]`/`[WARN]` line at launch — and that's the only place the outcome ever exists. It never reaches `/health`, the in-app support diagnostics, or anything a user pastes into a report. In the background-freeze report we just triaged, determining whether the wake lock had engaged required asking the user to dig the session log's first lines out of `~/.marinara-engine/logs/` — the single most important fact for that diagnosis, and the diagnostics block the user had already pasted couldn't tell us. **The fix** - `start-termux.sh` exports the outcome (e.g. `MARINARA_WAKE_LOCK_STATUS=acquired|failed|unavailable`) before launching the server. - The server includes it in `/health`, and the client's Copy Support Diagnostics block (`packages/client/src/lib/support-diagnostics.ts`) renders it alongside the other server fields. - Make the launch-time `[WARN]` loud: highlighted and repeated in the startup summary rather than one easy-to-scroll-past line. A wake lock that failed to acquire on Termux is the #1 background-reliability signal we have. **Try it yourself** Run `start-termux.sh` on a device, then open Copy Support Diagnostics in the app — nothing reports whether the wake lock engaged. Related: the server-side freeze detector and client unreachable-state UX are filed separately (see cross-references).
Author
Owner

@kolacheee commented on GitHub (Aug 29, 2026):

Termux background-freeze follow-up family (from the 2026-08-30 triage; verdict: the battery-efficiency waves removed the ambient polling that had kept vendor freezers from classifying backgrounded Termux as dormant — see #4956 for the first field report): #5655 server freeze detector, #5656 wake-lock surfacing, #5657 client unreachable-state UX, #5658 checkVersion fetch leak, #5659 TROUBLESHOOTING corrections.

<!-- gh-comment-id:5465584160 --> @kolacheee commented on GitHub (Aug 29, 2026): Termux background-freeze follow-up family (from the 2026-08-30 triage; verdict: the battery-efficiency waves removed the ambient polling that had kept vendor freezers from classifying backgrounded Termux as dormant — see #4956 for the first field report): #5655 server freeze detector, #5656 wake-lock surfacing, #5657 client unreachable-state UX, #5658 checkVersion fetch leak, #5659 TROUBLESHOOTING corrections.
Author
Owner

@kolacheee commented on GitHub (Aug 29, 2026):

Taking this together with #5655 (kolacheee + Claude agent) on branch feat/5655-5656-freeze-observability as the freeze-observability PR; draft PR to follow.

<!-- gh-comment-id:5465599218 --> @kolacheee commented on GitHub (Aug 29, 2026): Taking this together with #5655 (kolacheee + Claude agent) on branch feat/5655-5656-freeze-observability as the freeze-observability PR; draft PR to follow.
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#3132
No description provided.