Files
openclaw/src/agents
Marc c4e8b60d2c fix: strip thought_signature fields for cross-provider compatibility
Claude's extended thinking feature generates thought_signature fields
(message IDs like "msg_abc123...") in content blocks. When these are
sent to Google's Gemini API, it expects Base64-encoded bytes and
rejects Claude's format with a 400 error.

This commit adds stripThoughtSignatures() to remove these fields from
assistant message content blocks during sanitization, enabling session
histories to be shared across different providers (e.g., Claude → Gemini).

Fixes cross-provider session bug where switching from Claude-thinking
to Gemini (or vice versa) would fail with:
"Invalid value at 'thought_signature' (TYPE_BYTES), Base64 decoding failed"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 04:11:02 +00:00
..
2026-01-12 11:23:44 +00:00
2026-01-11 01:39:30 +00:00
2026-01-11 00:55:22 +00:00
2026-01-04 14:38:51 +00:00
2026-01-13 03:36:53 +00:00
2026-01-11 04:28:30 +01:00
2026-01-08 04:44:15 +00:00
2026-01-13 03:36:53 +00:00
2026-01-07 00:04:44 +01:00
2026-01-08 08:26:40 +01:00
2026-01-12 01:16:39 +00:00
2026-01-06 19:54:50 +01:00
2026-01-01 17:30:15 +01:00