Skip to content

[Bug]: Antigravity turns never report observedModel in token analytics #44201

Done

Description

@thisisdkyadav

Before submitting

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

Area

apps/server

Steps to reproduce

  1. Use Antigravity with any model, for example Gemini 4 Neon.
  2. Send a message and let the turn finish.
  3. Look at the provider.turn.completed and provider.request.completed events.

Expected behavior

The events include observedModel with the model that ran.

Actual behavior

observedModel is never sent for Antigravity, so its usage shows as unreported.

Analytics takes observedModel from the turn usage's models list (modelObservation, apps/server/src/telemetry/ProviderUsageAnalytics.ts:132). The shared ACP adapter builds that usage in acpPerTurnPromptUsage (packages/provider-acp/src/server/adapter.ts:399) and never sets models.

Suggested fix

Fill models on Antigravity's turn usage with the model that ran. #44189 already reads that model from agy's session transcript, so the fix can reuse it.

agy reports effort-suffixed names (for example gemini-4-neon-low), while the live catalog lists gemini-4-neon. Strip the effort suffix before labeling, or it will be reported as custom:antigravity.

Related

Impact

Minor bug or occasional failure

Version or commit

v0.1.13, v0.1.14-nightly.20261127.5332, main @ 91bbd5f

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions