From 17c525e795168affec5cb928fdf8dbad63b6a51a Mon Sep 17 00:00:00 2001 From: Ammar Date: Mon, 13 Oct 2025 10:33:20 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Fix=20React=20DOM=20warning=20an?= =?UTF-8?q?d=20EventEmitter=20max=20listeners=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/icons/anthropic.svg | 9 +-------- src/services/aiService.ts | 3 +++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/assets/icons/anthropic.svg b/src/assets/icons/anthropic.svg index 135a8b9f3..4b8ac74d8 100644 --- a/src/assets/icons/anthropic.svg +++ b/src/assets/icons/anthropic.svg @@ -2,14 +2,7 @@ - - - - - - - - + diff --git a/src/services/aiService.ts b/src/services/aiService.ts index 8cdbf3eb4..d3e23050d 100644 --- a/src/services/aiService.ts +++ b/src/services/aiService.ts @@ -101,6 +101,9 @@ export class AIService extends EventEmitter { constructor(config: Config, historyService: HistoryService, partialService: PartialService) { super(); + // Increase max listeners to accommodate multiple concurrent workspace listeners + // Each workspace subscribes to stream events, and we expect >10 concurrent workspaces + this.setMaxListeners(50); this.config = config; this.historyService = historyService; this.partialService = partialService;