From e3c0cd64dcfe8c7a7794ac6e576138ccef7680f8 Mon Sep 17 00:00:00 2001 From: Daniel <57051444+daniel-lxs@users.noreply.github.com> Date: Thu, 8 Jan 2026 17:36:45 -0500 Subject: [PATCH] fix: disable Gemini thought signature persistence to prevent corrupted signature errors (#10554) --- src/api/providers/gemini.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/providers/gemini.ts b/src/api/providers/gemini.ts index 4402e3e017..1da8273a14 100644 --- a/src/api/providers/gemini.ts +++ b/src/api/providers/gemini.ts @@ -456,7 +456,10 @@ export class GeminiHandler extends BaseProvider implements SingleCompletionHandl } public getThoughtSignature(): string | undefined { - return this.lastThoughtSignature + // Disabled to prevent "Corrupted thought signature" errors on task resumption. + // Gemini thought signatures are session-specific and cannot be reliably reused + // across API calls or after task resumption from history. + return undefined } public getResponseId(): string | undefined {