From 48b14add01cb106217832e036e3569e494f1d65c Mon Sep 17 00:00:00 2001 From: t Date: Fri, 4 Dec 2026 15:30:05 -0700 Subject: Send dropped images as native ACP prompt content blocks Panto expands a pasted image into a multi-block user message (text, [Image-N] path text, base64 media). The adapter only accepted a single text block, so any image drop failed with 'No matching Antigravity tool handoff or text prompt'. Translate text and image/* media blocks into ACP ContentBlocks for new turns, warm follow-ups, boundary steering and transcript reseeds, gated on the agent's advertised promptCapabilities.image. Image data rides outside agy's ~191 KB user-text cap, so only text bytes count toward message_bytes; reseeds prefix the leading text block and reserve room for the path context block. Non-image attachments (PDFs) are refused before launch because agy's ACP inlineMedia accepts image/* only. The offline check now drops a real PNG via bracketed paste across a warm turn, /tree reseed and cold resume, and asserts PDF rejection. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index c687241..ad0b694 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ Matching live turns keep the warm ACP session. Exact saved checkpoints record th ## Session boundaries -Only a direct idle TUI submission can start, resume or reseed an ACP session. Once a turn completes, extension-submitted text (including workflow completion notices) can continue the same live primary thread if its checkpoint still matches. This checks session continuity, not the text prefix or which extension submitted it. An explicit `panto -m antigravity:gemini-4-hydrogen -- "prompt"` in an interactive terminal counts as direct input; an automatic rig `PROMPT.md` does not. No print/proxy calls, child-provider requests, compaction or automatic retries. Direct input identifies a TUI path, not proof of personhood; don't automate this route. Keep the profile free of delegation hooks/servers and exclude delegation tools from the rig or use an explicit allowlist on this personal route. The relay supports text/image results. Force-kill can leave a stale socket, lock or generated `config/agents/panto-*.md` in the isolated profile: confirm the owner is gone before removing it. +Only a direct idle TUI submission can start, resume or reseed an ACP session. Once a turn completes, extension-submitted text (including workflow completion notices) can continue the same live primary thread if its checkpoint still matches. This checks session continuity, not the text prefix or which extension submitted it. An explicit `panto -m antigravity:gemini-4-hydrogen -- "prompt"` in an interactive terminal counts as direct input; an automatic rig `PROMPT.md` does not. No print/proxy calls, child-provider requests, compaction or automatic retries. Direct input identifies a TUI path, not proof of personhood; don't automate this route. Keep the profile free of delegation hooks/servers and exclude delegation tools from the rig or use an explicit allowlist on this personal route. The adapter sends text and dropped images natively over ACP `session/prompt` (non-image attachments such as PDFs are refused) and relays text/image tool results. Force-kill can leave a stale socket, lock or generated `config/agents/panto-*.md` in the isolated profile: confirm the owner is gone before removing it. ## Offline release check -- cgit v1.3