Skip to content

android: drop health warnings in Stopped and NeedsLogin state#733

Merged
barnstar merged 1 commit into
mainfrom
jonathan/drop-health-when-not-logged-in
Jan 28, 2026
Merged

android: drop health warnings in Stopped and NeedsLogin state#733
barnstar merged 1 commit into
mainfrom
jonathan/drop-health-when-not-logged-in

Conversation

@barnstar

@barnstar barnstar commented Jan 23, 2026

Copy link
Copy Markdown
Member

fixes tailscale/corp#36233

We should be dropping health warnings when we're not in the Running state.

// When the client is Stopped, requires Login or has no state, we should drop all
// existing warnings
when (val ipnState = pair.second) {
Ipn.State.NeedsLogin,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this isn't relevant to Android, but what about InUseOtherUser?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied the logic from the Apple notifier. InOtherUser isn't covered there - I don't think it's relevant on mobile (or at least, not relevant here). NeedsLogin was the state we weren't dealing with IIRC. I'll double check. It's possible we were just transitioning through NoState too - which dropped the warnings.

@barnstar
barnstar force-pushed the jonathan/drop-health-when-not-logged-in branch 3 times, most recently from 29bb6bc to 629432e Compare January 28, 2026 16:45
fixes tailscale/corp#36233

We should be dropping health warnings when we're not in the Running
state.  This also adds some functionality to inject fake health warnings
to make it possible to trigger these without triggering a real health
condition.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
@barnstar
barnstar force-pushed the jonathan/drop-health-when-not-logged-in branch from 629432e to 814fdc7 Compare January 28, 2026 16:50
@barnstar
barnstar requested a review from kari-ts January 28, 2026 16:50
@barnstar
barnstar merged commit b2e96e7 into main Jan 28, 2026
4 checks passed
@barnstar
barnstar deleted the jonathan/drop-health-when-not-logged-in branch January 28, 2026 17:08
serein-213 pushed a commit to serein-213/tailscale-android that referenced this pull request Feb 9, 2026
…ale#733)

fixes tailscale/corp#36233

We should be dropping health warnings when we're not in the Running
state.  This also adds some functionality to inject fake health warnings
to make it possible to trigger these without triggering a real health
condition.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
serein-213 pushed a commit to serein-213/tailscale-android that referenced this pull request Feb 9, 2026
…ale#733)

fixes tailscale/corp#36233

We should be dropping health warnings when we're not in the Running
state.  This also adds some functionality to inject fake health warnings
to make it possible to trigger these without triggering a real health
condition.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
serein-213 pushed a commit to serein-213/tailscale-android that referenced this pull request Feb 9, 2026
…ale#733)

fixes tailscale/corp#36233

We should be dropping health warnings when we're not in the Running
state.  This also adds some functionality to inject fake health warnings
to make it possible to trigger these without triggering a real health
condition.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
nadeemakhter0602 pushed a commit to nadeemakhter0602/TailMon that referenced this pull request Mar 22, 2026
…ale#733)

fixes tailscale/corp#36233

We should be dropping health warnings when we're not in the Running
state.  This also adds some functionality to inject fake health warnings
to make it possible to trigger these without triggering a real health
condition.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
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