Files
openclaw/src
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-13 03:36:53 +00:00
2026-01-13 03:36:53 +00:00
2026-01-13 03:36:53 +00:00
2026-01-12 23:13:40 +00:00
2026-01-12 08:33:32 +00:00
2026-01-13 03:36:53 +00:00
2026-01-12 08:55:02 +00:00
2026-01-10 04:01:06 +01:00
2026-01-12 08:32:08 +00:00
2026-01-12 17:55:45 +00:00
2026-01-12 10:52:34 +00:00
2026-01-04 14:57:57 +00:00
2026-01-06 04:51:05 +00:00
2026-01-06 04:51:05 +00:00
2025-12-26 02:35:40 +01:00
2026-01-04 14:38:51 +00:00