Skip to content

Shorten Antigravity weekly menu bar labels - #5148

Open
kyupark wants to merge 2 commits into
steipete:mainfrom
kyupark:fix/antigravity-compact-quota-labels
Open

kyupark wants to merge 2 commits into
steipete:mainfrom
kyupark:fix/antigravity-compact-quota-labels

Conversation

@kyupark

@kyupark kyupark commented Nov 21, 2026 •

Copy link
Copy Markdown

Summary

Verification

  • make test-fast FILTER="MenuBarLayoutRendererTests|AntigravityWeeklyLayoutTests": 125 tests passed.
  • make check passed; SwiftFormat and SwiftLint were rerun on the final fixture edit.
  • macOS 27.0.1 (Lume): ran the production renderer from 7e5ecf5 in a live AppKit menu bar status item. A temporary proof-only entry point supplied synthetic Antigravity usage (20% and 60%) and captured the status button itself. Both short labels were legible and unclipped in single-row and stacked layouts. The accessibility label retained the full quota names. This did not exercise live accounts, the regular installed app, or full-desktop capture.

Single row

Single-row native status item

Stacked

Stacked native status item

Earlier synthetic renderer preview

Synthetic renderer preview: G W 80% and C/G W 40%

Related: #3974, #4481.

@clawsweeper

clawsweeper Bot commented Nov 21, 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 21, 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-05T00:21:37.631289Z 8b63cd3 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 clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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 21, 2026
@clawsweeper

clawsweeper Bot commented Nov 21, 2026

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge.

What this changes

This PR shortens Antigravity’s weekly menu bar labels while preserving full picker and accessibility titles.

Example: Antigravity displays 80% Gemini weekly allowance and 40% Claude/GPT weekly allowance remaining.

  • Before: Gemini weekly 80% · Claude/GPT weekly 40%
  • After: G W 80% · C/G W 40%

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The implementation is narrow and appears correct, but synthetic renderer proof does not satisfy the shipped-entry-point gate and product approval remains open.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Full Antigravity weekly allowance names consume menu bar space when both families are displayed.
Reason: The width reduction is clear and inexpensive, but the exact abbreviations change owner-established presentation without recorded approval on this PR.

Merge readiness

⛔ Blocked before merge - 1 item remains

This PR is a focused presentation change with no identified correctness defect; an owner should decide whether these abbreviations improve Antigravity’s existing labels.

Priority: P3
Reviewed head: 7e5ecf5c4a4f98e5aa91e1419565ada938d02726
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should Antigravity’s existing weekly menu bar labels become G W and C/G W?
  • Recommendation: Adopt the compact labels: Approve these abbreviations to reduce menu bar width while retaining full picker and VoiceOver titles.
  • Why: The full labels are intentional existing presentation, and approval of Cursor abbreviations does not establish approval of these Antigravity names.

Before merge

  • Add real behavior proof - The inspected image demonstrates the changed production renderer using synthetic values, but neither it nor the supplied test results exercises the running app’s status item and accessibility output. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.

Findings

None.

Tests

  • Low-value test Tests/CodexBarTests/MenuBarLayoutRendererTests.swift: Remove the added Antigravity single-token test: the updated parameterized AntigravityWeeklyLayoutTests already checks both compact labels and full accessibility titles through the same renderer, plus used/remaining and missing-reading cases.
  • Missing end-to-end proof: Provide a screenshot or recording from freshly built CodexBar showing both compact weekly labels in the actual menu bar, with full accessibility titles confirmed; redact account details, IPs, API keys, and non-public endpoints.
Agent review details

How this fits together

Provider descriptors supply quota labels to the shared menu bar renderer, which combines usage snapshots and saved layout tokens into status-item content and accessibility text.

flowchart LR
  A[Antigravity quota snapshot] --> D[Shared layout renderer]
  B[Provider label capabilities] --> D
  C[Saved layout tokens] --> D
  D --> E[Menu bar status item]
  D --> F[Accessibility text]
Loading

Technical review

Best possible solution:

Use the existing descriptor mappings for owner-approved compact labels while retaining full accessible names and unchanged quota identities.

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

Current main declares full weekly titles without short-label mappings, and the renderer consequently displays those full titles; this is existing presentation rather than a demonstrated functional bug.

Is this the best way to solve the issue?

Adding provider-owned mappings is the smallest production change and correctly reuses the existing renderer instead of creating another rendering path.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Antigravity weekly allowance display changes intended behavior with a stated reason (79b38f3: Expose independent Gemini and Claude/GPT weekly quotas through existing named tokens without changing quota selection or saved meanings.)
  • Named allowance titles and unavailable readings keeps the original intent (ea5d7d9: Keep named allowances identifiable, preserve real zero values, and display labeled unknown readings rather than dropping saved tokens.)
  • Short-label rendering and untagged-provider coverage keeps the original intent (d6171ae: Use explicit provider-owned compact tags while preserving full accessibility names and full-title fallback for providers without tags.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 79b38f3 adds Sources/CodexBarCore/Providers/Antigravity/AntigravityProviderDescriptor.swift:20 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 79b38f346c5e; files: Sources/CodexBarCore/Providers/Antigravity/AntigravityProviderDescriptor.swift)
  • marklights54-byte: Raw commit d6171ae adds Tests/CodexBarTests/MenuBarLayoutRendererTests.swift:206 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d6171aeb885e; files: Tests/CodexBarTests/MenuBarLayoutRendererTests.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.

Labels

Label changes:

  • add P3: This is menu bar readability polish without changes to quota selection, authentication, or stored layouts.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • P3: This is menu bar readability polish without changes to quota selection, authentication, or stored layouts.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.
  • 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.

Reviewed November 21, 2026, 5:08 PM ET / 22:08 UTC.

Merge current main, translate allowance tags and editor names, and retain full accessibility titles and unavailable-value behavior. Remove duplicate renderer coverage.

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

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants