rouse-context/docs
monkopedia-coder 4b2ec2fd68
Stop FGS gracefully on dataSync run-time timeout (#450) (#452)
Android 15+ enforces a cumulative ~6h/24h limit on dataSync foreground
services. When the budget is exhausted while the service is running, the
system calls Service.onTimeout() and requires a prompt stop; otherwise it
force-kills the process with ForegroundServiceDidNotStopInTimeException
(#450, #451).

TunnelForegroundService handled the symmetric start-time case
(ForegroundServiceStartNotAllowedException -> notify + stopSelf) but never
overrode onTimeout, so a budget that ran out mid-session crashed silently.
v1.0.2's keep-Ktor-alive-across-idle change made the service stay
foregrounded longer, accelerating accumulation toward the cap.

Override onTimeout to mirror the start-time path: suppress reconnect, post
the existing FgsLimitNotifier, and stopSelf. Add a Robolectric test
(@Config sdk=35) covering the handler, and a docs/ux-decisions.md entry for
the new lifecycle moment at which the budget notification can appear.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 16:13:24 -04:00
..
auth-pages Regenerate auth page gallery with correct icon 2026-04-08 08:53:44 -04:00
design Fix #406 final wave: ui.md drift fixes + relay.md endpoint pointer (#413) 2026-04-25 18:49:10 -04:00
internal Add UX changes rule + decision log + onboarding flow page (#397) 2026-04-24 19:39:08 -04:00
notifications Fix #347: Client-subject notification copy + deep-link taps + Manage action (#362) 2026-04-22 03:11:08 -04:00
screenshots Remove 4 broken screenshot gallery entries (never-existed files) 2026-04-27 18:50:28 -04:00
user Set baseurl to empty for custom domain on GitHub Pages 2026-04-16 17:47:49 -04:00
agent-quickstart.md Cut auto-loaded context overhead (#425) 2026-04-26 17:57:12 -04:00
audit.md Update tunnel-client + health-connect-expansion docs; delete superseded proposal docs (#406) (#412) 2026-04-25 18:13:09 -04:00
security-audit-2026-04-07.md Update README and security docs to match shipped behavior (#406 chunk A) (#411) 2026-04-25 18:38:12 -04:00
security-decisions.md Update README and security docs to match shipped behavior (#406 chunk A) (#411) 2026-04-25 18:38:12 -04:00
security.md Add comprehensive security overview document 2026-04-10 09:39:55 -04:00
self-hosting.md Fix #391: Update design docs to reflect GTS as primary CA (#398) 2026-04-24 22:41:23 -04:00
test-coverage-audit.md Delete stale planning + status + QA-snapshot docs (#405) 2026-04-25 15:08:59 -04:00
ux-decisions.md Stop FGS gracefully on dataSync run-time timeout (#450) (#452) 2026-05-26 16:13:24 -04:00
workflow.md Add T-11 security monitoring task, renumber subsequent tasks 2026-04-04 19:48:46 -04:00