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

+5
View File
@@ -74,6 +74,11 @@ export interface ElectronAPI {
chat: {
connect: () => Promise<{ success: boolean; error?: string }>
getSessions: () => Promise<{ success: boolean; sessions?: ChatSession[]; error?: string }>
getSessionStatuses: (usernames: string[]) => Promise<{
success: boolean
map?: Record<string, { isFolded?: boolean; isMuted?: boolean }>
error?: string
}>
getExportTabCounts: () => Promise<{
success: boolean
counts?: {