ToolOutputImage results silently dropped from tool messages (openai-agents ≤0.6.4)
We ran into a subtle bug where tools returning ToolOutputImage appear to succeed but the model never actually sees the image.
We tracked it down to Converter.extract_text_content() in openai_chatcompletions.py, which filters function_call_output content to type == "text" only. Any input_image blocks are silently discarded before the message goes to the API.
We realized that this is an issue of openai-agents version 0.64 and is already fixed upstream in the SDK: openai/openai-agents-python#2214, released in v0.6.5. The fix adds a preserve_tool_output_all_content flag (defaults to True) so image content survives the converter.
The fix on SceneSmith's side would just be bumping the pin:
-"openai-agents>=0.6.4,<0.7",
+"openai-agents>=0.6.5,<0.7",
ToolOutputImageresults silently dropped from tool messages (openai-agents ≤0.6.4)We ran into a subtle bug where tools returning
ToolOutputImageappear to succeed but the model never actually sees the image.We tracked it down to
Converter.extract_text_content()inopenai_chatcompletions.py, which filtersfunction_call_outputcontent totype == "text"only. Anyinput_imageblocks are silently discarded before the message goes to the API.We realized that this is an issue of openai-agents version 0.64 and is already fixed upstream in the SDK: openai/openai-agents-python#2214, released in v0.6.5. The fix adds a
preserve_tool_output_all_contentflag (defaults toTrue) so image content survives the converter.The fix on SceneSmith's side would just be bumping the pin: