Skip to content

fix(tools): read images + preserve tool-result images on OpenAI path - #156

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
fix/152-read-tool-images
Sep 17, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
fix/152-read-tool-images

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

Test plan

  • test_read_image_returns_attachment / test_read_image_rejects_text_range_args
  • test_openai_convert_tool_result_with_multimodal_content

Made with Cursor

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]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit c50bf26 into main Sep 17, 2026
10 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the fix/152-read-tool-images branch September 17, 2026 23:00
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]>
@ZhiXiao-Lin ZhiXiao-Lin mentioned this pull request Sep 17, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

read 工具描述声称可以读取图片,实现只处理文本

1 participant