Repository navigation
fix(tools): read images + preserve tool-result images on OpenAI path - #156
Merged
Merged
Conversation
Honor the read tool's image claim by loading JPEG/PNG/GIF/WebP via Attachment, and preserve multimodal tool-result image_url parts when converting messages for OpenAI-compatible providers (fixes #152). Co-authored-by: Cursor <[email protected]>
1 of 2 tasks
ZhiXiao-Lin
added a commit
that referenced
this pull request
Sep 17, 2026
Prep patch 8.5.13 promotion: orphan isolation clear, Layer C timeout headroom, and read/OpenAI image tool-result fixes. Co-authored-by: roylin <[email protected]> Co-authored-by: Cursor <[email protected]>
2 of 5 tasks
ZhiXiao-Lin
added a commit
that referenced
this pull request
Sep 18, 2026
Ship image read attachments and OpenAI tool-result image passthrough (#156 / #152), plus orphan isolation clear and Layer C timeout headroom (#155). Minor: advertised read-image capability is now implemented. Co-authored-by: roylin <[email protected]> Co-authored-by: Cursor <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
readloads local JPEG/PNG/GIF/WebP viaAttachmentand returnsToolOutput.images(rejects textoffset/limiton images).convert_messageskeeps multimodal tool-result content (text+image_url) instead of stripping images.read工具描述声称可以读取图片,实现只处理文本 #152.Test plan
test_read_image_returns_attachment/test_read_image_rejects_text_range_argstest_openai_convert_tool_result_with_multimodal_contentMade with Cursor