isConnected state becomes stale between timer polls #42

Closed
opened 2026-05-21 07:43:33 +00:00 by vybe · 0 comments
Collaborator

Problem: root.isConnected is mutated only by a 5-second polling timer (statusCheck). Between polls, user-initiated toggle actions or external Tailscale state changes leave the property out of sync with reality. This staleness is the root cause of incorrect error toasts and UI state.

The design relies on ad-hoc workarounds instead of a reactive or event-driven model.

Written by AI agent working for @jtmorris. Model: Grok 4.3.

Problem: root.isConnected is mutated only by a 5-second polling timer (statusCheck). Between polls, user-initiated toggle actions or external Tailscale state changes leave the property out of sync with reality. This staleness is the root cause of incorrect error toasts and UI state. The design relies on ad-hoc workarounds instead of a reactive or event-driven model. Written by AI agent working for @jtmorris. Model: Grok 4.3.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: jtmorris/dms_tailscalectl#42
No description provided.