Skip to content

feat(oauth): default Antigravity-family connections to model auto-sync - #11887

Merged
diegosouzapw merged 2 commits into
release/v3.8.51from
fix/11685-recreate-antigravity-autosync-default
Aug 28, 2026
Merged

diegosouzapw merged 2 commits into
release/v3.8.51from
fix/11685-recreate-antigravity-autosync-default

Conversation

@diegosouzapw

Copy link
Copy Markdown
Collaborator

Summary

Recreation of #11685 (MumuTW) onto the active release/v3.8.51 — the original PR was opened
against main, which had diverged far enough from the active release to make a clean
retarget impractical, and MumuTW's fork rejects maintainer pushes. Cherry-picked the PR's
2 commits (author preserved) onto the current tip and re-validated here; both applied cleanly,
no conflicts.

The Antigravity backend (Google Cloud Code) ships new models faster than the pinned catalog
can be re-frozen by hand (Gemini 3.7 Flash tiers were live on the backend but AGY_PUBLIC_MODELS
still stopped at 3.6). Live discovery (#8123) and the 24h model auto-sync scheduler (#488)
already exist end-to-end — this defaults new Antigravity-family connections to
providerSpecificData.autoSync: true:

  • mapAntigravityTokens — covers both antigravity (IDE profile) and agy (CLI profile) OAuth connects
  • createConnectionFromAgyToken — covers Antigravity CLI token-file imports; on re-import the
    default sits before the existing-data spread so a previously persisted operator choice always wins

Existing connections are untouched; the per-connection dashboard toggle remains the opt-out.

Related Issues

Related to #2979, #488, #8123, #7678.

Verification (on release/v3.8.51 tip)

  • node --import tsx/esm --test tests/unit/antigravity-family-auto-sync-default.test.ts — 5/5 passing
  • node scripts/check/check-file-size.mjs — pass
  • node scripts/check/check-changelog-integrity.mjs — pass

Closes #11685 (recreated — commit author MumuTW preserved via cherry-pick).

Co-authored-by: MumuTW 42820974+MumuTW@users.noreply.github.com

MumuTW added 2 commits August 28, 2026 09:25
The Antigravity backend ships new models faster than the pinned catalog
can be re-frozen by hand: Gemini 3.7 Flash tiers were live upstream
(visible in `agy models` and :fetchAvailableModels) while
AGY_PUBLIC_MODELS / ANTIGRAVITY_PUBLIC_MODELS still stopped at 3.6, so
/v1/models stayed blind to them and bare names had no alias to resolve.

Live discovery (#8123) and the 24h model auto-sync scheduler (#488)
already exist end-to-end; the missing piece is the opt-in trigger. New
Antigravity-family connections now ship with
providerSpecificData.autoSync = true so discovery lands in the synced
catalog automatically:

- mapAntigravityTokens covers both antigravity (ide) and agy (cli)
  OAuth connects
- createConnectionFromAgyToken covers Antigravity CLI token-file
  imports; the re-import default sits BEFORE the existing-data spread
  so a persisted operator choice (true or false) always wins

Existing connections are untouched; the per-connection dashboard toggle
keeps working as the opt-out.
@diegosouzapw
diegosouzapw merged commit 0f88b74 into release/v3.8.51 Aug 28, 2026
7 of 12 checks passed
@diegosouzapw
diegosouzapw deleted the fix/11685-recreate-antigravity-autosync-default branch August 28, 2026 12:41
diegosouzapw added a commit that referenced this pull request Sep 7, 2026
…ments, cover every cycle commit, credit every contributor (#12971)

Mid-cycle reconciliation of `## [3.8.51]` against the full cycle range
`release/v3.8.50..release/v3.8.51` (0915890..d6f3150, 696 non-merge commits):

- fold the 366 `changelog.d/` fragments into the section (features had been
  landing under `[Unreleased]` because the aggregator appends at the FIRST
  matching heading) and delete them
- drop 25 fragments that duplicate bullets already shipped in `[3.8.50]` /
  `[Unreleased]` (six phantom fragments re-added by branches cut before the
  v3.8.50 aggregation; 19 pre-cycle PR fragments)
- generate one bullet per cycle commit that had no fragment (350 commits:
  44 features / 196 fixes / 91 maintenance, 17 Dependabot bumps rolled up),
  carrying the merged PR link and `— thanks @author`
- credit audit: link every fragment to the PR that actually landed it
  (`git log --diff-filter=A`), fix three `#PR_NUMBER` placeholders and two
  misnumbered fragments (#11845, #11864), credit the recreated PRs to their
  original authors (#11887–#11892 → @MumuTW, #12255 → @backryun,
  #11771 → @Rahulsharma0810), the nine hartmark co-authored fixes, and the
  deleted PR #11370 to @kriptoburak
- add the "Release by the numbers" block, the Top-25 ranking (mailmap +
  GitHub login) and the mandatory `### 🙌 Contributors` hall
  (111 external contributors + maintainer, generated by
  `release:contributors --inject`)
- resync the 41 i18n CHANGELOG mirrors

Gates: check:changelog-integrity OK, check:docs-sync PASS.
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
cheaper-inference#11887)

Recreated from cheaper-inference#11685 (MumuTW) onto the active release/v3.8.51 — both commits cherry-picked
cleanly with author preserved; 5/5 focused tests + file-size + changelog-integrity all green
on this tip. Thanks for the fix!
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…ments, cover every cycle commit, credit every contributor (cheaper-inference#12971)

Mid-cycle reconciliation of `## [3.8.51]` against the full cycle range
`release/v3.8.50..release/v3.8.51` (104d4f8..8da2a33, 696 non-merge commits):

- fold the 366 `changelog.d/` fragments into the section (features had been
  landing under `[Unreleased]` because the aggregator appends at the FIRST
  matching heading) and delete them
- drop 25 fragments that duplicate bullets already shipped in `[3.8.50]` /
  `[Unreleased]` (six phantom fragments re-added by branches cut before the
  v3.8.50 aggregation; 19 pre-cycle PR fragments)
- generate one bullet per cycle commit that had no fragment (350 commits:
  44 features / 196 fixes / 91 maintenance, 17 Dependabot bumps rolled up),
  carrying the merged PR link and `— thanks @author`
- credit audit: link every fragment to the PR that actually landed it
  (`git log --diff-filter=A`), fix three `#PR_NUMBER` placeholders and two
  misnumbered fragments (cheaper-inference#11845, cheaper-inference#11864), credit the recreated PRs to their
  original authors (cheaper-inference#11887–cheaper-inference#11892 → @MumuTW, cheaper-inference#12255 → @backryun,
  cheaper-inference#11771 → @Rahulsharma0810), the nine hartmark co-authored fixes, and the
  deleted PR cheaper-inference#11370 to @kriptoburak
- add the "Release by the numbers" block, the Top-25 ranking (mailmap +
  GitHub login) and the mandatory `### 🙌 Contributors` hall
  (111 external contributors + maintainer, generated by
  `release:contributors --inject`)
- resync the 41 i18n CHANGELOG mirrors

Gates: check:changelog-integrity OK, check:docs-sync PASS.
Witroch4 pushed a commit to Witroch4/OmniRoute that referenced this pull request Oct 24, 2026
Port of upstream 0f88b74 (cheaper-inference#11887). New agy/antigravity connections (OAuth or
agy CLI token import) are created with providerSpecificData.autoSync = true, so
the existing 24h model sync keeps the synced catalog (and /v1/models) current
with what the account's backend lists. Existing connections are unchanged; a
persisted operator choice wins on re-import.

Fork adaptation: the fork does not persist clientProfile in mapTokens — both
providers default to the official CLI identity — so the ported test asserts
that default instead of upstream's "ide" for antigravity.

(cherry picked from commit 0f88b74)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants