perf: remove provider pre-fetch on dashboard startup

The dashboard was pre-loading data for ALL detected providers
on startup, causing unnecessary SQLite scans when Cursor was
detected. Now only loads data for the active provider.
This commit is contained in:
AgentSeal 2026-04-15 03:56:21 -07:00
parent 2871af10e8
commit 3c439cb28f

View file

@ -520,10 +520,6 @@ function InteractiveDashboard({ initialProjects, initialPeriod, initialProvider,
}
if (!cancelled) {
setDetectedProviders(found)
if (found.length > 1) {
const range = getDateRange(period)
for (const name of found) parseAllSessions(range, name).catch(() => {})
}
}
}
detect()