refactor(antigravity): remove unused client signature handling in thinking objects

This commit is contained in:
Luis Pater
2026-01-20 10:17:55 +08:00
parent 0766c49f93
commit d4bb4e6624

View File

@@ -124,11 +124,11 @@ func ConvertClaudeRequestToAntigravity(modelName string, inputRawJSON []byte, _
if contentTypeResult.Type == gjson.String && contentTypeResult.String() == "thinking" { if contentTypeResult.Type == gjson.String && contentTypeResult.String() == "thinking" {
// Use GetThinkingText to handle wrapped thinking objects // Use GetThinkingText to handle wrapped thinking objects
thinkingText := thinking.GetThinkingText(contentResult) thinkingText := thinking.GetThinkingText(contentResult)
signatureResult := contentResult.Get("signature") // signatureResult := contentResult.Get("signature")
clientSignature := "" // clientSignature := ""
if signatureResult.Exists() && signatureResult.String() != "" { // if signatureResult.Exists() && signatureResult.String() != "" {
clientSignature = signatureResult.String() // clientSignature = signatureResult.String()
} // }
// Always try cached signature first (more reliable than client-provided) // Always try cached signature first (more reliable than client-provided)
// Client may send stale or invalid signatures from different sessions // Client may send stale or invalid signatures from different sessions