Skip to content

Conversation

@barnstar
Copy link
Member

@barnstar barnstar commented Jan 23, 2026

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
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
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
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