Skip to content

Commit 3da59b2

Browse files
authored
🤖 Fix React DOM warning and EventEmitter max listeners warning (#217)
Resolves two console warnings during development: **React DOM warning**: Removed attribute from Anthropic SVG metadata that React doesn't recognize as a valid DOM attribute. **EventEmitter max listeners**: Increased AIService max listeners from default 10 to 50 to accommodate multiple concurrent workspace subscriptions to stream events. _Generated with `cmux`_
1 parent c8589ed commit 3da59b2

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/assets/icons/anthropic.svg

Lines changed: 1 addition & 8 deletions
Loading

src/services/aiService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ export class AIService extends EventEmitter {
101101

102102
constructor(config: Config, historyService: HistoryService, partialService: PartialService) {
103103
super();
104+
// Increase max listeners to accommodate multiple concurrent workspace listeners
105+
// Each workspace subscribes to stream events, and we expect >10 concurrent workspaces
106+
this.setMaxListeners(50);
104107
this.config = config;
105108
this.historyService = historyService;
106109
this.partialService = partialService;

0 commit comments

Comments
 (0)