feat(mobile): keep Android thread lists current in background - #7462
feat(mobile): keep Android thread lists current in background#7462abcdmku wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
693d913 to
78ebfb7
Compare
Co-authored-by: Mike <84413695+snipemanmike@users.noreply.github.com>
f523b2c to
8507e84
Compare
|
Note 🤖 GPT-5.6 Sol responding on behalf of Theo We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together. We are keeping OPEN #5179 as the review path for Android background connections. The app-state and settings tests here remain useful reference. If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed. |
Android currently suspends the mobile connection when the app is backgrounded, so returning can show stale thread lists while every environment reconnects.
This adds an opt-in Android foreground service backed by React Native Headless JS. The background task mounts the existing aggregate thread-shell atom, preserving one supervisor and transport per environment and keeping saved environment thread lists current across direct, Tailscale, and T3 Connect connections. Resume probes the preserved transport and falls back to the existing reconnect path when it is stale.
This is a current-main successor to #5179. It keeps the work Android-specific, reuses the existing connection machinery, and exposes the feature as an off-by-default mobile setting with clear battery and foreground-service status. Thanks @snipemanmike for the original implementation and lifecycle fixes.
Validation:
Built with GPT-5.6 via Codex in T3 Code.