Frontmatter
| id | 8174 |
| title | Refactor Neural Link Routing: Standardize Session vs Window ID |
| state | Closed |
| labels | airefactoringarchitecture |
| assignees | tobiu |
| createdAt | Dec 28, 2025, 4:39 PM |
| updatedAt | Dec 28, 2025, 6:49 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8174 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8169 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| contentTrust | |
| projected | |
| quarantined | 0 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 28, 2025, 6:49 PM |
Refactor Neural Link Routing: Standardize Session vs Window ID

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
windowIdparameter tosessionIdin all relevant endpoints (/component/tree,/component/property/get, etc.).- Server (
ConnectionService.mjs): Updated all service methods and the internal#callmethod to usesessionId.- 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).
The current Neural Link implementation overloads the term
windowIdto mean both "WebSocket Session ID" and "Application Window ID". This is confusing and dangerous for multi-window routing.Requirements:
windowIdparameter tosessionIdfor tools that target a specific connection (e.g.,get_component_treetargets an App Worker session).sessionId.handleRequestparams are consistent.sessionIdtargets an App Worker.