feat(hooks): wire pluginConfig to preemptive-compaction hook factory
This commit is contained in:
parent
bcf7fff9b9
commit
2e845c8d99
@ -82,7 +82,7 @@ export function createSessionHooks(args: {
|
|||||||
isHookEnabled("preemptive-compaction") &&
|
isHookEnabled("preemptive-compaction") &&
|
||||||
pluginConfig.experimental?.preemptive_compaction
|
pluginConfig.experimental?.preemptive_compaction
|
||||||
? safeHook("preemptive-compaction", () =>
|
? safeHook("preemptive-compaction", () =>
|
||||||
createPreemptiveCompactionHook(ctx, modelCacheState))
|
createPreemptiveCompactionHook(ctx, pluginConfig, modelCacheState as any))
|
||||||
: null
|
: null
|
||||||
|
|
||||||
const sessionRecovery = isHookEnabled("session-recovery")
|
const sessionRecovery = isHookEnabled("session-recovery")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user