fix: resolve core bugs and enhance logging for AI insights

Fix aggressive activity analysis and loop bug, add detailed logs, and introduce test trigger button.

Co-authored-by: Jason <159670257+Jasonzhu1207@users.noreply.github.com>
This commit is contained in:
v0
2026-04-05 17:11:05 +00:00
parent aa029fe113
commit 95f1e73a39
4 changed files with 227 additions and 42 deletions

View File

@@ -447,6 +447,7 @@ contextBridge.exposeInMainWorld('electronAPI', {
// AI 见解
insight: {
testConnection: () => ipcRenderer.invoke('insight:testConnection'),
getTodayStats: () => ipcRenderer.invoke('insight:getTodayStats')
getTodayStats: () => ipcRenderer.invoke('insight:getTodayStats'),
triggerTest: () => ipcRenderer.invoke('insight:triggerTest')
}
})