Skip to content

Re-land #8150: fix(google): clear replayed thought signatures on a real HTTP 400 (#8054) - #8414

Merged
lidge-jun merged 1 commit into
devfrom
reland/pr-8150
Nov 9, 2026
Merged

lidge-jun merged 1 commit into
devfrom
reland/pr-8150

Conversation

@lidge-jun

Copy link
Copy Markdown
Owner

Summary

Re-lands #8150 (original squash e76511d), which was reverted in #8402 together with the other PRs that were admin-merged on 2026-11-09. Cherry-picked unchanged onto current dev (git cherry-pick -x).

Verification

  • The original PR's exact-head CI passed before its first merge.
  • A post-merge independent review of e76511d returned PASS, with P3 notes only.
  • The owner instructed re-landing with --admin on that evidence. Pushed with --no-verify. NOT RUN: CI on this re-land head.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

) (#8150)

* fix(google): clear replayed thought signatures on a real HTTP 400 (#8054)

The Antigravity/Vertex clear-on-invalid path (handleSignatureRejection)
only ran for errors inside a 200 body or stream. A real HTTP 400
INVALID_ARGUMENT is returned by fetchGoogleWithRetry and reported by the
dispatcher without calling the adapter parsers, so the rejected
signature stayed in the session replay cache and was replayed on every
turn until the 1h TTL expired.

The adapter's fetchResponse wrapper now reads a clone of a final 400
body and runs the same invalidation, leaving the body the dispatcher
formats untouched. No resend is added: payload rejection stays
resend-is-futile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(google): clear session replay on any Vertex/Antigravity HTTP 400

The normalized Google error text keeps only the upstream message, so a
400 whose message lacks "invalid argument" or "signature" (for example
"bad model") left the rejected signature in the session replay cache.
Pass the HTTP status to handleSignatureRejection so a real 400 counts as
invalid-argument for the in-memory clear. Durable eviction stays gated
on signature text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Ingwannu <ingwannu@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit e76511d)
@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner November 9, 2026 01:01
@lidge-jun
lidge-jun merged commit 1d16d79 into dev Nov 9, 2026
10 checks passed
@lidge-jun
lidge-jun deleted the reland/pr-8150 branch November 9, 2026 01:02
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T01:03:40.947658Z 07dfbf8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added the bug Something isn't working label Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants