From 2b55f65c36ac8619b79be0a761e61262e5bdb5d3 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 4 Apr 2026 15:39:12 +0900 Subject: [PATCH] fix(hooks): dispose anthropic recovery hook on shutdown Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- src/create-hooks.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/create-hooks.ts b/src/create-hooks.ts index 67b75fbde..0e40ad480 100644 --- a/src/create-hooks.ts +++ b/src/create-hooks.ts @@ -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: {