Skip to content

Add WireGuard connection health checker and UI notifications - #610

Merged
stenya merged 6 commits into
developmentfrom
feature/s207-wg_conn_check
Aug 20, 2026
Merged

Add WireGuard connection health checker and UI notifications#610
stenya merged 6 commits into
developmentfrom
feature/s207-wg_conn_check

Conversation

@stenya

@stenya stenya commented Aug 20, 2026

Copy link
Copy Markdown
Member

Introduce a health checker for WireGuard connections that actively probes the tunnel state.
The application now surfaces an "unhealthy" state in the UI, providing users with notifications when the connection is not functioning properly. This includes updates to the daemon responses, UI indicators, and tray status.

ivpn/desktop-app-shadow#207

stenya and others added 6 commits August 5, 2026 12:32
- add WireGuard tunnel health checker with active probing
- surface `IsUnhealthy` in daemon connected responses
- ignore unhealthy CONNECTED notifications in service connected flow
- add UI unhealthy indicator (status icon + tooltip) and tray unhealthy status
- skip geolocation lookup while connection is unhealthy
- small WireGuard platform comment/notify cleanups

ivpn/desktop-app-shadow#207
Replace the IsUnhealthy field on ConnectedResp with a dedicated
TunnelHealthResp message, so health changes never touch the
CONNECTED/DISCONNECTED protocol flow.

- add TUNNEL_HEALTH vpn.State; health checker emits it instead of
  re-using CONNECTED
- add TunnelHealthResp{IsUnhealthy bool} protocol message
- remove IsUnhealthy from ConnectedResp and StateInfo.CONNECTED semantics
- remove the if-IsUnhealthy-break hack in service_connect.go
- cache _lastTunnelUnhealthy in Protocol so late-connecting UI clients
  receive the current health status on Hello
- healthy signal suppressed when tunnel was already healthy
- reset health cache on every new CONNECTED and on DISCONNECTED
- UI: handle TunnelHealthResp as a separate store mutation
  (tunnelIsUnhealthy) instead of reading from connectionInfo
- tray: subscribe to vpnState/tunnelIsUnhealthy so icon and status
  text update on health change

ivpn/desktop-app-shadow#207
@stenya
stenya merged commit bd312d7 into development Aug 20, 2026
8 checks passed
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