fix(hooks): dispose anthropic recovery hook on shutdown

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-04 15:39:12 +09:00
parent 268946d117
commit 2b55f65c36
+4 -2
View File
@@ -19,14 +19,16 @@ export type DisposableCreatedHooks = {
runtimeFallback?: DisposableHook
todoContinuationEnforcer?: DisposableHook
autoSlashCommand?: DisposableHook
anthropicContextWindowLimitRecovery?: DisposableHook
}
export function disposeCreatedHooks(hooks: DisposableCreatedHooks): void {
hooks.claudeCodeHooks?.dispose?.()
hooks.commentChecker?.dispose?.()
hooks.claudeCodeHooks?.dispose?.()
hooks.commentChecker?.dispose?.()
hooks.runtimeFallback?.dispose?.()
hooks.todoContinuationEnforcer?.dispose?.()
hooks.autoSlashCommand?.dispose?.()
hooks.anthropicContextWindowLimitRecovery?.dispose?.()
}
export function createHooks(args: {