You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Google Antigravity 400 missing thought_signature on tool continuation (default_api:exec) #2545
When using google-antigravity with Codex App, multi-turn tool continuation fails with an upstream HTTP 400 error indicating that the replayed functionCall part for default_api:exec is missing the required thought_signature.
Error: Provider error 400: Antigravity invalid request: Function call is missing a thought_signature in functionCall parts. This is required for tools to work correctly, and missing thought_signature may lead to degraded model performance. Additional data, function call default_api:exec , position 4. Please refer to https://ai.google.dev/gemini-api/docs/thought-signatures for more details.
Expected behavior:
OpenCodex should preserve and attach the original thought_signature for historical functionCall items during tool call continuation and history replay so that upstream Google Antigravity accepts the request.
Reproduction
Configure OpenCodex with google-antigravity provider.
In Codex App (Windows), run a task that triggers tool execution (e.g. default_api:exec).
After subsequent turns (here at position 4), tool history continuation is sent.
Upstream rejects the request with HTTP 400 due to missing thought_signature on default_api:exec.
Version
2.29.0
Operating system
Windows 11 (build 26200)
Provider and model
google-antigravity / gemini
Logs or error output
Provider error 400: Antigravity invalid request: Function call is missing a thought_signature in functionCall parts. This is required for tools to work correctly, and missing thought_signature may lead to degraded model performance. Additional data, functioncall`default_api:exec` , position 4. Please refer to https://ai.google.dev/gemini-api/docs/thought-signatures for more details.
설명: 이 이슈는 구글 안티그래비티에서 도구를 이어 부를 때, 예전에 보낸 functionCall 칸에 생각 서명이 없어서 업스트림이 400 을 내는 일이다. 도구 이름은 default_api:exec 이고, 에러는 그 칸이 요청의 4번 자리라고 적는다. 작성자는 amartidandqdq 이다. 클라이언트는 코덱스 앱, 윈도우 11 이다. 보고 버전은 2.29.0 이다. 라벨은 bug, provider, tools 다. 지금 CURRENT dev HEAD 는 c0c9544 이다. 이번 시간에 origin/dev 가 2546 한 번 착지했다. 릴리스 사전 검사를 CI 와 같은 묶음으로 돌리게 고친 일이다. 이 이슈와 무관하다. 구현 풀은 이 번호로 열려 있지 않다. 이슈를 연다. 닫지 말 것. 라벨은 바꾸지 말 것. 내가 머지하지 않는다.
HEAD 에는 이 구멍용 길이 이미 세 겹이다. 첫째, src/adapters/google.ts 271-274줄은 도구 호출 칸을 만들 때 providerMetadata.google.thoughtSignature 와 옛 칸 thoughtSignature 와 lookupReplayThoughtSignature 를 이 순서로 보고, 진짜 서명만 붙인다. 합성 아이디 fc_... 는 src/adapters/google-antigravity-wire.ts 30-36줄 isLikelyRealThoughtSignature 가 막는다. 둘째, 같은 파일 726-733줄은 이름을 와이어용으로 고친 뒤에 applyAntigravityReplay 를 돌린다. 주석이 서명은 업스트림이 보는 이름으로 찾는다고 적는다. 셋째, src/responses/thought-signature-replay.ts 273-288줄 rememberExtraContentForReplay 는 자유형 custom_tool_call 이 extra_content 를 못 실으니, 서버가 call_id 로 서명을 기억한다. 코덱스 앱은 extra_content 를 다시 안 보낸다. 그 모듈 7-10줄이 그 사실을 적는다.
default_api:exec 자체도 HEAD 시험에 있다. tests/google-antigravity-replay.test.ts 208-217줄은 업스트림이 parsed args 로 본 호출을, 클라이언트가 input JSON 문자열로 다시 보낼 때 서명이 붙는지 잠근다. 342-366줄 tests/google-signature-history-roundtrip.test.ts 는 내구 저장이 없는 스코프에서 같은 이름 자유형 호출이 세션 캐시로 서명을 받는지 잠근다. src/adapters/google-wire-compiler.ts 6줄 GOOGLE_TOOL_NAME 은 콜론을 허용하지 않는다. 30줄은 콜론을 밑줄로 바꾼 뒤 해시를 붙인다. 그래서 와이어 이름은 default_api_exec_ 뒤에 짧은 해시가 붙는 꼴이다. 관찰은 응답의 날것 칸을 보고, 재생은 컴파일 뒤에 돈다. 둘 다 와이어 이름을 쓴다. 에러 글이 콜론 이름을 적은 것은, 보고 버전 2.29.0 에 이 컴파일이 없었거나, 업스트림이 표시 이름을 적은 것일 수 있다.
보고 버전 2.29.0 은 2026-08-21 태그다.
그 뒤에 2339 가 스트림 서명 순서를 고쳤다.
같은 400 글의 옛 이슈 2125 2440 1735 1429 는 닫지만, 이 이슈를 그것으로 닫지 말 것.
열린 관련 풀은 2513 뿐이다. 잘린 히스토리 드래프트. 4번 자리는 짧은 이어 부르기. 서로 닫지 말 것.
남는 구멍: 세션 아이디가 스레드 헤더 없으면 첫 사용자 글에 묶인다. 앞 글을 줄이면 캐시가 빗나간다. applyAntigravityReplay 는 키마다 서명 하나라 같은 도구를 두 번 부르면 덮어쓴다.
내구 저장은 자격 범위가 있어야 한다. types.ts 와 config.ts 가르기와는 무관하다. 프리뷰 배포가 아니다. 2463 2464 2465 를 닫지 말 것.
이슈 본문 Version 2.29.0 - 보고 버전이 HEAD 보다 뒤다
src/adapters/google.ts 271-274줄 HEAD - 칸에 서명을 붙이는 길이 있다
src/adapters/google.ts 726-733줄 HEAD - 이름 컴파일 뒤에 재생이 돈다
tests/google-antigravity-replay.test.ts 208-217줄 HEAD - exec 재생 풀기 시험이 있다
src/responses/thought-signature-replay.ts 273-288줄 HEAD - custom_tool_call 을 call_id 로 기억한다
src/adapters/google-wire-compiler.ts 6줄 30줄 HEAD - 콜론 이름은 와이어에서 바뀐다
2513 - 잘린 히스토리 드래프트. 이 이슈로 그 풀을 닫지 말 것
2125 2440 1735 1429 - 같은 400 글의 닫힌 이슈. 다시 열지 말 것
메인테이너의 판단이 필요한 지점
이 이슈를 지금 닫을지. 닫지 말 것. 지금 버전 재현이 없다
2.32.1 또는 origin/dev 에서 같은 4번 자리를 다시 보내 달라고 할지. 그렇게 하는 편이 맞다
2125 나 2440 으로 중복 닫을지. 하지 말 것
2513 을 이 이슈 때문에 합칠지. 하지 말 것. 드래프트다
지금 구현 풀을 새로 열지. 버전 확인 전에는 열지 말 것
너의 추천
기다린다. 이 이슈는 연다. 작성자에게 2.32.1 또는 지금 origin/dev 로 올려 같은 이어 부르기를 다시 해 달라고 한다.
그래도 400 이면 요청 contents 의 4번 functionCall 칸과 프록시 버전을 가려서 붙인다.
2513 은 드래프트로 둔다. 2125 와 2440 은 닫힌 채로 둔다. 내가 머지하지 않고 구현하지 않는다. 라벨은 그대로 둔다. 프리뷰 배포가 아니다.
Fixed on dev by #2577 (4d3d2716e), which landed during this cycle's backlog sweep — verified as an ancestor of the current head rather than taken on report.
Your exact case is covered: a client replaying default_api:exec as a serialized {input: "{...}"} is now matched against the parsed arguments Google actually observed, so the stored signature is found and attached (tests/google-antigravity-replay.test.ts:216).
Two related failure modes were fixed with it, since either would have produced the same 400 for you:
repeated identical calls — signatures are retained chronologically and replayed in reverse alignment, so truncated history gets the newest surviving signature rather than a stale or missing one
compaction — replay sessions are keyed by the Codex thread id, so a compacted conversation keeps its signature session instead of re-anchoring
Worth stating what was deliberately not done, because it is the tempting shortcut: OpenCodex does not synthesize a signature when none is available. google-antigravity-wire.ts:30 rejects implausible ones, so only signatures Google actually issued are forwarded. A fabricated value would satisfy the 400 and silently degrade tool correctness, which is the thing the upstream error is warning about.
Covering run on the current head: 150 pass / 0 fail across the four Google signature suites.
Thanks for including the upstream error verbatim, position and all — position 4 on a replayed part is what pointed at history replay rather than the live call.
Activity
lidge-jun commentedon Aug 25, 2026
리뷰 · 우선순위 53 / 80
설명: 이 이슈는 구글 안티그래비티에서 도구를 이어 부를 때, 예전에 보낸
functionCall칸에 생각 서명이 없어서 업스트림이 400 을 내는 일이다. 도구 이름은default_api:exec이고, 에러는 그 칸이 요청의 4번 자리라고 적는다. 작성자는 amartidandqdq 이다. 클라이언트는 코덱스 앱, 윈도우 11 이다. 보고 버전은 2.29.0 이다. 라벨은 bug, provider, tools 다. 지금 CURRENT dev HEAD 는 c0c9544 이다. 이번 시간에 origin/dev 가 2546 한 번 착지했다. 릴리스 사전 검사를 CI 와 같은 묶음으로 돌리게 고친 일이다. 이 이슈와 무관하다. 구현 풀은 이 번호로 열려 있지 않다. 이슈를 연다. 닫지 말 것. 라벨은 바꾸지 말 것. 내가 머지하지 않는다.HEAD 에는 이 구멍용 길이 이미 세 겹이다. 첫째, src/adapters/google.ts 271-274줄은 도구 호출 칸을 만들 때
providerMetadata.google.thoughtSignature와 옛 칸thoughtSignature와lookupReplayThoughtSignature를 이 순서로 보고, 진짜 서명만 붙인다. 합성 아이디fc_...는 src/adapters/google-antigravity-wire.ts 30-36줄isLikelyRealThoughtSignature가 막는다. 둘째, 같은 파일 726-733줄은 이름을 와이어용으로 고친 뒤에applyAntigravityReplay를 돌린다. 주석이 서명은 업스트림이 보는 이름으로 찾는다고 적는다. 셋째, src/responses/thought-signature-replay.ts 273-288줄rememberExtraContentForReplay는 자유형custom_tool_call이 extra_content 를 못 실으니, 서버가 call_id 로 서명을 기억한다. 코덱스 앱은 extra_content 를 다시 안 보낸다. 그 모듈 7-10줄이 그 사실을 적는다.default_api:exec자체도 HEAD 시험에 있다. tests/google-antigravity-replay.test.ts 208-217줄은 업스트림이 parsed args 로 본 호출을, 클라이언트가 input JSON 문자열로 다시 보낼 때 서명이 붙는지 잠근다. 342-366줄 tests/google-signature-history-roundtrip.test.ts 는 내구 저장이 없는 스코프에서 같은 이름 자유형 호출이 세션 캐시로 서명을 받는지 잠근다. src/adapters/google-wire-compiler.ts 6줄 GOOGLE_TOOL_NAME 은 콜론을 허용하지 않는다. 30줄은 콜론을 밑줄로 바꾼 뒤 해시를 붙인다. 그래서 와이어 이름은 default_api_exec_ 뒤에 짧은 해시가 붙는 꼴이다. 관찰은 응답의 날것 칸을 보고, 재생은 컴파일 뒤에 돈다. 둘 다 와이어 이름을 쓴다. 에러 글이 콜론 이름을 적은 것은, 보고 버전 2.29.0 에 이 컴파일이 없었거나, 업스트림이 표시 이름을 적은 것일 수 있다.보고 버전 2.29.0 은 2026-08-21 태그다.
그 뒤에 2339 가 스트림 서명 순서를 고쳤다.
같은 400 글의 옛 이슈 2125 2440 1735 1429 는 닫지만, 이 이슈를 그것으로 닫지 말 것.
열린 관련 풀은 2513 뿐이다. 잘린 히스토리 드래프트. 4번 자리는 짧은 이어 부르기. 서로 닫지 말 것.
남는 구멍: 세션 아이디가 스레드 헤더 없으면 첫 사용자 글에 묶인다. 앞 글을 줄이면 캐시가 빗나간다. applyAntigravityReplay 는 키마다 서명 하나라 같은 도구를 두 번 부르면 덮어쓴다.
내구 저장은 자격 범위가 있어야 한다. types.ts 와 config.ts 가르기와는 무관하다. 프리뷰 배포가 아니다. 2463 2464 2465 를 닫지 말 것.
이슈 본문 Version 2.29.0 - 보고 버전이 HEAD 보다 뒤다
src/adapters/google.ts 271-274줄 HEAD - 칸에 서명을 붙이는 길이 있다
src/adapters/google.ts 726-733줄 HEAD - 이름 컴파일 뒤에 재생이 돈다
tests/google-antigravity-replay.test.ts 208-217줄 HEAD - exec 재생 풀기 시험이 있다
src/responses/thought-signature-replay.ts 273-288줄 HEAD - custom_tool_call 을 call_id 로 기억한다
src/adapters/google-wire-compiler.ts 6줄 30줄 HEAD - 콜론 이름은 와이어에서 바뀐다
2513 - 잘린 히스토리 드래프트. 이 이슈로 그 풀을 닫지 말 것
2125 2440 1735 1429 - 같은 400 글의 닫힌 이슈. 다시 열지 말 것
메인테이너의 판단이 필요한 지점
너의 추천
기다린다. 이 이슈는 연다. 작성자에게 2.32.1 또는 지금 origin/dev 로 올려 같은 이어 부르기를 다시 해 달라고 한다.
그래도 400 이면 요청 contents 의 4번
functionCall칸과 프록시 버전을 가려서 붙인다.2513 은 드래프트로 둔다. 2125 와 2440 은 닫힌 채로 둔다. 내가 머지하지 않고 구현하지 않는다. 라벨은 그대로 둔다. 프리뷰 배포가 아니다.
이 댓글은 grok-bot이 작성했습니다
lidge-jun commentedon Aug 25, 2026
Fixed on
devby #2577 (4d3d2716e), which landed during this cycle's backlog sweep — verified as an ancestor of the current head rather than taken on report.Your exact case is covered: a client replaying
default_api:execas a serialized{input: "{...}"}is now matched against the parsed arguments Google actually observed, so the stored signature is found and attached (tests/google-antigravity-replay.test.ts:216).Two related failure modes were fixed with it, since either would have produced the same 400 for you:
Worth stating what was deliberately not done, because it is the tempting shortcut: OpenCodex does not synthesize a signature when none is available.
google-antigravity-wire.ts:30rejects implausible ones, so only signatures Google actually issued are forwarded. A fabricated value would satisfy the 400 and silently degrade tool correctness, which is the thing the upstream error is warning about.Covering run on the current head: 150 pass / 0 fail across the four Google signature suites.
Thanks for including the upstream error verbatim, position and all —
position 4on a replayed part is what pointed at history replay rather than the live call.