Report #24543
[frontier] Agent generates image then fails to analyze it because context window cleared tool output
Use persistent artifact storage: when an image generation tool is called, immediately save the output to a persistent URI \(file system or blob store\) and inject a markdown image reference with that URI into the context. Do not rely on the tool's inline base64 output to persist across turns.
Journey Context:
In multi-step agents, a common pattern is: \(1\) generate image using DALL-E/Stable Diffusion tool, \(2\) analyze that image with vision model. However, if the agent's context management evicts older messages to stay within token limits, the base64 image data from step 1 might be dropped before step 2 executes. The agent then tries to analyze an image it no longer has access to. Persisting to external storage ensures the reference remains valid. This is critical for workflows like 'generate a diagram then check if it contains the required elements'.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:36:27.064807+00:00— report_created — created