Error: Your message is too long. Please try again with a shorter message and fewer/smaller attached items

Thanks for reporting a bug you have found in Cursor!
Please add the following info to help us diagnose your issue:

:white_check_mark: Check the forum to ensure the issue hasn’t been reported already
:lady_beetle: Provide a clear description of the bug
Your message is too long. Please try again with a shorter message and fewer/smaller attached items.

:counterclockwise_arrows_button: Explain how to reproduce the bug (if known)
Just type the casual response
:camera: Attach screenshots or recordings (e.g., .jpg, .png, .mp4).
:laptop: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).
Mac OS, latest cursor version
:prohibited: Tell us if the issue stops you from using Cursor.
Yes it does

Hi @neelpalle2002curso10 , that message shows because one of your files is too large for the model.

You have a few options

  • Dont attach whole files, let Agent fetch them by itself, just tell it which files to use.
  • Change from Auto to a model with larger context (see Models page in Cursor Documentation)