Port upstream CodexBar 0.49.4-0.49.6 - #338
Conversation
…Kimi lanes, menu-card wrap
…gCat token-packs, OpenCode PAYG billing
|
Thermo-nuclear code-quality review: blocking on decomposition. This PR takes There is already a clean structural boundary here. Please extract this into |
|
Follow-up thermo-nuclear review on head This branch takes Please extract that subsystem before merge. Still blocking. |
Port of upstream steipete/CodexBar v0.49.4 → v0.49.6 (stacked on #337; read-only consumption of tagged sources, zero upstream contact).
Ported
days?|months?(Gigawatt) and advances monthly renewals by calendar months (checked_add_months). Amp Free daily tier resets at the next 8:00 PM America/New_York boundary instead of carrying no reset. 3 new tests/api/pay/quota/metering/token-packs/summaryis the live usage source: an ACTIVEcurrentLot(statuscase-insensitive,totalToken > 0) drives quota fromtotalToken/consumedToken; the legacy token-usage endpoint is fetched only when no active lot. Probe failures degrade to the legacy path. 3 new testsc83b78a…) is tried: customer payload must carrycustomerID,monthlyUsage/balanceare 1e8 fixed-point,monthlyLimitwhole USD; a present non-nullsubscriptionpreserves the original error. PAYG snapshot shows monthly spend vs configured limit (informational without a limit) + prepaid balance in the login label. JSON path plus tolerant[…]payload scan. 3 new testsAlready present (verified)
providers/ollama, with the same error-preference semantics (generic browser miss → original auth error; specific browser diagnosis wins)Skipped (no counterpart)
Intl.NumberFormatrenders any ISO code alreadyDeferred (evidence)
grok_api_v2.GrokBuildBilling/GetGrokCreditsConfig) with a protobuf wire scanner, retry classification, team-plan detection, andgrok logincredential discovery. Needs its own focused PR with captured payloads; not guess-portedCommands run
cargo fmt --allcargo clippyboth manifests--all-targets -- -D warningscargo test --manifest-path rust/Cargo.toml --lib— 1243 passedcargo test --manifest-path apps/desktop-tauri/src-tauri/Cargo.toml— 342 passedpnpm --dir apps/desktop-tauri test— 257 passedpnpm --dir apps/desktop-tauri run build— okBackend-only provider changes; no tray/settings surface changed, so no CUA proof attached (per PR template honesty: unit + fixture tests are the proof here; live-account verification of Amp/LongCat/OpenCode endpoints recommended after merge).