Skip to content

fix(models): mirror agy CLI selector, drop sonar, emit Gemini 4 thinkingConfig (2.9.16) - #125

Merged
JoshRob297 merged 1 commit into
mainfrom
fix/agy-mirror-2.9.16
Nov 29, 2026
Merged

JoshRob297 merged 1 commit into
mainfrom
fix/agy-mirror-2.9.16

Conversation

@JoshRob297

Copy link
Copy Markdown
Owner

Mirrors agy CLI's user-selectable catalog and aligns Gemini 4 thinking config.

Changes:

  • Strict agy mirror: model_discovery reads agentModelSorts from fetchAvailableModels when present and blocks internal deployments (-sonar, worker-agy, gemini-pro-orchestrator*) in DISCOVERY_DENYLIST, removing the spurious antigravity-gemini-4-hydrogen-sonar safety monitor entry.
  • Updated model table & real limits: adds antigravity-gemini-4-hydrogen (1M / 262k, low/medium/high/xhigh) to OPENCODE_MODEL_DEFINITIONS, corrects antigravity-gpt-oss-120b-medium output (8192 -> 32768), and stores KNOWN_ANTIGRAVITY_MODEL_SPECS measured on a full-entitlement agy account (neon, carbon, argon, claude-*-5-5) while keeping grant-gated models hidden unless an active, non-suspended account has them.
  • Gemini 4 thinkingConfig: isGemini4Model / isThinkingLevelModel + request.ts emit thinkingConfig: { includeThoughts: true, thinkingLevel } for low/medium/high/xhigh, keeping thinkingLevel off Claude 5.5.
  • v2 post-login discovery: refreshes discovered models and reloads context.model after native OAuth completion.
  • Docs & release prep: README (en/es), MODEL-VARIANTS.md, ANTIGRAVITY_API_SPEC.md, CHANGELOG.md, package.json -> 2.9.16.

Verification:

  • 53 test files / 1,275 passed (0 fail)
  • Live hrjoces22: gemini-4-hydrogen low / high / xhigh emitted thinkingConfig and returned HTTP 200 with thoughtsTokenCount (122 / 109 / 233); verify:live 3/3 passed.

…ingConfig (2.9.16)

- mirror agy's selectable catalog (agentModelSorts) and block internal monitor,
  worker and orchestrator deployments (-sonar, worker-agy, gemini-pro-orchestrator*)
- add antigravity-gemini-4-hydrogen (1M / 262k, up to xhigh) to curated models,
  fix gpt-oss-120b-medium output limit (8192 -> 32768), and record real limits
  from the full-entitlement agy catalog (neon/carbon/argon/claude-5-5)
- emit thinkingConfig (includeThoughts + thinkingLevel including xhigh) for
  Gemini 4 models while keeping thinkingLevel off Claude 5.5
- re-run discovery and reload context.model after native OAuth login in v2
- bump version and changelog to 2.9.16
@github-actions

Copy link
Copy Markdown

Automated verification

Check Result
typecheck success
tests success
build success
branch clean
typecheck

> opencode-antigravity-auth@2.9.16 typecheck
> tsc --noEmit

tests
[2m(�[22m�[2m58 tests�[22m�[2m)�[22m�[32m 19�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/rotation.test.ts �[2m(�[22m�[2m59 tests�[22m�[2m)�[22m�[32m 38�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/transform/cross-model-sanitizer.test.ts �[2m(�[22m�[2m28 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/storage.test.ts �[2m(�[22m�[2m22 tests�[22m�[2m)�[22m�[32m 21�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/config/updater.test.ts �[2m(�[22m�[2m18 tests�[22m�[2m)�[22m�[32m 29�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/cross-model-integration.test.ts �[2m(�[22m�[2m14 tests�[22m�[2m)�[22m�[32m 8�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/persist-account-pool.test.ts �[2m(�[22m�[2m38 tests�[22m�[2m | �[22m�[90m25 todo�[39m�[2m)�[22m�[32m 16�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/stores/signature-store.test.ts �[2m(�[22m�[2m30 tests�[22m�[2m)�[22m�[32m 17�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/thinking-recovery.test.ts �[2m(�[22m�[2m29 tests�[22m�[2m)�[22m�[32m 10�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/cache.test.ts �[2m(�[22m�[2m25 tests�[22m�[2m)�[22m�[32m 16�[2mms�[22m�[39m
 �[32m✓�[39m src/v2/adapter.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 32�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin.test.ts �[2m(�[22m�[2m12 tests�[22m�[2m)�[22m�[32m 70�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/search.test.ts �[2m(�[22m�[2m12 tests�[22m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/auto-update-checker/index.test.ts �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[32m 15�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/antigravity-first-fallback.test.ts �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 10�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/recovery.test.ts �[2m(�[22m�[2m32 tests�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/usage-ledger.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 12�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/version.test.ts �[2m(�[22m�[2m15 tests�[22m�[2m)�[22m�[32m 41�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/model-entitlements.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 9�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/auto-update-checker/checker.test.ts �[2m(�[22m�[2m12 tests�[22m�[2m)�[22m�[32m 40�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/auth.test.ts �[2m(�[22m�[2m19 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/refresh-queue.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/quota-fallback.test.ts �[2m(�[22m�[2m10 tests�[22m�[2m)�[22m�[32m 158�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/debug.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 14�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/safety.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 28�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/header-timeout-retry.test.ts �[2m(�[22m�[2m10 tests�[22m�[2m)�[22m�[32m 22�[2mms�[22m�[39m
 �[32m✓�[39m src/v2/adapter-usage-attribution.test.ts �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[33m 874�[2mms�[22m�[39m
   �[32m✓�[39m v2 adapter usage attribution �[2m(1)�[22m
     �[33m�[2m✓�[22m�[39m credits each concurrent round-robin request to the account that served it�[33m 873�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/config/models.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 5�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/storage-persistence-integrity.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 24�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/errors.test.ts �[2m(�[22m�[2m16 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/ui/auth-menu.test.ts �[2m(�[22m�[2m12 tests�[22m�[2m)�[22m�[32m 16�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/stats.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 37�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/logging-utils.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 25�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/model-specific-quota.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/constants.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/core/streaming/safety-shield.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/warmup-retry-limit.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 137�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/historical-pruning.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 4�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/contract.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 22�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/ui/ansi.test.ts �[2m(�[22m�[2m13 tests�[22m�[2m)�[22m�[32m 5�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/token.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 23�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/empty-response-retry.test.ts �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[33m 1536�[2mms�[22m�[39m
   �[32m✓�[39m empty-response retry across endpoint fallbacks �[2m(1)�[22m
     �[33m�[2m✓�[22m�[39m keeps retrying the same endpoint until the fourth attempt instead of failing�[33m 1535�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/config/tiered-families.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/cache/signature-cache-persistence.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/logger.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 9�[2mms�[22m�[39m
 �[32m✓�[39m src/plugin/config/schema.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m

�[2m Test Files �[22m �[1m�[32m53 passed�[39m�[22m�[90m (53)�[39m
�[2m      Tests �[22m �[1m�[32m1275 passed�[39m�[22m�[2m | �[22m�[90m25 todo�[39m�[90m (1300)�[39m
�[2m   Start at �[22m 22:18:41
�[2m   Duration �[22m 4.95s�[2m (tests 43%, import 29%, transform 24%, worker 4%)�[22m

�[2m    Isolate �[22m �[33m53 workers spawned�[39m�[2m · ~96ms startup each (spawn + environment, per file)�[22m
�[2m            �[22m �[2mat least ~1.61s faster with �[22m�[33misolate: false�[39m�[2m — reuses workers across files instead of one per file�[22m

build

> opencode-antigravity-auth@2.9.16 build
> tsc -p tsconfig.build.json

@JoshRob297
JoshRob297 merged commit 1b9198f into main Nov 29, 2026
1 check passed
@JoshRob297
JoshRob297 deleted the fix/agy-mirror-2.9.16 branch November 29, 2026 22:19
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.

1 participant