You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ACPAgent drops image content from user messages #2982
The ACP protocol's prompt() method accepts multimodal content blocks including ImageContentBlock, AudioContentBlock, ResourceContentBlock, and EmbeddedResourceContentBlock:
However, ACPAgent.step() currently only extracts TextContent from the user MessageEvent and sends it as a TextContentBlock via text_block(). Any image (or other non-text) content attached to the user message is silently dropped.
This is a pre-existing limitation on main — both before and after #2946 the code filters for TextContent only.
Expected Behavior
When a user message contains image content (e.g. via ImageContent blocks in the LLM message), ACPAgent should convert those to ImageContentBlock and include them in the prompt() call to the ACP server.
Suggested Fix
In _build_acp_prompt (or its caller), iterate over all content blocks in the message and map them to the corresponding ACP content block types (TextContentBlock, ImageContentBlock, etc.) instead of filtering to text only. The return type would change from str | None to list[ContentBlock] | None.
Activity
sjathin commentedon May 1, 2026
@xingyaoww Please check out PR #3027.