Skip to content

When I send a request and the first account already has the "RateLimit" parameter, it gets stuck for almost 3 minutes on that same account, until after almost 3 minutes it manages to switch accounts. #405

@titet11

Description

@titet11

Pre-submission checklist

Model used

antigravity-claude-4-5-opus

Exact error message

There is no error message

Bug description

When I send a request and the first account already has the "RateLimit" parameter, it gets stuck for almost 3 minutes on that same account, until after almost 3 minutes it manages to switch accounts.

Steps to reproduce

  1. Submit a request:
  2. If the first account is already categorized as "RateLimit", you will need to wait 2 to 3 minutes before switching to the next account.

Did this ever work?

Not sure

Number of Google accounts configured

5+

Reproducibility

Sometimes (<50%)

Plugin version

1.4.6

OpenCode version

1.1.53

Operating System

windows 11 22h2

Node.js version

22.3

Environment type

Standard (native terminal)

MCP servers installed

"devtools": {

"browser": {

Desktop Automation

Debug logs (REQUIRED)

The logs cannot visibly display this problem.

Configuration (optional)

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-antigravity-auth@latest"],
  "provider": {
    "google": {
      "models": {
        "antigravity-gemini-3-pro": {
          "name": "Gemini 3 Pro (Antigravity)",
          "limit": { "context": 1048576, "output": 65535 },
          "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
          "variants": {
            "low": { "thinkingLevel": "low" },
            "high": { "thinkingLevel": "high" }
          }
        },
        "antigravity-gemini-3-flash": {
          "name": "Gemini 3 Flash (Antigravity)",
          "limit": { "context": 1048576, "output": 65536 },
          "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
          "variants": {
            "minimal": { "thinkingLevel": "minimal" },
            "low": { "thinkingLevel": "low" },
            "medium": { "thinkingLevel": "medium" },
            "high": { "thinkingLevel": "high" }
          }
        },
        "antigravity-claude-sonnet-4-5": {
          "name": "Claude Sonnet 4.5 (Antigravity)",
          "limit": { "context": 200000, "output": 64000 },
          "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
        },
        "antigravity-claude-sonnet-4-5-thinking": {
          "name": "Claude Sonnet 4.5 Thinking (Antigravity)",
          "limit": { "context": 200000, "output": 64000 },
          "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
          "variants": {
            "low": { "thinkingConfig": { "thinkingBudget": 8192 } },
            "max": { "thinkingConfig": { "thinkingBudget": 32768 } }
          }
        },
        "antigravity-claude-opus-4-5-thinking": {
          "name": "Claude Opus 4.5 Thinking (Antigravity)",
          "limit": { "context": 200000, "output": 64000 },
          "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
          "variants": {
            "low": { "thinkingConfig": { "thinkingBudget": 8192 } },
            "max": { "thinkingConfig": { "thinkingBudget": 32768 } }
          }
        },
        "gemini-2.5-flash": {
          "name": "Gemini 2.5 Flash (Gemini CLI)",
          "limit": { "context": 1048576, "output": 65536 },
          "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
        },
        "gemini-2.5-pro": {
          "name": "Gemini 2.5 Pro (Gemini CLI)",
          "limit": { "context": 1048576, "output": 65536 },
          "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
        },
        "gemini-3-flash-preview": {
          "name": "Gemini 3 Flash Preview (Gemini CLI)",
          "limit": { "context": 1048576, "output": 65536 },
          "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
        },
        "gemini-3-pro-preview": {
          "name": "Gemini 3 Pro Preview (Gemini CLI)",
          "limit": { "context": 1048576, "output": 65535 },
          "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
        }
      }
    }
  },
  "mcp": {
    "devtools": {
      "type": "local",
      "command": ["node", "C:\\Users\\-\\.config\\opencode\\mcp\\chrome-devtools\\node_modules\\chrome-devtools-mcp\\build\\src\\index.js"],
      "enabled": true
    },
    "browser": {
      "type": "local",
      "command": ["node", "C:\\Users\\-\\.config\\opencode\\mcp\\browsermcp\\node_modules\\@browsermcp\\mcp\\dist\\index.js"],
      "enabled": true
    },
    "desktop": {
      "type": "local",
      "command": ["node", "C:\\Users\\-\\.config\\opencode\\mcp\\DesktopCommanderMCP\\dist\\index.js"],
      "enabled": false
    },
    "automation": {
      "type": "local",
      "command": ["node", "C:\\Users\\-\\.config\\opencode\\mcp\\mcp-windows-desktop-automation\\dist\\index.js"],
      "enabled": true
    }
  }
}

{
"$schema": "https://raw.githubusercontent.com/NoeFabris/opencode-antigravity-auth/main/assets/antigravity.schema.json",
"scheduling_mode": "performance_first",
"account_selection_strategy": "round-robin",
"switch_on_first_rate_limit": true,
"pid_offset_enabled": true,
"debug": true,
"quiet_mode": false,
"auto_update": false,
"max_rate_limit_wait_seconds": 5,
"max_backoff_seconds": 10,
"default_retry_after_seconds": 5,
"log_dir": "C:/Users/-/AppData/Roaming/opencode/antigravity-logs"
}

Compliance

  • I'm using this plugin for personal development only
  • This issue is not related to commercial use or TOS violations

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/configConfiguration files, setupquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions