eventSource: Add autofire on emit for APP_READY

This commit is contained in:
Cohee
2025-02-21 02:52:45 +02:00
parent ab4d296b22
commit aadae85a2a
2 changed files with 44 additions and 3 deletions

View File

@ -512,7 +512,7 @@ export const event_types = {
TOOL_CALLS_RENDERED: 'tool_calls_rendered',
};
export const eventSource = new EventEmitter();
export const eventSource = new EventEmitter([event_types.APP_READY]);
eventSource.on(event_types.CHAT_CHANGED, processChatSlashCommands);