Skip to content

[Bug]: Antigravity agy >= 1.2.2 returns Authentication required instead of using /usage fallback #513

Closed

Description

@AlexMalfr

Existing issues

  • I searched existing issues and did not find a duplicate.

What happened?

With agy >= 1.2.2 (reproduced on 1.2.4), Antigravity usage returns Authentication required in Win-CodexBar even though the signed-in CLI returns quota data successfully via the structured /usage command.

Expected: when the legacy local HTTPS probe fails because of the newer CSRF requirement, Win-CodexBar should fall back to the structured CLI usage report.

Affected area

  • Tray panel
  • Settings UI
  • Config file / settings persistence
  • CLI
  • Provider-specific behavior
  • Installer / release packaging
  • Startup / background behavior
  • Other

Steps to reproduce

  1. Install/sign in to agy 1.2.4.
  2. Run:
    agy -p /usage --output-format json --print-timeout 90s
    → returns status: SUCCESS with quota groups.
  3. Run:
    codexbar-cli usage -p antigravity --source cli
  4. Observe Antigravity Error: Authentication required.

The same error occurs with agy already running.

Logs, screenshots, or recordings

agy --version
1.2.4

agy -p /usage --output-format json --print-timeout 90s
{"status":"SUCCESS", ... "command":{"name":"usage", ...}}

codexbar-cli usage -p antigravity --source cli
Antigravity  Error: Authentication required

App version

v0.60.3

Windows version

Windows 11 25H2

Additional context

Upstream tracked the agy >= 1.2.2 CSRF change in steipete#3586 and fixed it in steipete#3607 by falling back to the structured /usage report. Win-CodexBar already has a structured-report fallback, but the current runtime path skips it when the preceding local probe is mapped to AuthRequired.

Downgrading agy from 1.2.4 to 1.2.1 fixes the issue immediately:

agy --version
1.2.1

codexbar-cli usage -p antigravity --source cli
Antigravity (cli)
  Claude:  [░░░░░░░░░░░░░░░░░░░░] 0% used

So this appears to be specifically triggered by the local API authentication/CSRF behavior introduced in agy >= 1.2.2.

Activity

  1. added
    bug
    on Sep 16, 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions