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

@@ -1404,6 +1404,10 @@ function registerIpcHandlers() {
return insightService.getTodayStats()
})
ipcMain.handle('insight:triggerTest', async () => {
return insightService.triggerTest()
})
ipcMain.handle('config:clear', async () => {
if (isLaunchAtStartupSupported() && getSystemLaunchAtStartup()) {
const result = setSystemLaunchAtStartup(false)