Skip to content

feat(antigravity): offer 5-hour allowances as menu bar choices - #5174

Open
ViaxCo wants to merge 7 commits into
steipete:mainfrom
ViaxCo:upstream-pr/antigravity-5h-menu-bar-chips
Open

ViaxCo wants to merge 7 commits into
steipete:mainfrom
ViaxCo:upstream-pr/antigravity-5h-menu-bar-chips

Conversation

@ViaxCo

@ViaxCo ViaxCo commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Antigravity users who only care about one model family had no way to show that family's 5-hour and weekly limits side by side in the menu bar. The layout editor offered the weekly allowances only.

  • The Gemini and Claude/GPT 5-hour allowances are now menu bar layout choices beside the weekly ones.
  • The Gemini chips use the standard short tags 5h and W, the same as other providers. The Claude/GPT chips keep their full titles so the two families stay apart.
  • The automatic chip kept dropping its 5h/W label for Antigravity, because the selected window matched both a lane and a named allowance. A unique 5-hour or weekly match now names the window first.

Screenshots

Real account data from a local build, remaining percent. The menu bar layout is Icon, Gemini 5-hour %, Gemini weekly %. Claude is shown for comparison. The trailing D marks a debug build.

Before: A 75%. After: A 5h 99% W 75%. Claude: 5h 82% W 10% +6%

Synthetic data, remaining percent.

Before: Auto weekly After: Gemini 5h and W chips
Before After

Verification

make test-fast FILTER='AntigravityAutomaticWindowLabelTests|MenuBarAutomaticWindowLabelsTests|MenuBarLayoutRendererTests|AntigravityWeeklyLayoutTests|PerplexityCreditPercentTests|MenuBarLayoutNamedExtraTests|MenuBarExtraMetricPickerTests|Cursor|WarpAutomaticCreditsTests'
make check
  • 513 focused tests passed.
  • make check passed.
  • Screenshots come from AntigravityWeeklyLayoutTests with CODEXBAR_WEEKLY_LAYOUT_PROOF_DIR set.
  • Ran the app bundle from ./Scripts/package_app.sh debug with my real Antigravity account and the new layout. The Gemini 5-hour and weekly values matched the provider menu.

Known limits

  • Named allowances match by exact bucket id (gemini-5h, gemini-weekly, 3p-5h, 3p-weekly), the same as the existing weekly choices. A renamed bucket would show – until the map is updated.
  • When the automatic window equals a provider's weekly window and a named allowance, it now shows W where it was bare before. The label is accurate because the windows are equal, including duration.

kyupark and others added 4 commits November 21, 2026 22:55
The layout editor offered each family's weekly allowance but not its 5-hour one. The existing 5h chip shows the tightest 5-hour window across both families, so a menu bar could not show only Gemini's 5-hour and weekly limits.
…s a lane

Antigravity names each family's allowances, so the automatic window can
match both its lane and a named allowance. The renderer treated that as
an ambiguous choice and dropped the 5h or W label. A unique 5-hour or
weekly match now names the window before the lane check, because equal
windows also have the same duration.
Gemini is Antigravity's main family, so its chips use the same short tags as the standard 5-hour and weekly chips. The Claude/GPT chips keep their full titles so the two families stay apart.
@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T01:07:09.929988Z 3a72d2e New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:feature Preliminary submission classification; full source review pending. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 25, 2026
@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codex review: ready, awaiting a maintainer decision.

What this changes

Adds Antigravity family-specific 5-hour choices, compact Gemini labels, and automatic labels for matching quota aliases.

Example: Gemini has 99% of its 5-hour allowance and 75% of its weekly allowance remaining.

  • Before: The layout editor cannot independently pin both Gemini allowances.
  • After: The menu bar can display “5h 99% W 75%”.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch has direct visual proof and no identified defect; unresolved product direction limits overall readiness.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The updated real-account screenshot shows the packaged debug app’s status item rendering Gemini “5h 99% W 75%”, resolving the previous harness-only gap for the new choices; synthetic renders and reported focused tests additionally cover labels and quota aliases.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Users cannot pin one Antigravity family’s 5-hour and weekly allowances together.
Reason: The capability has clear value at low implementation cost, but the established-label changes and shared precedence need an owner decision.

Merge readiness

⏳ Ready, awaiting maintainer decision

Keep this PR open: it adds useful family-specific choices with no identified correctness defect; an owner still needs to settle the presentation direction.

Reviewed head: 32a8672f2bbd8899bfff596991c3fcde63f215a7
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should these family-specific choices ship with generic Gemini “5h”/“W” labels and semantic-first automatic labeling?
  • Recommendation: Approve this presentation: Accept the compact Gemini labels and semantic-first alias handling, and coordinate the overlapping label proposal.
  • Why: The capability is useful, but the patch changes established presentation and shared ambiguity handling without recorded owner approval, while another open proposal uses family-qualified abbreviations.

Before merge

None.

Findings

None.

Agent review details

How this fits together

Antigravity quota snapshots supply named windows to the provider capability registry, existing layout editor, and shared menu-bar renderer.

flowchart LR
  A[Antigravity quota response] --> B[Usage snapshot]
  B --> C[Named allowance registry]
  C --> D[Layout editor]
  D --> E[Saved layout]
  B --> F[Menu bar renderer]
  E --> F
  F --> G[Status item]
Loading

Technical review

Best possible solution:

Expose the existing family allowances through the current registry and have the feature owner choose consistent compact labels across the overlapping proposals.

Do we have a high-confidence way to reproduce the issue?

Current main registers only the two family-weekly allowances, so the existing layout palette cannot independently offer either family’s 5-hour allowance.

Is this the best way to solve the issue?

Registering existing windows is the smallest complete implementation; the shared label adjustment is coherent, with presentation approval remaining an owner choice.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against a26ca57b5186.

Provenance checked

  • Family allowance presentation changes intended behavior with a stated reason (79b38f3: Expose independent family-weekly quotas while preserving saved Session/Weekly meanings; this PR explains its compact Gemini tags and retains full accessibility titles.)
  • Automatic window alias precedence changes intended behavior with a stated reason (c1ce9a4: Identify selected quotas while leaving ambiguous matches bare; this PR explains that an exact semantic match can identify cadence despite duplicate lane and named aliases.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit c1ce9a4 adds Sources/CodexBar/MenuBarLayoutRenderer.swift:697 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c1ce9a4e6f1f; files: Sources/CodexBar/MenuBarLayoutRenderer.swift)
  • Egor Egorov: Raw commit 7871884 adds Sources/CodexBar/Menu/MenuBarLayoutRenderer.swift:730 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 787188431365; files: Sources/CodexBar/Menu/MenuBarLayoutRenderer.swift)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Change size Production +9/−3; tests +94/−15; changelog +4 The small production change reuses existing owners, with focused coverage for allowance identity, rendering, accessibility, and automatic aliases.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: ⏳ waiting on maintainer.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-25T07:27:02.463Z sha 32a8672 :: needs real behavior proof before merge. :: none

Reviewed November 25, 2026, 5:07 AM ET / 10:07 UTC (Revision 2).

@ViaxCo

ViaxCo commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Nov 25, 2026
steipete and others added 2 commits December 4, 2026 16:18
Merge current main, translate allowance tags and editor names, and retain full accessibility titles and unavailable-value behavior. Remove duplicate renderer coverage.
Merge current main and compact weekly labels, translate family titles, and correct generic picker labels to Session and Weekly. Keep cadence selection and reset tokens independent.

Co-authored-by: Victor Ajibade <ajibadevic@gmail.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3a72d2ebc3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

guard matches.isEmpty else { return nil }
let laneMatches = lanes.filter { self.laneWindow($0, data: data) == automatic }
let extraMatches = extras.filter { $0.window == automatic }
guard laneMatches.count + extraMatches.count <= 1 else { return nil }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve Auto labels when skipping an exhausted session quota

With Antigravity’s default “Prioritize exhausted quotas” setting off, consider Gemini/Claude five-hour usage of 100%/80% and weekly usage of 10%/20%. mostConstrainedExtraWindow selects the usable Claude five-hour window, while the semantic session still points to the exhausted Gemini window. matches is therefore empty, and the selected window now matches both .secondary and the newly exposed 3p-5h extra, so this guard suppresses its label. Auto consequently regresses from C 20% to bare 20%, also losing the family name in VoiceOver. Deduplicate lane/extra aliases or resolve the selected cadence even when it differs from the most-constrained semantic window.

Useful? React with 👍 / 👎.

When Antigravity skips an exhausted 5-hour or weekly family quota in Auto mode, the selected usable window no longer matches the semantic window and matches both its lane and its named extra alias. Allow a unique lane match with at most one matching extra so Auto keeps its compact family label and VoiceOver name.

This branch has not been deployed

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

Labels

impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal priority bug or improvement with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants