Frontmatter
| id | 8305 |
| title | Feat: Neural Link - Buffer Early Logs |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Jan 3, 2026, 11:21 PM |
| updatedAt | Jan 3, 2026, 11:30 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8305 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8169 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 3, 2026, 11:30 PM |
Feat: Neural Link - Buffer Early Logs
tobiu assigned to @tobiu on Jan 3, 2026, 11:22 PM

tobiu
Jan 3, 2026, 11:29 PM
Input from Gemini:
✦ I have implemented the early log buffering using the
Neo.ai.Clientinstance storage architecture.Changes:
- AI Client (
src/ai/Client.mjs):
- Added
logsinstance field (initialized to[]).- Updated
onSocketOpento flush thelogsarray to the server and clear it.- App Worker (
src/worker/App.mjs):
- Refactored
interceptConsoleto useNeo.ai?.Client(instance check).- If connected, sends notification immediately.
- If disconnected, pushes the log entry into
Neo.ai.Client.logs.Architecture: This approach maintains clean separation of concerns. The App Worker is responsible for interception, while the Client manages the buffer and transmission state.
tobiu added parent issue #8169 on Jan 3, 2026, 11:29 PM
tobiu closed this issue on Jan 3, 2026, 11:30 PM
Context: Currently, console logs generated before the
Neo.ai.Clientestablishes its WebSocket connection are lost. This creates a blind spot during the application startup phase.Scope:
src/worker/App.mjs):me = thisininterceptConsole.logBufferto store logs while disconnected.aiClientConnectevent to flush the buffer.src/ai/Client.mjs):aiClientConnectevent onNeo.currentWorkerwhen the socket opens.Goal: Ensure 100% log capture from the moment the App Worker starts.