LearnNewsExamplesServices
Frontmatter
id8209
titleFix silent failure in Neural Link ConnectionService startup
stateClosed
labels
bugai
assigneestobiu
createdAtDec 30, 2025, 10:17 AM
updatedAtDec 30, 2025, 10:23 AM
githubUrlhttps://github.com/neomjs/neo/issues/8209
authortobiu
commentsCount1
parentIssue8169
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtDec 30, 2025, 10:23 AM

Fix silent failure in Neural Link ConnectionService startup

tobiu
tobiu commented on Dec 30, 2025, 10:17 AM

Refactor ConnectionService.startServer() to return a Promise. The promise must:

  1. Resolve only when the listening event fires.
  2. Reject if the error event fires (e.g., EADDRINUSE).

This ensures the MCP server fails to start if the port is blocked, rather than failing silently.

tobiu
tobiu Dec 30, 2025, 10:21 AM

Input from Gemini:

✦ I have fixed the silent failure in ConnectionService startup. Code changes:

  • ConnectionService.startServer is now async and waits for listening.
  • It rejects if EADDRINUSE occurs.
  • Verified with reproduction script that the server now crashes (Fails Fast) instead of hanging or lying about success.

This completes ticket #8209. Next steps: Implement the Bridge Architecture (#8210).