Skip to content

Give Gemini 4 Argon its own weekly line in the Antigravity limits - #16642

Open
brdweb wants to merge 1 commit into
omacom:quattrofrom
brdweb:agy-argon-weekly
Open

brdweb wants to merge 1 commit into
omacom:quattrofrom
brdweb:agy-argon-weekly

Conversation

@brdweb

@brdweb brdweb commented Oct 25, 2026

Copy link
Copy Markdown

Antigravity reports Argon's separate weekly quota as a "Gemini 4 Argon" group. Because its name also contains "gemini", if listed first it was taken for the plan's group (causing Weekly to show Argon's quota instead of Gemini's), and if listed later it showed after Claude/GPT as "Gemini 4 Argon Weekly" only once touched.

This keeps Argon out of the plan's group and shows it as "Argon Weekly" right after "Weekly (7-day)", following the convention used for Claude Code's "Fable Weekly".

Includes focused unit test coverage in test/shell.d/agent-usage-agy-limits-test.sh.

Antigravity reports Argon's separate weekly quota as a "Gemini 4 Argon" group. Its name also says Gemini, so listed first it was taken for the plan's group and Weekly showed Argon's usage; listed later it showed as "Gemini 4 Argon Weekly" after Claude/GPT, only once touched. Keep it out of the plan's group and show it as "Argon Weekly" right after Weekly, the way Claude shows Fable Weekly.
@greptile-apps

greptile-apps Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Low impact] The change stays within Antigravity's usage display.

The PR appears safe to merge, with a non-blocking test coverage gap.

Findings

  1. P2 Unused Argon quotas go untested ▶

Summary

The collector separates Argon from the Gemini plan quota.

  • Antigravity shows Argon's quota after the plan's weekly limit.

Reviews (1) · Last reviewed commit: "Give Gemini 4 Argon its own weekly line ..." · Reviewed by Greptile

Comment on lines +98 to +107
read = limits({"groups": [
{"displayName": "Gemini 4 Argon", "buckets": [
{"bucketId": "gemini-argon-wtu-weekly", "displayName": "Gemini 4 Argon Weekly Limit", "window": "weekly", "resetTime": "2026-09-18T13:15:33Z", "remainingFraction": 0.1},
]},
{"displayName": "Claude and GPT models", "buckets": [{"window": "weekly", "remainingFraction": 0.75}]},
{"displayName": "Gemini Models", "buckets": [{"window": "weekly", "remainingFraction": 0.5}]},
]})
expect("Antigravity collector shows Argon's weekly quota as its own line after Weekly",
[(entry["label"], round(entry["percent"], 2)) for entry in read],
[("Weekly (7-day)", 0.5), ("Argon Weekly", 0.9), ("Claude/GPT Weekly", 0.25)], read)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Unused Argon quotas go untested

The new test only uses a partly spent Argon quota. It would still pass if the Argon loop kept the old rule that hides unused quotas, although keeping them visible is part of this change. Add a case with remainingFraction: 1.0 and check that Argon Weekly remains present with zero usage.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks @brdweb. I read the change against quattro and checked how the panel shows it: Panel.qml's scopedPart attaches an Argon Weekly title to the Weekly row, the same way it attaches Fable Weekly. I haven't run it on a worker yet, because the two models classifying it disagreed. I (Claude Opus 5.5) read it as a bug fix. Codex Medium, which classified it separately, read it as an enhancement. Until that's settled it gets no bug or enhancement label.

The PR does two things, which is why the two readings split:

  • A fix: when a Gemini 4 Argon group comes before Gemini Models, the next(...) at bin/omarchy-agent-usage-agy:306 on quattro takes Argon as the plan's group, so Weekly shows Argon's quota. After this change Argon is never picked as the plan's group.
  • A display change: Argon is now always listed, as Argon Weekly right after Weekly. Before, it showed as Gemini 4 Argon Weekly only once it had been used.

The payloads captured in #16906 list Gemini 4 Argon after Gemini Models. For that order, only the display change has any effect, which supports the enhancement reading.

Related: #16906 reports this Argon omission, but its main symptom is that retrieveUserQuotaSummary returns only the Claude/GPT group. This PR doesn't change that, so it doesn't close the issue. #16912 changes the same plan-group line for that separate bug, so the two will conflict textually. #16999 (opened later) also labels Argon, as part of a larger agy CLI fallback.

This is waiting on the maintainer to say whether the PR is a fix or a feature. That decides whether it gets verified on a worker next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants