Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): honor the saved thinking level in text generation #39720

MergedLucenx9(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/39720/headmerged by juliusmarminge View on GitHub

Problem

Antigravity text helpers ignore the thinking level saved in the text-generation model picker. A title configured with Low can run at the runtime's High default. The same helper generates commit messages, branch names and PR descriptions.

Change

After selecting the model, apply the saved thinking level if the active session advertises it. Missing, obsolete, and already-matching selections send no update. If ACP rejects a thinking change as invalid, the helper continues with the native level.

Scope

Small bug fix in the server-side text helper. A targeted search found related conversation and delegation work but no equivalent text-generation fix.

Verification

The focused test drives the title generator with an isolated ACP runtime fixture. The assertion reads the effective level when the prompt starts.

Title generation requestBeforeAfter
Saved Low, native default HighHighLow
Saved Low, option appears after a model switchHighLow
No choice, unavailable choice, or level already activeHighHigh, no write
ACP rejects a previously advertised choiceFirst candidate aborts the helperTitle generation succeeds at High

The focused regression failed on base and passes after the fix. The standalone replay called the production helper with a simulated ACP runtime and never sent a live model turn. fast-check passed 120 generated cases and Jazzer.js completed 160 bounded runs on that same seam.

Fallow and CodeScene advisory gates flagged added complexity on a two-file snapshot. Fallow's dependency coverage was limited in that snapshot. Checks ran on Linux.

The full Stryker rerun reached its time limit. A targeted rerun killed all 4 mutants in the ACP rejection check. The isolated vp run check:changed --concurrency 1 rerun passed all 41 tests, format, lint, both Knip stages, GraphQL and typecheck. The same check passed after rebasing onto df09ced768. Normal commit hooks passed.

Independent reviews: Gemini 4 Neon on Antigravity (medium) and Opus 5.5 (high) approved the code.

Reviewed with sol-loop: 2 rounds with GPT-6.2 Sol on high. Sol verdict: approved.

Created with GPT-6.2 Sol in Codex through T3 Code.

    1. Pushed5ab7c04

    2. Evidence

      Ran both commits in isolated Linux web apps using Chromium at 1280×800, light theme, and Antigravity 1.5.13 with Gemini API-key authentication. Saved Gemini 4 Neon / High under Settings → Threads → Text generation model, then sent “Add a dark mode toggle to the settings page” using Replay Showcase and waited for the real Antigravity title helper.

      BeforeAfter
      df09ced7685ab7c0431c
      Before: saved High but ACP prompts at LowAfter: ACP acknowledges High before prompting
      App recordingApp recording
      Recorded ACP exchangeRecorded ACP exchange

      Images combine real Settings crops with condensed recorded ACP traffic. Base selects the model and immediately prompts while the runtime reports Low. Head sends thought_level=high, receives High in configOptions, then prompts. Both complete title generation. Title wording itself is not the proof.

      Host labels and streaming workspace paths are redacted in recordings. Captures were inspected before upload.

      ACP recorder · Reproduction procedure and capture details

      Not shown:

      • Invalid-choice fallback: the real runtime accepted High, so ACP invalid-parameter rejection and continuation at the native level were not induced.
    3. juliusmarminge added labelstakeover:ready

    4. juliusmarminge removed labelstakeover:in-progress

    5. juliusmarminge merged thise74b795

    6. juliusmarminge closed this

    7. juliusmarminge removed labelstakeover:ready

Sign in to join this conversation.