Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When using models subscribed via SuperGrok and connected to Cursor through a Custom API / OpenAI-compatible endpoint, the model cannot correctly understand images referenced by local file path (e.g. image.png or a workspace path).
In this setup, asking the model what the image shows returns a completely wrong description that does not match the actual image content. The same image works correctly when pasted directly into the chat input.
This strongly suggests that for custom/API-connected vision models, Cursor is not attaching the image binary/content when the image is referenced by local path, while paste/attachment correctly includes image data in the request.
This issue has persisted across many Cursor versions. Currently reproduced on Cursor 3.13.10 (Universal).
Steps to Reproduce
Configure a vision-capable SuperGrok model in Cursor via Custom API (OpenAI-compatible endpoint).
Put a known image in the workspace (e.g. image.png — a yellow rubber duck).
In Agent/Chat, type only a path in the message (relative or absolute), for example:
What does this image show? image.png
or
What does this image show? /full/path/to/image.png
Observe the reply: the description is incorrect / unrelated to the real image.
Send a new message and attach the same image with @image.png, or drag the file into the chat, then ask the same question.
Observe the reply: the description is correct and matches the image.
(Project impact) Open a design doc that only references images by path (no drag/@ attachment) and ask the model about those figures—recognition stays wrong across the document.
Expected Behavior
Local image path references (@file / workspace path) should attach the actual image content to the model request, the same way pasting an image into chat does. A vision-capable custom API model should be able to describe the local image accurately either way.
Screenshots / Screen Recordings
Operating System
MacOS
Version Information
IDE:
Version: 3.13.10 (Universal)
VSCode Version: 1.128.0
Commit: 4f02290ccd93
OS: macOS 26.5.2 (arm64)
Also observed on multiple previous Cursor versions, and also reproduced on Windows.
For AI issues: which model did you use?
SuperGrok-subscribed vision model via Custom API / OpenAI-compatible endpoint
Additional Information
Evidence from screenshot:
- Workspace contains image.png (a simple yellow rubber duck illustration).
- Chat prompt references the local image path and asks for a description.
- Custom/API model returns a completely incorrect description that does not match the rubber duck image at all.
- When the same image is pasted into the chat composer, the model describes it correctly.
This indicates a Cursor-side difference in how local path image references are packaged for custom API models vs pasted/attached images. Paste path appears to include image payload; path reference path appears not to (or only sends path text).
Impact:
- Breaks multimodal workflows for users who rely on Custom API / BYOK models.
- Makes image / local file image analysis unreliable unless users manually paste every image.
Please investigate the request payload construction for custom OpenAI-compatible providers when images are referenced via local paths.
Does this stop you from using Cursor
Yes - Cursor is unusable
