perf: read conversation lists in the readonly worker and diff activity history saves
conversations:list-summaries and conversations:get run on the readonly query worker. Activity history replace validates and serializes only changed records; a new activity-history:update IPC writes one record. Adds npm run perf:main.
This commit is contained in:
@@ -68,6 +68,7 @@ import type {
|
||||
AssistantTask,
|
||||
ExecutionStats,
|
||||
ActivityHistorySnapshot,
|
||||
ActivityHistoryUpdate,
|
||||
ActivityRecord,
|
||||
TokenUsageSummary,
|
||||
ConversationBranchInput,
|
||||
@@ -1286,6 +1287,9 @@ const desktopApi: DesktopApi = {
|
||||
records,
|
||||
legacyHistoryMayBeIncomplete
|
||||
})
|
||||
},
|
||||
update: async (update: ActivityHistoryUpdate) => {
|
||||
await ipcRenderer.invoke(ipcChannels.activityHistoryUpdate, update)
|
||||
}
|
||||
},
|
||||
usage: {
|
||||
|
||||
Reference in New Issue
Block a user