You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pull request was not created — a fallback review issue was created instead due to protected file changes: #116
🤖 This is an automated response from Repo Assist.
After investigating the code, I found two root causes that together explain the "Status: Connected, Node Mode: Disconnected" symptom:
Stale status after mode switch — when saving Settings and switching from operator mode to node mode, the old gateway client was disposed but not nulled out, and _currentStatus was not reset. If the operator was previously "Connected", the tray would keep showing "Status: Connected" while the new node connection was establishing — causing the exact "Connected / Node Mode: Disconnected" split you saw.
_isPendingApproval not cleared on reconnect — when the node connection drops and reconnects, _isPendingApproval wasn't being reset alongside _isConnected, so the pairing state could show stale values during the reconnect window.
I've submitted PR #115 with a fix for both issues:
OnSettingsSaved now unsubscribes events, nulls the old gateway client, and resets _currentStatus to Disconnected immediately before starting the new connection
OnDisconnected / OnError in WindowsNodeClient now also reset _isPendingApproval
If you still see "no device pairing request on the server side" after this fix, that would point to a separate issue with the WebSocket handshake not completing — the tray log (View Log → look for [NODE] lines) would show whether the challenge/connect cycle ran at all.
Activity
github-actions commentedon Mar 28, 2026
fix: reset node/gateway state on settings save; clear _isPendingAppro…
github-actions commentedon Mar 29, 2026
Note
The pull request was not created — a fallback review issue was created instead due to protected file changes: #116
🤖 This is an automated response from Repo Assist.
After investigating the code, I found two root causes that together explain the "Status: Connected, Node Mode: Disconnected" symptom:
Stale status after mode switch — when saving Settings and switching from operator mode to node mode, the old gateway client was disposed but not nulled out, and
_currentStatuswas not reset. If the operator was previously "Connected", the tray would keep showing "Status: Connected" while the new node connection was establishing — causing the exact "Connected / Node Mode: Disconnected" split you saw._isPendingApprovalnot cleared on reconnect — when the node connection drops and reconnects,_isPendingApprovalwasn't being reset alongside_isConnected, so the pairing state could show stale values during the reconnect window.I've submitted PR #115 with a fix for both issues:
OnSettingsSavednow unsubscribes events, nulls the old gateway client, and resets_currentStatustoDisconnectedimmediately before starting the new connectionOnDisconnected/OnErrorinWindowsNodeClientnow also reset_isPendingApprovalIf you still see "no device pairing request on the server side" after this fix, that would point to a separate issue with the WebSocket handshake not completing — the tray log (
View Log→ look for[NODE]lines) would show whether the challenge/connect cycle ran at all.fix: reset node/gateway state on settings save; clear _isPendingAppro…