We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c1c36b commit 0e5201eCopy full SHA for 0e5201e
packages/cli/src/server/socketio/WebSocketService.ts
@@ -421,7 +421,9 @@ export class WebSocketService extends EventEmitter implements IWebSocketService
421
* Start monitoring memory for new messages
422
*/
423
private async startMemoryMonitoring() {
424
- logger.info(`[WebSocket] Starting memory monitoring for agent ${this.runtime!.agentId}`);
+ if (!this.runtime) return;
425
+
426
+ logger.info(`[WebSocketService] Starting memory monitoring for agent ${this.runtime.agentId}`);
427
// Implementation would depend on your memory architecture
428
// For example, you might poll the database or set up a subscription
429
}
0 commit comments