diff options
| author | Adam <[email protected]> | 2026-03-12 11:31:52 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-12 11:31:52 -0500 |
| commit | 0e077f748352df6d44c811829baff3c26b3436ac (patch) | |
| tree | 1239dd7f492a528037c92ef695b31ef90b5c86cc /packages/app/src/context/global-sync.tsx | |
| parent | 776e7a9c15f3e352c5abf0b0949a5d7b767adfa3 (diff) | |
| download | opencode-0e077f748352df6d44c811829baff3c26b3436ac.tar.gz opencode-0e077f748352df6d44c811829baff3c26b3436ac.zip | |
feat: session load perf (#17186)
Diffstat (limited to 'packages/app/src/context/global-sync.tsx')
| -rw-r--r-- | packages/app/src/context/global-sync.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/app/src/context/global-sync.tsx b/packages/app/src/context/global-sync.tsx index 645bd678b..1b6cdf530 100644 --- a/packages/app/src/context/global-sync.tsx +++ b/packages/app/src/context/global-sync.tsx @@ -29,6 +29,7 @@ import { bootstrapDirectory, bootstrapGlobal } from "./global-sync/bootstrap" import { createChildStoreManager } from "./global-sync/child-store" import { applyDirectoryEvent, applyGlobalEvent, cleanupDroppedSessionCaches } from "./global-sync/event-reducer" import { createRefreshQueue } from "./global-sync/queue" +import { clearSessionPrefetchDirectory } from "./global-sync/session-prefetch" import { estimateRootSessionTotal, loadRootSessionsWithFallback } from "./global-sync/session-load" import { trimSessions } from "./global-sync/session-trim" import type { ProjectMeta } from "./global-sync/types" @@ -161,6 +162,7 @@ function createGlobalSync() { queue.clear(directory) sessionMeta.delete(directory) sdkCache.delete(directory) + clearSessionPrefetchDirectory(directory) }, }) |
