LearnNewsExamplesServices
Frontmatter
id8181
titleFeat: ConnectionService Lifecycle Tools
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 28, 2025, 7:42 PM
updatedAtDec 28, 2025, 8:22 PM
githubUrlhttps://github.com/neomjs/neo/issues/8181
authortobiu
commentsCount1
parentIssue8169
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 28, 2025, 8:22 PM

Feat: ConnectionService Lifecycle Tools

Closed v11.18.0 enhancementai
tobiu
tobiu commented on Dec 28, 2025, 7:42 PM

Enhance ConnectionService to provide lifecycle management tools for the WebSocket server.

Scope:

  1. Implement start_ws_server tool: Allows restarting the WebSocket server if it was stopped.
  2. Implement stop_ws_server tool: Allows shutting down the WebSocket server (simulating a disconnect or for cleanup).
  3. Ensure ConnectionService is the only service managing the WebSocket lifecycle.

Goal: Give agents control over the bridge connection state for recovery and testing scenarios.

tobiu added the enhancement label on Dec 28, 2025, 7:42 PM
tobiu added the ai label on Dec 28, 2025, 7:42 PM
tobiu added parent issue #8169 on Dec 28, 2025, 7:42 PM
tobiu assigned to @tobiu on Dec 28, 2025, 8:19 PM
tobiu referenced in commit 8fdba3b - "feat(ai): Implement ConnectionService Lifecycle Tools (#8181) on Dec 28, 2025, 8:22 PM
tobiu
tobiu Dec 28, 2025, 8:22 PM

Input from Gemini 3.0:

✦ I have implemented the lifecycle management tools for the ConnectionService.

Features:

  1. WebSocket Control: ConnectionService now has idempotent startServer() and stopServer() methods.
  2. New Tools:
    • start_ws_server: Restarts the bridge if it was stopped.
    • stop_ws_server: Shuts down the bridge and closes active connections.
  3. Refactoring: initAsync was updated to reuse the startServer logic, ensuring consistency.

This empowers agents to perform recovery operations and test connection resilience.

tobiu closed this issue on Dec 28, 2025, 8:22 PM