Skip to content

fix(cursor): clamp plan usage at 100% (0.45 port #2255)#217

Merged
Finesssee merged 1 commit into
mainfrom
port/045-cursor-clamp
Jul 21, 2026
Merged

fix(cursor): clamp plan usage at 100% (0.45 port #2255)#217
Finesssee merged 1 commit into
mainfrom
port/045-cursor-clamp

Conversation

@Finesssee

@Finesssee Finesssee commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

Port stack PR C (upstream 0.45.0 steipete#2255).

Clamp Cursor plan / auto / API usage percentages at 100% when included usage exceeds the plan limit so the tray never paints >100% overage as a super-full bar.

Test plan

  • cargo test --manifest-path rust/Cargo.toml --lib providers::cursor
  • Fixture: total/auto/api percents 120/110/105 → all 100

No packaging.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

@Finesssee
Finesssee merged commit b0be7ce into main Jul 21, 2026
1 check failed
@Finesssee
Finesssee deleted the port/045-cursor-clamp branch July 21, 2026 01:54
@github-actions

Copy link
Copy Markdown

This repository allows each user to open at most 4 pull requests per 7 days.

Closing this automatically.

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.

1 participant