feat(hooks): wire pluginConfig to preemptive-compaction hook factory

This commit is contained in:
YeonGyu-Kim
2026-02-22 17:19:46 +09:00
parent bcf7fff9b9
commit 2e845c8d99

View File

@@ -82,7 +82,7 @@ export function createSessionHooks(args: {
isHookEnabled("preemptive-compaction") &&
pluginConfig.experimental?.preemptive_compaction
? safeHook("preemptive-compaction", () =>
createPreemptiveCompactionHook(ctx, modelCacheState))
createPreemptiveCompactionHook(ctx, pluginConfig, modelCacheState as any))
: null
const sessionRecovery = isHookEnabled("session-recovery")