Repository navigation
[0.62.0] Expose quota-window history - #584
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (10)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Thermo-nuclear code-quality reviewI found three high-confidence blockers. This is not an approval. [P1] Move provider-specific quota projection out of the shared chart command
Expose a provider-neutral quota-history result/service from the Rust provider layer, with Codex and Claude implementations kept in their provider modules. The chart command should only request that result and map it to bridge DTOs; it should not know provider-specific scanning or aggregation details. [P1] Do not perform three independent Claude log walks for one chart request
Create one provider-owned, cancellable evidence snapshot/cache per request and derive daily history, local summary, and quota windows from it. Keep the chart command as a thin transport layer. [P1] Do not ship a persistence-shaped DTO whose value is permanently falseBoth provider branches pass empty reset observations ( Wire the persisted observation source and its account scope through the provider-owned service before exposing this field, or remove the field and clearly mark the feature as best-effort until persistence exists. |
1fd0dc9 to
74cdda5
Compare
Summary
This stacked PR adds the display bridge and menu presentation for the quota-window history backend in #583.
ProviderChartData.resetObservationsPersisted=falseuntil a durable Claude reset-observation store is added; the UI does not imply that persistence exists.The implementation is based on the upstream v0.62.0 feature commit
b1f14ba2594e2b37b70b18fedc16710e2576066cand is stacked on #583.Validation
cargo fmt --allcargo clippy --manifest-path rust/Cargo.toml --all-targets -- -D warningscargo clippy --manifest-path apps/desktop-tauri/src-tauri/Cargo.toml --all-targets -- -D warningscargo test --manifest-path rust/Cargo.toml— 2093 tests: 2092 passed, 1 ignoredcargo test --manifest-path apps/desktop-tauri/src-tauri/Cargo.toml— 453 passedpnpm --dir apps/desktop-tauri test— 393 passedpnpm --dir apps/desktop-tauri run build./scripts/local-check.ps1 -Slice ciThe local CUA fresh-desktop proof was not run in this session; the new component has focused React coverage and the frontend build passed. Keep this UI proof as a merge follow-up.
Summary by CodeRabbit