Skip to content

Fix model pricing refresh without PowerToys integration - #447

Merged
Finesssee merged 1 commit into
mainfrom
maint/pr442-pricing
Sep 8, 2026
Merged

Fix model pricing refresh without PowerToys integration#447
Finesssee merged 1 commit into
mainfrom
maint/pr442-pricing

Conversation

@Finesssee

@Finesssee Finesssee commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Maintainer replacement for #442 because the original head is in an external fork. Tree is the reviewed #442 implementation unchanged.\r\n\r\nSupersedes #442.\r\n

Summary by CodeRabbit

  • Bug Fixes
    • Local usage information now reflects enabled Codex and Claude providers directly.
    • Unsupported or disabled providers are excluded from usage reporting.
    • Usage reporting now behaves consistently even when PowerToys status is disabled.

@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 2694b895-c337-4b8e-a9b2-9c3f0d2b1f0a

📥 Commits

Reviewing files that changed from the base of the PR and between 1e3d04c and b24b123.

📒 Files selected for processing (1)
  • apps/desktop-tauri/src-tauri/src/auto_refresh.rs

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

Local usage enrichment now selects enabled Codex and Claude providers directly. PowerToys status-pipe availability no longer controls enrichment. Tests cover disabled PowerToys integration and supported-provider filtering.

Changes

Local usage enrichment

Layer / File(s) Summary
Provider selection and refresh scheduling
apps/desktop-tauri/src-tauri/src/auto_refresh.rs
The provider helper uses integration-independent naming. Refresh scheduling runs without the PowerToys status pipe. Tests cover Codex enrichment with PowerToys disabled and filter providers by support and enabled state.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to b24b1

Local pricing refresh now works when PowerToys integration is disabled while continuing to refresh only enabled Codex and Claude providers. The covered behavior introduces no identified merge-blocking risk.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: fixing model pricing refresh when PowerToys integration is unavailable. It matches the stated objectives and the implementation changes.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch maint/pr442-pricing

Comment @coderabbitai help to get the list of available commands.

@Finesssee
Finesssee merged commit 9e95a57 into main Sep 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants