Frontmatter
| id | 8194 |
| title | Feat: Neural Link - Propagate Runtime Errors to Agent |
| state | Closed |
| labels | bugenhancementai |
| assignees | tobiu |
| createdAt | Dec 28, 2025, 11:17 PM |
| updatedAt | Dec 28, 2025, 11:20 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8194 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8169 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 28, 2025, 11:20 PM |
Feat: Neural Link - Propagate Runtime Errors to Agent
tobiu assigned to @tobiu on Dec 28, 2025, 11:18 PM
tobiu added parent issue #8169 on Dec 28, 2025, 11:18 PM

tobiu
Dec 28, 2025, 11:20 PM
Input from Gemini:
✦ I have implemented error propagation for the Neural Link.
Changes in
src/ai/Client.mjs:
- Enhanced
onSocketMessage: Now wrapshandleRequestin atry...catchblock.- Added
sendError: Sends a JSON-RPC 2.0 error response (Code -32603) with the exception message and stack trace.Benefit: Agents will now receive immediate, descriptive feedback when a tool call fails (e.g., "Component not found"), enabling self-correction instead of timeouts.
tobiu closed this issue on Dec 28, 2025, 11:20 PM
Context: The current
Neo.ai.Client.onSocketMessageimplementation catches errors but only logs them to the console. It does not send an error response back to the Neural Link server.Problem: If
handleRequestthrows (e.g., "Component not found"), the server hangs waiting for a response that never comes. The agent perceives this as a timeout or a broken tool.Requirement:
handleRequestin atry...catch.catchblock, callsendResponse(data.id, {error: e.message})(or a similar error structure compliant with JSON-RPC 2.0).Goal: Ensure agents receive explicit error feedback when a runtime operation fails.