fix: reuse background tokenization warmups

This commit is contained in:
2026-03-08 16:01:11 -07:00
parent f775f90360
commit 38034db1e4
5 changed files with 334 additions and 33 deletions

View File

@@ -35,6 +35,18 @@ export function createBuildStartBackgroundWarmupsMainDepsHandler(
shouldWarmupJellyfinRemoteSession: () => deps.shouldWarmupJellyfinRemoteSession(),
shouldAutoConnectJellyfinRemote: () => deps.shouldAutoConnectJellyfinRemote(),
startJellyfinRemoteSession: () => deps.startJellyfinRemoteSession(),
...(deps.onYomitanExtensionWarmupScheduled
? {
onYomitanExtensionWarmupScheduled: (promise: Promise<void>) =>
deps.onYomitanExtensionWarmupScheduled!(promise),
}
: {}),
...(deps.onTokenizationWarmupScheduled
? {
onTokenizationWarmupScheduled: (promise: Promise<void>) =>
deps.onTokenizationWarmupScheduled!(promise),
}
: {}),
logDebug: deps.logDebug,
});
}