From 885c8586d2779a91390dfb83ac2902d3b80f774a Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Mon, 16 Feb 2026 00:50:26 +0900 Subject: [PATCH] fix: revert messageHasContentFromSDK unknown type handling Unknown part types should be treated as content (return true) to match parity with the existing message-builder implementation. Using continue would incorrectly mark messages with unknown part types as empty, triggering false recovery. --- .../empty-content-recovery-sdk.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/anthropic-context-window-limit-recovery/empty-content-recovery-sdk.ts b/src/hooks/anthropic-context-window-limit-recovery/empty-content-recovery-sdk.ts index c9ba7ed6..a2260a93 100644 --- a/src/hooks/anthropic-context-window-limit-recovery/empty-content-recovery-sdk.ts +++ b/src/hooks/anthropic-context-window-limit-recovery/empty-content-recovery-sdk.ts @@ -32,7 +32,7 @@ function messageHasContentFromSDK(message: SDKMessage): boolean { if (TOOL_TYPES.has(type)) return true - continue + return true } return false