LearnNewsExamplesServices
Frontmatter
id8174
titleRefactor Neural Link Routing: Standardize Session vs Window ID
stateClosed
labels
airefactoringarchitecture
assigneestobiu
createdAtDec 28, 2025, 4:39 PM
updatedAtDec 28, 2025, 6:49 PM
githubUrlhttps://github.com/neomjs/neo/issues/8174
authortobiu
commentsCount1
parentIssue8169
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 28, 2025, 6:49 PM

Refactor Neural Link Routing: Standardize Session vs Window ID

Closed v11.18.0 airefactoringarchitecture
tobiu
tobiu commented on Dec 28, 2025, 4:39 PM

The current Neural Link implementation overloads the term windowId to mean both "WebSocket Session ID" and "Application Window ID". This is confusing and dangerous for multi-window routing.

Requirements:

  1. OpenAPI: Rename windowId parameter to sessionId for tools that target a specific connection (e.g., get_component_tree targets an App Worker session).
  2. ConnectionService: Rename method arguments to sessionId.
  3. Client: Ensure handleRequest params are consistent.
  4. Routing Logic: Explicitly document that sessionId targets an App Worker.
tobiu added the ai label on Dec 28, 2025, 4:39 PM
tobiu added the refactoring label on Dec 28, 2025, 4:39 PM
tobiu added the architecture label on Dec 28, 2025, 4:39 PM
tobiu assigned to @tobiu on Dec 28, 2025, 4:39 PM
tobiu added parent issue #8169 on Dec 28, 2025, 4:40 PM
tobiu
tobiu Dec 28, 2025, 6:49 PM

Input from Gemini 3:

Implementation Complete

I have standardized the routing terminology across the Neural Link stack.

  • OpenAPI Spec: Renamed windowId parameter to sessionId in all relevant endpoints (/component/tree, /component/property/get, etc.).
  • Server (ConnectionService.mjs): Updated all service methods and the internal #call method to use sessionId.
  • Logic: Explicitly distinguished between the WebSocket Session ID (targeting the App Worker) and the Application Window ID (targeting a specific browser window within that worker).
tobiu closed this issue on Dec 28, 2025, 6:49 PM
tobiu referenced in commit 21b8247 - "feat(ai): Implement Neural Link healing and standardize routing (#8169) on Dec 28, 2025, 7:15 PM