fix: address Cubic round-4 P2 issues

- isTodo: allow optional id to match Todo interface, preventing
  todos without ids from being silently dropped
- messageHasContentFromSDK: treat unknown part types as empty
  (continue) instead of content (return true) for parity with
  existing storage logic
- readMessagesFromSDK in recover-empty-content-message-sdk: wrap
  SDK call in try/catch to prevent recovery from throwing
This commit is contained in:
YeonGyu-Kim
2026-02-16 00:45:07 +09:00
parent 557340af68
commit 8d82025b70
3 changed files with 8 additions and 4 deletions
@@ -32,7 +32,7 @@ function messageHasContentFromSDK(message: SDKMessage): boolean {
if (TOOL_TYPES.has(type)) return true
return true
continue
}
return false