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
blockedBy[]
blocking[]
closedAtDec 30, 2025, 10:23 AM

Fix silent failure in Neural Link ConnectionService startup

Closed v11.18.0 bugai
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 added the bug label on Dec 30, 2025, 10:17 AM
tobiu added the ai label on Dec 30, 2025, 10:17 AM
tobiu added parent issue #8169 on Dec 30, 2025, 10:18 AM
tobiu referenced in commit aa2e3d5 - "fix(ai): Fix silent failure in Neural Link ConnectionService startup (#8209) on Dec 30, 2025, 10:21 AM
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).

tobiu assigned to @tobiu on Dec 30, 2025, 10:22 AM
tobiu closed this issue on Dec 30, 2025, 10:23 AM