Skip to content

ACP: accept image/audio prompt content blocks #5

Closed

Description

@JAORMX

What's missing

The ACP adapter handles text prompt content only. initialize advertises promptCapabilities{image:false, audio:false, embeddedContext:false}, and session/prompt flattening keeps only type:"text" blocks (dropping the rest).

Validated (independent cross-check):

  • handleInitialize advertises image/audio/embeddedContext false (internal/adapter/acp/agent.go).
  • flattenPrompt keeps only b.Type == "text"; contentBlock models only Type+Text (agent.go, internal/adapter/acp/types.go).

Proposed approach

Accept image/audio (and embedded-resource) ContentBlocks in session/prompt and advertise the capability. Requires domain support for non-text prompt content — mecatl's prompt path is text-only end-to-end today, so this is larger than an adapter change, and low value unless the configured provider consumes images. Likely the lowest-priority of the remaining items.

Part of ACP Phase 3 long-tail (docs/adr/0001-acp-adapter.md).

Activity

  1. JAORMX commented on Jun 1, 2026

    @JAORMX
    ContributorAuthor

    Done across 5d8c674 (core) + 5983c75 (ACP wiring). Full multimodal prompt content end-to-end: image works (OpenAI input_image, base64 + validated https URL), audio is wired through domain/proto/persistence but provider-gated-off (the OpenAI Responses input union has no audio member, so it advertises Audio:false and rejects honestly), embedded inline-text resources flatten to text, resource_link + unknown blocks are loud-rejected (never silent-dropped). Capability advertisement is provider-driven (ProviderCapabilities seam); a non-vision provider advertises false and rejects. Stateless + byte-stable-prefix invariants preserved (media in the volatile Input tail only). Security: all media (gRPC/HTTP/ACP) flows through one validation choke point — https-only SSRF rejection (incl. inet_aton/CGNAT/metadata-IP/trailing-dot), 10MiB/part + 20MiB/prompt + 16-part caps, mime/exactly-one-of. Panel-reviewed across many rounds; caught a HIGH SSRF-by-proxy, an inet_aton bypass, and silent-drop paths. TUI media-attach picker deferred (render placeholder only; ACP editor is the headline client).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions