"invalid int 32: NaN" error when configuring usage-based pricing

Hi, thanks for reporting an issue with Cursor.

Before you report this, we’d appreciate if you can search this forum to see if this issue has already been reported.

If you have done so, please check this box.
on

Describe the Bug

Getting a not so user friendly "“invalid int 32: NaN” error if missing the $ sign when configuring usage base price.

Steps to Reproduce

Choose o1 model > when prompted with “Usage-based pricing is required”, click on “enable usage-based pricing” > remove the dollar sign in the input field (E.g 5 instead of $5) > results in “invalid int 32: NaN” error

Expected Behavior

The input field should only accept number and the dollar sign must be a placeholder or hardcoded. Maybe something like,
Hard limit ($): 5

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 0.43.6
VSCode Version: 1.93.1
Commit: a846435528b4b760494a836f96f0739889253530
Date: 2024-12-06T05:11:55.168Z (1 wk ago)
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.2.0

Additional Information

None

Does this stop you from using Cursor

No - Cursor is usable

Hey, thanks for reporting this!

We should have this fixed soon :smiley: