Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. Comment |
UI proof (browser-use)Proven at e316541 (PR head). Build: debug desktop exe with the
Screenshots (local, not committed): |
|
Validated 2026-10-02 at e316541 (PR head; base main 7695471):
|
|
Adversarial validation passed at a8a3e96 Scope: honor provider lane labels in Settings usage bars and the metric picker (#738, GAP-55), validated as merged into release/v0.70.0 (merge a8a3e96 = merge of e316541 into 64f32db). Attacks (highest-risk semantics, from the merged tree):
No defects found. READY for the un-draft rule. |
GAP-55: Settings lane names (found in the #668, #697, #702, #703, #710 and #730 proofs).
On main 7695471, the Settings > Providers detail surfaces label the session/weekly lanes with the
fixed
ProviderSessionLabel/ProviderWeeklyLabellocale keys even when the bridge snapshotalready carries provider-declared labels (LiteLLM "Personal budget"/"Team budget", Kimi, StepFun),
and
MenuBarMetricSection.tsx metricOptions()offers fixed "Automatic / Session / Weekly" — eventhough the tray
MenuCard.tsxalready localizes the same bridgeprimaryLabel/secondaryLabelvalues. The Menu bar metric picker and the Usage bars in Settings are the two surfaces that
ignored them.
Behavior changes:
get_provider_detailnow forwards the cached snapshot'sprimaryLabel/secondaryLabel(serialize-only DTO addition; no fetch or persistence change).
UsageSection.tsxlabels the session bar withprovider.primaryLabel(falling back to theProviderSessionLabellocale key) and the weekly bar withprovider.secondaryLabel(fallingback to
ProviderWeeklyLabel).MenuBarMetricSection.tsxmetricOptions() offers the provider-declared labels for thesession/weekly options with the same locale-key fallbacks. Automatic and every
provider-specific extra (tertiary label keys, extra usage, Mistral monthly plan, Gemini
average, credits) keep working unchanged; no cross-provider branching beyond label plumbing.
types/bridge.tsgains optionalprimaryLabel/secondaryLabelonProviderDetail.Validation (fix/settings-lane-labels):
pnpm run check-locale— OK, 871 keys.pnpm test(vitest) — 65 files / 397 tests pass, including 4 new co-located tests:UsageSection: provider-declared labels shown / generic labels kept when none declared;
MenuBarMetricSection: picker offers provider-declared labels / keeps generic labels.
pnpm run lint— 0 errors (11 pre-existing warnings on main, unchanged).pnpm run build— pass.cargo check+cargo test -p codexbar+cargo test -p codexbar-desktop-tauri(DTO-only change; expected: 1 known Isolate bootstrap payload test from real settings #684 bootstrap env baseline failure on branches
without Make the bootstrap catalog test hermetic (#684) #711) —
cargo fmt --all --checkclean.No new dependencies. UI-affecting: browser-use proof comment follows at the proven head.