From aa3d734284fbb21181577226c6aa8373f2e30853 Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Fri, 13 Feb 2026 08:30:56 -0700 Subject: [PATCH] fix: remove dead responseId variable and stale getResponseId type cast --- src/core/task/Task.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/task/Task.ts b/src/core/task/Task.ts index 2747ad4016..8a91500db9 100644 --- a/src/core/task/Task.ts +++ b/src/core/task/Task.ts @@ -1064,13 +1064,10 @@ export class Task extends EventEmitter implements TaskLike { } const handler = this.api as ApiHandler & { - getResponseId?: () => string | undefined getEncryptedContent?: () => { encrypted_content: string; id?: string } | undefined } if (message.role === "assistant") { - const responseId = handler.getResponseId?.() - // Check if the message is already in native AI SDK format (from result.response.messages). // These messages have providerOptions on content parts (reasoning signatures, etc.) // and don't need manual block injection. @@ -1089,7 +1086,7 @@ export class Task extends EventEmitter implements TaskLike { return } - // Fallback path: store the manually-constructed message with responseId and timestamp. + // Fallback path: store the manually-constructed message with timestamp. // This handles non-AI-SDK providers and AI SDK responses without reasoning // (text-only or text + tool calls where no content parts carry providerOptions). const reasoningData = handler.getEncryptedContent?.()