Frontmatter
| id | 8176 |
| title | Implement Neural Link State Rehydration on Reconnect |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Dec 28, 2025, 6:39 PM |
| updatedAt | Dec 28, 2025, 6:53 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8176 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8169 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| contentTrust | |
| projected | |
| quarantined | 0 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 28, 2025, 6:53 PM |
Implement Neural Link State Rehydration on Reconnect

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): UpdatedonSocketOpento perform a full state dump upon connection.- Window Rehydration: Iterates
Neo.manager.Window.itemsand sends awindow_connectednotification for every active window immediately.- Drag State: Checks
Neo.manager.DragCoordinatorand sendsdrag_activeif 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.
When the Neural Link client reconnects (e.g. server restart), it must rehydrate the server with the current state.
Requirements:
src/ai/Client.mjs):onSocketOpen, after sendingregister:Neo.manager.Window.items.window_connectednotification for each active window.Neo.manager.DragCoordinatorand send drag state if dragging.Goal: Ensure the Neural Link server rebuilds its topology map immediately upon connection.