Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
On August 18, 2025, at 11:46 AM (UTC+8), while using the Claude-4-Sonnet model, I encountered repeated error responses showing:
Model provided invalid arguments to write tool.This happened over 10 times in a row. Each instance consumed tokens, totaling approximately 27,361,981 tokens, but no valid response was returned.
Screenshots of the error messages and token usage are attached for your reference.
This is a critical bug that caused severe token loss and prevented me from completing my task.
Steps to Reproduce
- Open ChatGPT with Claude-4-Sonnet selected.
- Enter a valid prompt (in my case, about extracting a service).
- Observe that the model replies with “” and “Model provided invalid arguments to write tool.”
- Try resending — the same error happens again.
- Tokens are deducted despite the failure.
Note: No plugins or custom tools were involved.
Expected Behavior
The model should return a valid message. If an internal error occurs, it should:
- Not deduct tokens.
- Clearly indicate the error to the user.
- Stop repeated failures from being charged.
Token usage should only apply to successful or meaningful responses.
Screenshots / Screen Recordings

Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
版本: 1.4.5 (Universal)
認可: 1.99.3
日期: af58d92614edb1f72bdd756615d131bf8dfa5290
Electron: 2025-08-13T02:08:56.371Z (5 天前)
ElectronBuildId: 34.5.8
Chromium: undefined
Node.js: 132.0.6834.210
V8: 20.19.1
OS: 13.2.152.41-electron.0
Additional Information
This bug caused an unusually high token usage (27,361,981 tokens) with zero usable output. I’ve attached screenshots showing the error messages and token consumption record for review.
I was using Claude-4-Sonnet inside Cursor, and all responses returned “” along with the error “Model provided invalid arguments to write tool.”
This made it impossible to continue my work and caused a major disruption in productivity.
Does this stop you from using Cursor
Yes - Cursor is unusable
