Skip to content

Reinjecting images on subsequent turns - #1666

Open
hlibr wants to merge 1 commit into
HKUDS:mainfrom
hlibr:images-reinjection
Open

Reinjecting images on subsequent turns#1666
hlibr wants to merge 1 commit into
HKUDS:mainfrom
hlibr:images-reinjection

Conversation

@hlibr

@hlibr hlibr commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

Right now if you send an image to the agent (assuming you're using a vision-enabled LLM), the agent will correctly "see" it, but only once.

In subsequent turns, image's base64 is stripped and the agent stops "seeing" it - this leads to the agent frantically trying to "read_file" and "exec" it, or hallucinating image details when questioned.

This PR reinjects the image's base64 on every turn, keeping the image data in agent's context and allowing to keep chatting about the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants