(MOT-4407) fix(harness): report context usage truthfully - #802
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 5 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (8)
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 |
skill-check — worker0 verified, 59 skipped (no docs/).
Four for four. Nicely done. |
Refs MOT-4407
What
Why
The context popover previously described mixed accounting as
exact · tokenizer, rendered absent cache fields as zero, and could present a partial or missing price as a complete session total. GLM-5.3 made the mismatch visible, but the issue was in the shared Harness layer.This applies to every current and future provider through the common
Usagecontract. Provider adapters remain responsible only for accurately parsing the usage fields their API returns.Verification
cargo fmt --manifest-path harness/Cargo.toml --all -- --checkSKIP_UI_BUILD=1 cargo clippy --manifest-path harness/Cargo.toml -p harness --all-targets --all-features -- -D warningsSKIP_UI_BUILD=1 cargo test --manifest-path harness/Cargo.toml -p harness --all-features(329 tests)pnpm --dir harness/ui test(8 tests)pnpm --dir harness/ui buildgit diff --check