feat(chat): smooth loading with progressive session hydration

This commit is contained in:
tisonhuang committed 2026-03-04 21:19:10 +08:00
1 parent dbdb2e2959
commit 22b6a07749
7 files changed
+189 -49

No files matched your search

+1
View File
@@ -130,6 +130,7 @@ contextBridge.exposeInMainWorld('electronAPI', {
chat: {
connect: () => ipcRenderer.invoke('chat:connect'),
getSessions: () => ipcRenderer.invoke('chat:getSessions'),
getSessionStatuses: (usernames: string[]) => ipcRenderer.invoke('chat:getSessionStatuses', usernames),
getExportTabCounts: () => ipcRenderer.invoke('chat:getExportTabCounts'),
getSessionMessageCounts: (sessionIds: string[]) => ipcRenderer.invoke('chat:getSessionMessageCounts', sessionIds),
enrichSessionsContactInfo: (usernames: string[]) =>