Skip to content

Commit e3c0cd6

Browse files
authored
fix: disable Gemini thought signature persistence to prevent corrupted signature errors (#10554)
1 parent 1d9f7f2 commit e3c0cd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/api/providers/gemini.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,10 @@ export class GeminiHandler extends BaseProvider implements SingleCompletionHandl
456456
}
457457

458458
public getThoughtSignature(): string | undefined {
459-
return this.lastThoughtSignature
459+
// Disabled to prevent "Corrupted thought signature" errors on task resumption.
460+
// Gemini thought signatures are session-specific and cannot be reliably reused
461+
// across API calls or after task resumption from history.
462+
return undefined
460463
}
461464

462465
public getResponseId(): string | undefined {

0 commit comments

Comments
 (0)