Skip to content

[Bug / Config Migration] Deprecated Google Antigravity Flash model aliases trigger continuous migration logs on startup #5066

Closed

Description

@kge-lab

Client or integration

Codex CLI

Area

CLI

Summary

On starting the proxy (ocx start), multiple deprecation warnings/migrations are logged for google-antigravity/gemini-3.x-flash aliases, remapping them to gemini-3.7-flash. While the migration executes successfully and the proxy boots, repetitive warnings on every startup suggest these migrated references may not be persisting cleanly in user config or default templates, or require canonical pruning.

Reproduction

  1. Start the proxy with previously cached/configured Google Antigravity settings:
    ocx start
  2. Observe the multiple [model-rename-migration] log messages indicating renames to gemini-3.7-flash.
  3. Stop the proxy cleanly:
    ocx stop
  4. Start the proxy again:
    ocx start
  5. Observe that the exact same batch of [model-rename-migration] messages is logged again instead of being suppressed or persisted.

Version

Latest release (@bitkyc08/opencodex)

Operating system

Windows 11 (x64 / PowerShell)

Provider and model

google-antigravity (gemini-3.7-flash)

Logs or error output

PS C:\windows\system32> ocx start
[model-rename-migration] renamed "google-antigravity/gemini-3.6-flash" to "gemini-3.7-flash" in the saved config: Google retires the previous Antigravity Flash generation from Cloud Code Assist when its successor ships, so the saved id no longer resolves to a live model.
[model-rename-migration] renamed "google-antigravity/gemini-3.6-flash-low" to "gemini-3.7-flash" in the saved config: Google retires the previous Antigravity Flash generation from Cloud Code Assist when its successor ships, so the saved id no longer resolves to a live model.
[model-rename-migration] renamed "google-antigravity/gemini-3.6-flash-medium" to "gemini-3.7-flash" in the saved config: Google retires the previous Antigravity Flash generation from Cloud Code Assist when its successor ships, so the saved id no longer resolves to a live model.
[model-rename-migration] renamed "google-antigravity/gemini-3.6-flash-high" to "gemini-3.7-flash" in the saved config: Google retires the previous Antigravity Flash generation from Cloud Code Assist when its successor ships, so the saved id no longer resolves to a live model.
[model-rename-migration] renamed "google-antigravity/gemini-3.5-flash-extra-low" to "gemini-3.7-flash" in the saved config: Google retires the previous Antigravity Flash generation from Cloud Code Assist when its successor ships, so the saved id no longer resolves to a live model.
[model-rename-migration] renamed "google-antigravity/gemini-3.5-flash-low" to "gemini-3.7-flash" in the saved config: Google retires the previous Antigravity Flash generation from Cloud Code Assist when its successor ships, so the saved id no longer resolves to a live model.
[model-rename-migration] renamed "google-antigravity/gemini-3.5-flash-mid" to "gemini-3.7-flash" in the saved config: Google retires the previous Antigravity Flash generation from Cloud Code Assist when its successor ships, so the saved id no longer resolves to a live model.
[model-rename-migration] renamed "google-antigravity/gemini-3.5-flash-high" to "gemini-3.7-flash" in the saved config: Google retires the previous Antigravity Flash generation from Cloud Code Assist when its successor ships, so the saved id no longer resolves to a live model.
[model-rename-migration] renamed "google-antigravity/gemini-3-flash-agent" to "gemini-3.7-flash" in the saved config: Google retires the previous Antigravity Flash generation from Cloud Code Assist when its successor ships, so the saved id no longer resolves to a live model.
🚀 opencodex proxy running on http://localhost:58285

Screenshots and supporting files

No response

Redacted configuration

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

  1. added
    bug
    on Sep 18, 2026
  2. added
    cli
    on Sep 18, 2026
  3. added a commit that references this issue on Sep 19, 2026
    735f915
  4. lidge-jun commented on Sep 19, 2026

    @lidge-jun
    Owner

    Fixed on dev by #5077, merged as 735f915871.

    The repetition was not a persistence failure. The migration rewrote the field correctly and the write landed; startServer then ran reconcileOAuthProviders, and applyOAuthPresetCatalog copied the preset's record back over the saved one because the two now differed. The deletion was undone inside the same boot, the config was written twice, and the rename was announced again on the next start. It could never converge, which is why you saw it every time.

    ANTIGRAVITY_MODEL_CONTEXT_WINDOWS derives a context window for every compatibility alias, so modelContextWindows carries a key for all nine retired Flash ids alongside the live ones. That is where your nine lines per start came from, and it explains why they appeared without you having selected any of those models.

    The fix skips exactly one case: a field where the registry's own seed still publishes the retired id AND the saved field already carries the supported id, so the rewrite would only delete a key with nothing to carry forward. A row that saved only the retired id still gets its value moved onto the supported one, because dropping it there would blank the record rather than migrate it. No new storage layer was added, the persistence path is unchanged, and which aliases count as retired is unchanged.

    CI at the exact head 952bac63c1 was green on every leg. No local suite was run.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcli

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions