Files
CLIProxyAPI/internal/runtime/executor/antigravity_executor.go
sususu 1398f27390 fix(signature): scope Vertex bare-Tink replay to Vertex targets
Live replay showed Antigravity (cloudcode-pa) and AI Studio
(generativelanguage) reject Vertex bare-Tink thought signatures with
400 "Corrupted thought signature", while Vertex accepts them natively.
After recognizing bare-Tink as a Gemini envelope, history issued by
Vertex and routed to those endpoints was replayed verbatim and failed.

- add SanitizeNonVertexGeminiRequestThoughtSignatures, which treats
  bare-Tink as incompatible: the first functionCall in a group gets the
  bypass sentinel and other parts drop the signature
- use it in the Antigravity, Gemini API and AI Studio executors; the
  Vertex executor keeps the preserving sanitizer
- cover the endpoint split in the signature package and with mocked
  upstream bodies for the Gemini API and Antigravity executors
2026-10-26 23:33:12 +08:00

36 KiB