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:
+4
-2
@@ -19,14 +19,16 @@ export type DisposableCreatedHooks = {
|
|||||||
runtimeFallback?: DisposableHook
|
runtimeFallback?: DisposableHook
|
||||||
todoContinuationEnforcer?: DisposableHook
|
todoContinuationEnforcer?: DisposableHook
|
||||||
autoSlashCommand?: DisposableHook
|
autoSlashCommand?: DisposableHook
|
||||||
|
anthropicContextWindowLimitRecovery?: DisposableHook
|
||||||
}
|
}
|
||||||
|
|
||||||
export function disposeCreatedHooks(hooks: DisposableCreatedHooks): void {
|
export function disposeCreatedHooks(hooks: DisposableCreatedHooks): void {
|
||||||
hooks.claudeCodeHooks?.dispose?.()
|
hooks.claudeCodeHooks?.dispose?.()
|
||||||
hooks.commentChecker?.dispose?.()
|
hooks.commentChecker?.dispose?.()
|
||||||
hooks.runtimeFallback?.dispose?.()
|
hooks.runtimeFallback?.dispose?.()
|
||||||
hooks.todoContinuationEnforcer?.dispose?.()
|
hooks.todoContinuationEnforcer?.dispose?.()
|
||||||
hooks.autoSlashCommand?.dispose?.()
|
hooks.autoSlashCommand?.dispose?.()
|
||||||
|
hooks.anthropicContextWindowLimitRecovery?.dispose?.()
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createHooks(args: {
|
export function createHooks(args: {
|
||||||
|
|||||||
Reference in New Issue
Block a user