Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When I attach an image to my prompt in the IDE and ask the agent to do something with it, the image data is not captured. The beforeSubmitPrompt hook captures this:
{"conversation_id":"915654d7-5ad1-4285-8b06-99ca33b3bdb1",...
"model":"default",
"composer_mode":"agent",
"prompt":"read this",
"attachments":[],..."hook_event_name":"beforeSubmitPrompt"...}
Note how the attachments field is empty.
There is also a write file that occurs following the beforeSubmitPrompt, writing the PNG file to the project’s assets directory, captured by the preToolUse hook:
{"conversation_id":"915654d7-5ad1-4285-8b06-99ca33b3bdb1",...
"tool_name":"Write",
"tool_input":{"file_path":"/Users/user/.cursor/projects/Users-user-Documents-cursor/assets/image-a1b4a6dc-db23-43ef-2af-891441b858e5.png",
"content":""},...
"hook_event_name":"preToolUse","...}
Note how the content field is empty. The agent understands the image, and text within the image, but the data is never captured by the hooks.
Steps to Reproduce
Attach an image to a prompt and ask the agent to describe it / explain text within it, anything like that. The agent will perform the action, but the image data is not captured in the hooks where expected.
Expected Behavior
Image data is captured under the preToolUse file “content” key above, and/or in the beforeSubmitPrompt “attachments” key
Operating System
MacOS
Version Information
Version: 3.5.38
VSCode Version: 1.105.1
Commit: 009bb5a3600dd98fe1c1f25798f767f686e14750
Date: 2026-05-26T21:32:06.537Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0
Does this stop you from using Cursor
No - Cursor works, but with this issue