Skip to content

Feature: paste images into supported ACP agent conversations - #148

Merged
DevMando merged 1 commit into
mainfrom
feature/acp-image-prompts
Nov 19, 2026
Merged

DevMando merged 1 commit into
mainfrom
feature/acp-image-prompts

Conversation

@DevMando

Copy link
Copy Markdown
Owner

Summary

ACP conversations previously blocked image paste, even when the connected agent supported images. Users can now copy a screenshot, press Alt+V, add a question such as “What’s in this image?”, and send the image and message together to a compatible ACP agent.

This completes the implementation for the image-prompt item in #144.

What changes for users

  • Enable image paste only when the connected agent reports image support. Show the Alt+V prompt hint when it is available, and explain when the agent is still connecting or does not support images.
  • Insert an image reference into the draft so users can add a message or delete the reference to remove the attachment before sending.
  • Keep clipboard images in memory within their pane and send them as ACP image content. Images are not written into the project. Existing file references retain their current behavior.
  • Preserve Ctrl+V text paste for agents without image support. Clipboard image paste through Ctrl+V also works when the Windows terminal forwards that key.
  • Check image support again when sending. An expired or unavailable attachment produces an error instead of sending the request without its image.
  • Retain the 4 MiB limit per image and add a 16 MiB total image limit per prompt. Repeated references attach the same image only once.
  • Update the ACP guides and Unreleased changelog.

Validation

  • The project owner tested image paste and an image prompt interactively with Codex ACP and confirmed it works.
  • 72 selected tests passed on .NET 10 and 72 on .NET 8, with one existing symlink test skipped on each.
  • Coverage includes supported, unsupported, and connecting agents; Alt+V and Ctrl+V; text-paste compatibility; image delivery alongside text; duplicate and removed references; expired attachments and pane isolation; and the combined image-size limit. Existing native clipboard and ACP file-reference checks are included.
  • Builds and patch whitespace checks passed. The full suite was not rerun for this PR; GitHub CI provides the broader Windows/Linux checks.

Scope

Clipboard image prompts are supported when the agent advertises promptCapabilities.image. Image understanding depends on the connected agent and selected model. Interactive verification used Codex ACP; other adapters were covered through capability-driven tests rather than live sessions. The separate README badge cleanup is excluded.

@DevMando
DevMando merged commit b8c7fcf into main Nov 19, 2026
4 checks passed
@DevMando
DevMando deleted the feature/acp-image-prompts branch November 19, 2026 07:03
@DevMando DevMando mentioned this pull request Nov 19, 2026
3 of 9 tasks
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.

1 participant