Skip to content

[Bug]: Antigravity delegate_task rejects the suffixed model ID shown in Settings (gemini-4-neon-high → model_unavailable) #39298

Closed

Description

@cloudbring

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Related, not duplicates: #39277 (effort variants listed as separate models in the picker), #35713 (delegate_task effort validation errors).

Area

apps/server

Steps to reproduce

  1. Sign in to an Antigravity instance with managed CLI 1.5.12 (oauth-personal).
  2. Note the model ID shown for it in Settings → Providers → Antigravity, e.g. gemini-4-neon-high.
  3. From an agent, call delegate_task with target: { instanceId: "antigravity", model: "gemini-4-neon-high" }.

Expected behavior

The child starts on Gemini 4 Neon with high thinking. Either the ID shown in Settings is the one delegation accepts, or delegation maps <family>-<level> onto <family> plus the thought_level option.

Actual behavior

delegate_task fails with model_unavailable. orchestrator_capabilities advertises gemini-4-neon with a separate thought_level option, and delegate_task with model: "gemini-4-neon" and options: { thought_level: "high" } starts normally.

Cause, at 80cf4f7:

  • requireAdvertisedModel (apps/server/src/mcp/OrchestratorMcpService.ts:417-433) rejects any slug that is not in provider.models and does not match one of their aliases (advertisedModel, :395-398).
  • The Antigravity session layer still accepts the old suffixed IDs. legacyAntigravityFamily and resolveAntigravityModel (apps/server/src/provider/acp/AntigravityAcpSupport.ts:233-262) pass gemini-3.8-flash-high-style IDs through because "the agent still accepts the old IDs".

So an ID the runtime would accept, and that the user sees in Settings, is rejected one layer earlier, by the orchestrator.

Possible fixes: advertise each <family>-<level> as an alias of its family model, so advertisedModel resolves it, and turn the suffix into the thought_level option. Or make sure Settings only ever shows the advertised slug.

Impact

Minor bug or occasional failure

Version or commit

0.1.11-nightly.20261119.4918

Environment

Linux x64 server, headless, managed Antigravity CLI 1.5.12, oauth-personal

Logs or stack traces

delegate_task returns error code model_unavailable. Per requireAdvertisedModel, the message has the form Model <id> is not advertised by provider <instance>. <hint>.

Activity

  1. juliusmarminge commented on Nov 19, 2026

    @juliusmarminge
    Member

    @cloudbring Where exactly did you see 'gemini-4-neon-high': in the Settings → Providers → Antigravity model list (a screenshot would help), or as a thread's saved model? On the same server, that list and orchestrator_capabilities come from the same provider model list, so they should not disagree.

  2. added
    needs more info
    on Nov 19, 2026
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

    needs more info

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions