diff --git a/src/plugin/hooks/create-session-hooks.ts b/src/plugin/hooks/create-session-hooks.ts index 411d0fc3..daa4e12e 100644 --- a/src/plugin/hooks/create-session-hooks.ts +++ b/src/plugin/hooks/create-session-hooks.ts @@ -82,7 +82,7 @@ export function createSessionHooks(args: { isHookEnabled("preemptive-compaction") && pluginConfig.experimental?.preemptive_compaction ? safeHook("preemptive-compaction", () => - createPreemptiveCompactionHook(ctx, pluginConfig, modelCacheState as any)) + createPreemptiveCompactionHook(ctx, pluginConfig, modelCacheState)) : null const sessionRecovery = isHookEnabled("session-recovery") @@ -175,7 +175,7 @@ export function createSessionHooks(args: { const anthropicContextWindowLimitRecovery = isHookEnabled("anthropic-context-window-limit-recovery") ? safeHook("anthropic-context-window-limit-recovery", () => - createAnthropicContextWindowLimitRecoveryHook(ctx, { experimental: pluginConfig.experimental })) + createAnthropicContextWindowLimitRecoveryHook(ctx, { experimental: pluginConfig.experimental, pluginConfig })) : null const autoUpdateChecker = isHookEnabled("auto-update-checker")