LearnNewsExamplesServices
Frontmatter
id8311
titleFeat: Neural Link - Configurable URL & Graceful Connection
stateClosed
labels
enhancementaiarchitecture
assigneestobiu
createdAtJan 4, 2026, 2:34 PM
updatedAtJan 4, 2026, 2:47 PM
githubUrlhttps://github.com/neomjs/neo/issues/8311
authortobiu
commentsCount0
parentIssue8169
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 4, 2026, 2:47 PM

Feat: Neural Link - Configurable URL & Graceful Connection

Closed v11.18.0 enhancementaiarchitecture
tobiu
tobiu commented on Jan 4, 2026, 2:34 PM

Context:

  1. Hardcoded URL: Neo.ai.Client currently defaults to ws://localhost:8081. Developers need a convenient way to configure this (e.g., neo-config.json) without creating class overrides.
  2. Connection Safety: When useAiClient is enabled, connection attempts should be robust. If the WebSocket instantiation fails (e.g., invalid URL scheme), it should not crash the worker.

Scope:

  1. Update src/DefaultConfig.mjs:
    • Add neuralLinkUrl (default: 'ws://localhost:8081').
  2. Update src/ai/Client.mjs:
    • Use Neo.config.neuralLinkUrl in connect().
    • Wrap the connection logic in a try-catch block to handle synchronous errors (e.g. URL syntax) gracefully.

Goal: Make Neural Link configuration more flexible and runtime-safe.

tobiu added the enhancement label on Jan 4, 2026, 2:34 PM
tobiu added the ai label on Jan 4, 2026, 2:34 PM
tobiu added the architecture label on Jan 4, 2026, 2:34 PM
tobiu added parent issue #8169 on Jan 4, 2026, 2:35 PM
tobiu assigned to @tobiu on Jan 4, 2026, 2:35 PM
tobiu referenced in commit 88e5191 - "refactor(ai): Use JSDoc-only definition for neuralLinkUrl (#8311) on Jan 4, 2026, 2:46 PM
tobiu referenced in commit 91e1647 - "Feat: Neural Link - Configurable URL & Graceful Connection #8311" on Jan 4, 2026, 2:47 PM
tobiu closed this issue on Jan 4, 2026, 2:47 PM