Skip to content

Fix CLI hot-bar rendering and add Antigravity coverage to probe#1

Open
michaelhe0914 wants to merge 1 commit into
iangithub:masterfrom
michaelhe0914:fix/multi-provider-sync
Open

Fix CLI hot-bar rendering and add Antigravity coverage to probe#1
michaelhe0914 wants to merge 1 commit into
iangithub:masterfrom
michaelhe0914:fix/multi-provider-sync

Conversation

@michaelhe0914

Copy link
Copy Markdown

What

Audited the three-provider (Codex / Claude / Antigravity) token-usage sync and fixed two correctness defects. This branch also imports the full application source, since master previously tracked only README.md.

Why / changes

  • src/main/cli-render.js — dead hot red bar. The >=85% over-budget highlight emitted FG.red before the 256-color fill SGR, so the later code overrode it and bars never actually turned red. Now red is used as the fill color when hot, matching the GUI's .hot behavior.
  • src/main/probe.js — incomplete sanity check. The probe only exercised Codex + Claude, so a broken Antigravity collector would go undetected by the very tool meant to verify sync. Added an Antigravity section (prompt/flow credits + per-model quotas) so npm run probe now covers all three providers.
  • .gitignore added so node_modules/ and build output stay out of the repo.

Verification

  • node src/main/probe.js — all three collectors return live data (Codex 2107 events / go plan 67%, Claude 1213 events, Antigravity Pro / 8 models).
  • node src/main/cli-render.js — the Antigravity 99%/100% credit bars now emit a bare ESC[31m (red) sequence with no override.

Reviewer notes

All three providers already sync correctly against current on-disk formats; these are targeted fixes, not a rebuild. Heads-up: newer Codex builds are emitting a limit_id:premium credit-model snapshot (null primary/secondary) alongside the classic limit_id:codex window snapshot. The go plan still reports the window form, so quota display is unaffected for now — but a follow-up may be needed if OpenAI fully migrates to the credits model.

🤖 Generated with Claude Code

Imports the full LLM Usage Dashboard source (previously only README was
tracked) and includes two correctness fixes made while auditing the
three-provider (Codex / Claude / Antigravity) token sync:

- cli-render.js: the >=85% hot red progress bar was dead code. FG.red
  was emitted before the 256-color fill, so the later SGR overrode it and
  over-budget bars never turned red. Use red as the fill color instead.
- probe.js: the sanity-check tool only exercised Codex + Claude, so a
  broken Antigravity collector would go undetected. Add an Antigravity
  section (prompt/flow credits + per-model quotas) so probe covers all
  three providers.

Also adds a .gitignore so node_modules and build output stay out of the
repo.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant