Models will go crazy when meeting base64 image string

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
i checked. no other base64 image related issues.
:lady_beetle: Provide a clear description of the bug
there is a base64 string representing a pure white 1024x1024 png image in my code.
i tried gpt4.1 and claude sonet 3.7. let them help me correct the python static types error in agent mode. it can truly define the right new types but when it scans the file to the base64 string, it hangs. 2 minutes later, it’ll show me that repetitive EBAQ patterns.


# a pure white png
 "image": "iVBORw0KGgoAAAANSUhEUgAABAAAAAQAAQAAAABXZhYuAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAAB3YoTpAAAAAd0SU1FB+kFDQMREfw6CvwAAAIZSURBVHja7c4hAQAAAAIg/5/WGRZYQHoWAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBgXdgi+8d41YGEHcAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjUtMDUtMTNUMDM6MTc6MTcrMDA6MDBAZPVeAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDI1LTA1LTEzVDAzOjE3OjE3KzAwOjAwMTlN4gAAACh0RVh0ZGF0ZTp0aW1lc3RhbXAAMjAyNS0wNS0xM1QwMzoxNzoxNyswMDowMGYsbD0AAAAASUVORK5CYII=",

:counterclockwise_arrows_button: Explain how to reproduce the bug (if known)
as above
:camera: Attach screenshots or recordings (e.g., .jpg, .png, .mp4).
as above
:laptop: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).
macos. cursor Version: 0.49.6
:prohibited: Tell us if the issue stops you from using Cursor.
no. i can cherry pick the generations.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.