Skip to content

android: fix stale health warnings#804

Open
kari-ts wants to merge 1 commit into
mainfrom
kari/stalehealth
Open

android: fix stale health warnings#804
kari-ts wants to merge 1 commit into
mainfrom
kari/stalehealth

Conversation

@kari-ts
Copy link
Copy Markdown
Collaborator

@kari-ts kari-ts commented Jun 4, 2026

Health warnings were debounced then combined with IPN state, which allowed later state changes to reuse the last debounced health value. This resulted in warnings being shown after they'd been dropped while the client was stopped or logged out.

This uses flatMapLatest from IPN state instead so that switching away from 'Running' cancels any pending debounce and siwtches to an empty health stream.

Fixes tailscale/corp#42871

Health warnings were debounced then combined with IPN state, which allowed later state changes to reuse the last debounced health value. This resulted in warnings being shown after they'd been dropped while the client was stopped or logged out.

This uses flatMapLatest from IPN state instead so that switching away from 'Running' cancels any pending debounce and siwtches to an empty health stream.

Fixes tailscale/corp#42871

Signed-off-by: kari-ts <kari@tailscale.com>
@kari-ts kari-ts requested a review from barnstar June 4, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant