Skip to content

Node mode not work #114

Closed
Closed

Description

@statsmind

Repo steps:

  1. settings -> enable node mode
  2. connect gateway

Result:
Status: Connected
Node Mode: Disconnected

And, on server side, no device pairing request found

Activity

  1. github-actions commented on Mar 28, 2026

    @github-actions
  2. added a commit that references this issue on Mar 29, 2026
    463a4b7
  3. github-actions commented on Mar 29, 2026

    @github-actions
    Contributor

    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:

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

    2. _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.

    Generated by Repo Assist · ◷

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/repo-assist.md@cbb46ab386962aa371045839fc9998ee4e97ca64
    
  4. locked as resolved and limited conversation to collaborators on May 29, 2026
  5. added a commit that references this issue on Aug 16, 2026
    533e4bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds investigation

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions