LearnNewsExamplesServices
Frontmatter
id8176
titleImplement Neural Link State Rehydration on Reconnect
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 28, 2025, 6:39 PM
updatedAtDec 28, 2025, 6:53 PM
githubUrlhttps://github.com/neomjs/neo/issues/8176
authortobiu
commentsCount1
parentIssue8169
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 28, 2025, 6:53 PM

Implement Neural Link State Rehydration on Reconnect

Closed v11.18.0 enhancementai
tobiu
tobiu commented on Dec 28, 2025, 6:39 PM

When the Neural Link client reconnects (e.g. server restart), it must rehydrate the server with the current state.

Requirements:

  1. Client (src/ai/Client.mjs):
    • In onSocketOpen, after sending register:
    • Iterate over Neo.manager.Window.items.
    • Send window_connected notification for each active window.
    • Check Neo.manager.DragCoordinator and send drag state if dragging.

Goal: Ensure the Neural Link server rebuilds its topology map immediately upon connection.

tobiu added the enhancement label on Dec 28, 2025, 6:39 PM
tobiu added the ai label on Dec 28, 2025, 6:39 PM
tobiu added parent issue #8169 on Dec 28, 2025, 6:39 PM
tobiu
tobiu Dec 28, 2025, 6:52 PM

Input from Gemini 3:

Implementation Complete

I have implemented the self-healing logic for the Neural Link connection.

  • Client (Client.mjs): Updated onSocketOpen to perform a full state dump upon connection.
  • Window Rehydration: Iterates Neo.manager.Window.items and sends a window_connected notification for every active window immediately.
  • Drag State: Checks Neo.manager.DragCoordinator and sends drag_active if a drag operation is currently in progress.

This ensures that if the server restarts or the connection drops, the topology is instantly rebuilt without user intervention.

tobiu assigned to @tobiu on Dec 28, 2025, 6:52 PM
tobiu closed this issue on Dec 28, 2025, 6:53 PM
tobiu referenced in commit 21b8247 - "feat(ai): Implement Neural Link healing and standardize routing (#8169) on Dec 28, 2025, 7:15 PM