Repository navigation
Show Mistral API and Vibe budget usage - #8295
Conversation
|
Caution Review failedThe pull request is closed.
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. |
|
✅ Deterministic PR hygiene checks passed. |
| export function museQuotaConfigIdentity(config: OcxConfig, provider: string): string | undefined { | ||
| const current = config.providers[provider]; | ||
| if (!current || current.disabled || current.authMode !== "oauth") return undefined; | ||
| return createHash("sha256").update(JSON.stringify([current.adapter, current.baseUrl, current.authMode])).digest("hex"); |
# Conflicts: # src/providers/quota.ts # src/providers/quota/vendor-probes-oauth.ts # src/quota-pool/assemble.ts # tests/usage/quota-pool.test.ts
Preserve current dev behavior for existing providers and retain the Mistral budget feature, scoped cache ownership, and regression coverage. Remove the unrelated PR-only ownership changes authorized for separation. Mistral candidate: 95dcdac74148bf19c9ce41cda582f7ac21c2be32
Keep passive reads free of provider probes and keychain access while withholding reports whose credential or destination can no longer be verified.
Maintainer judgment —
|
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. |
) * fix(quota): keep the Mistral budget helper off the core load path #8295 imported mistralUnknownBudgetWindows statically from src/quota/window-mapping.ts into src/providers/quota.ts, which the core request path loads, breaking tests/usage/quota-reset-core-boundary.test.ts. Move the pure helper beside its caller. * test(quota): pin Mistral budget window selection at its new home
…droom-into-dev Integrates #8297 passive key-limit observation onto dev while keeping dev's #8295 Mistral budget, the exact credential optional binding, Claude held reports, the Vertex final-send guard and Muse passive observation. The owner-rejected feature-only Muse ownership ledger, the Antigravity quota owner, and the reset-identity and key-quota-scope hardening are not restored; those files are removed with the PR's own additions. Security-review fixes carried in this merge: - Passive cache identity and invalidation are scoped to the config home that observed the send, so the same provider and key in another home neither reads, replaces, nor retires this home's rows. - A redirect is never a reading, and a parsed response with no count, remaining value, or reset no longer advances the sequence fence, so an older real response can still settle after a newer headerless 302. Ratchets: providerRoutingQuota moves to provider-routing-quota.ts so provider-routes.ts returns under the 2000-line new-file bound, and the providers guide keeps dev's budget prose plus a compact passive-observation note within the same bound. quota.ts stays at its 558-line cap.
Summary
Verification
All local checks used temporary isolated homes under
env -i. The following focused checks were rerun on head0d8340f3ff9dee762476b17f346617d2a7a822f7:bun test tests/providers/mistral-budget-quota.test.ts tests/usage/mistral-budget-reset-identity.test.ts tests/usage/quota-pool.test.ts tests/cli/cli-account-key-quota.test.ts: 105 passed, 0 failed. New feature, passive credential ownership and terminal-control regressions were demonstrated failing before their fixes.bun run typecheck,bun run privacy:scanandbun run structure:check: exit 0. The docs site build completed 665 pages after installing its locked dependencies.e9fdc004, the same focused tests passed 105/0, GUI budget tests passed 10/0, and typecheck, privacy and structure passed. The combined guide size initially exceeded the ratchet; after reflow,bun test tests/ci-workflows/file-size-ratchet.test.tspassed 9/0 on the new combined tree. Layout and Lab guards passed on the preceding combined tree; the final change was documentation-only.0d8340f3; both usedhyds/deepseek-v4.1-flash-1m.bun run test:changedon preceding code head80041d13: 42,444 passed, 108 skipped, one package-tree integrity test timed out. That test passed separately on the same head; the full changed suite did not pass. Full GUIbun teston candidate95dcdac7and dev base33726958had the same 43 failures, no candidate-only failures; nine affected files passed when run separately. These failures remain recorded, not described as passing.bun run test, native Windows execution or live Mistral credential verification. No per-PR cross-platform workflow was dispatched.Checklist