Repository navigation
quota gatherer: publish canonical config provider ids (_antigravity, _claude, _commandcode, _muse) - #7324
Merged
Conversation
The quota module answers in its own spellings (antigravity, claude, command-code, meta); the snapshot now emits the OpenCode config provider ids the router matches exactly for quota-driven skip re-admission (#1823 renames): _antigravity, _claude, _commandcode, _muse. Normalization sits at entryFromResult, the one mapping point every gathered result passes through; pool/service ids are unchanged (serviceIdFor keeps the dual-spelling cases, _muse keeps the meta pool). Antigravity split rows now file under _antigravity.gemini / _antigravity.claude-gpt instead of the legacy antigravity-direct.* ids. Retention (lastKnownEntries/markRetained) matches and re-stamps canonically so a rename boundary never re-publishes an old spelling, and the credential-lifecycle Claude rules accept _claude.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 45 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The quota gatherer published the Antigravity provider under the quota module's pre-rename spelling
antigravity. The router matches quota readings by exact provider id (the quota-driven skip re-admission built for opencode#1974), and the config id is_antigravitysince fork PR #1944 (#1823) — so Antigravity quota readings never reached the router and re-admission was inert for that provider.Change
Normalize provider ids at
entryFromResultinquota-gather-map.ts— the one mapping point every gathered result passes through — via a newcanonicalProviderId:antigravity_antigravityclaude(the claude-code door)_claudecommand-code_commandcodemeta(the Muse Code High Usage reading)_museThe other three were stale the same way, checked against the router's current ids:
claudenever matched_claude,command-code/commandcodenever matched_commandcode, andmetamatched only the disabled upstream provider, not the_musedoor whose plan the reading measures.Knock-ons handled in the same pass:
serviceIdForkeeps its dual-spelling cases and gains_muse→meta, so the Meta pool,anthropic:claude-pro, and the_commandcodepool keep their existing series. Antigravity split rows now file under_antigravity.gemini/_antigravity.claude-gpt(POOL_SPECS' current ids) instead of the legacyantigravity-direct.*ids.lastKnownEntries/markRetained), so an errored tick at the rename boundary never re-publishes an old spelling._claude(old spelling kept for pre-rename rows).entryFromFileExport(Meta feat(quota-plane): Meta adapter Phase 1 — laptop-side quota exporter (subscription-quota API, 15-min file export) #1301 convention) emits the same canonical id; its service id staysmeta.Checked and deliberately left alone:
codex(not a renamed provider; the router-matchingopenai.main/openai.alternaterows are published separately), the combinedopencode-gorow (by design; per-workspace split rows carry the door ids),mistral(already the router's id; novibe-spelled id is emitted), and the heartbeatperProviderkeys (internal timing diagnostics keyed by module run id — the router reads onlyproviders).Tests
canonicalProviderIddescribe block: mapping + passthrough,entryFromResultemission per renamed provider with pool service ids preserved, module-spelled Antigravity splitting into the renamed pool rows, retention across the rename boundary.tsc --noEmit: one pre-existing error (RoadmapAnnotation), unchanged, none in the touched files.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.