Skip to content

fix(agentfield): add test for issue #587 - #835

Draft
Salomondiei08 wants to merge 1 commit into
Agent-Field:mainfrom
Salomondiei08:fix/587-imageoutput-save-crashes-on-da
Draft

fix(agentfield): add test for issue #587#835
Salomondiei08 wants to merge 1 commit into
Agent-Field:mainfrom
Salomondiei08:fix/587-imageoutput-save-crashes-on-da

Conversation

@Salomondiei08

Copy link
Copy Markdown

What

Adds test coverage for the behavior described in issue #587.

Why

Fixes #587

Testing

  • New test added

Copilot AI review requested due to automatic review settings July 29, 2026 00:38
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Jay seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Ref: Agent-Field#587
Signed-off-by: Jay <sallomondiei@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to add regression test coverage for issue #587 (Python SDK ImageOutput.save() crashing on data: URLs), ensuring Gemini/OpenRouter-style data:image/png;base64,... URLs can be saved without an HTTP request.

Changes:

  • Adds a new regression test exercising ImageOutput.save() with a data: URL and asserting the saved bytes match the decoded payload.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/test_issue_587.py
@@ -0,0 +1,18 @@
"""Regression test for issue #587 -- ImageOutput.save() with data URLs."""
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.

ImageOutput.save() crashes on data: URLs returned by Gemini image models

4 participants