Skip to content

Validate and configure the Antigravity repair model instead of hard-coding Gemini 3 Flash #562

Description

@wwind123

Problem

Structured-response repair invokes agy with the hard-coded model label Gemini 3 Flash. On the current agy 1.1.2 installation, that label is not in agy models; available Flash variants are Gemini 3.5 Flash (Low|Medium|High).

agy 1.1.2 changed headless --print behavior from silently falling back when a requested model cannot be resolved to exiting non-zero. This turns the stale repair-model name into a deterministic repair failure:

Error: invalid --model "Gemini 3 Flash": model Gemini 3 Flash is not recognized as a known model or custom model in settings

This blocked repair of an otherwise recoverable Claude PR review on llm-dialectic#358.

Required behavior

  • Do not hard-code an obsolete Antigravity display label for repair.
  • Make the repair model configurable, with a default compatible with the supported/current Antigravity model catalog.
  • At startup or before repair, validate the selected model against agy models; emit an actionable error with available choices.
  • On invalid/unavailable repair model, fall back through the configured Antigravity chain where possible.
  • Add regression coverage for a stale model name and for headless agy non-zero model-resolution failure.

Immediate operational workaround

Use Gemini 3.5 Flash (Medium) as the local repair default until the configurable/fallback behavior lands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions