Skip to content

android: fix stale health warnings#804

Merged
kari-ts merged 1 commit into
mainfrom
kari/stalehealth
Jun 5, 2026
Merged

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

Conversation

@kari-ts

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

Copy link
Copy Markdown
Collaborator

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
@kari-ts kari-ts merged commit b83495b into main Jun 5, 2026
4 checks passed
@kari-ts kari-ts deleted the kari/stalehealth branch June 5, 2026 17:14
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.

2 participants