Repository navigation
delegate_task: pass image attachments with the child's first message #28673
ronnyronald0
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
An agent can hand a
delegate_taskchild an image only as a file path in thetasktext. That works when the child's own file tool reads images (ClaudeRead, Codexview_image). It fails for Antigravity/Gemini children: their file reads go through ACPfs/read_text_file, so the model gets the bytes decoded as UTF-8 (#24969). I reproduced this with the managed runtime 1.3.0 and again with 1.4.1.Current workaround
This works. I checked it with
gemini-3.8-flash-low, which described a test image correctly.delegate_taskwith a placeholder task ("reply 'ready' and wait"),mode: "wait".t3_attachment_prepare_uploadfor each image.127.0.0.1:3773.t3_thread_send_attachmentson thechildThreadId, with the real task as the message.t3_thread_wait, thent3_thread_read.Each review takes five tool calls and a shell step. The placeholder turn also costs a model turn and provider quota, and Gemini quota is not visible in T3.
Proposal
Add an optional
attachmentsfield todelegate_task. It would take local file paths, or attachment ids that were already uploaded. T3 would send them with the child's first message, the same wayt3_thread_send_attachmentsdoes, with the same limits (8 files, 10 MB each).A smaller change would also help: let
t3_thread_send_attachmentsaccept local paths directly. That removes the upload step for follow-up messages too.Use case
Visual review across models. A Claude parent renders images (for example Blender output) and asks a Gemini model for a second opinion in one call.
Related: #24969 (Antigravity reads media as text), #26788 (CLI attachments, closed as not planned), #27245 (image relay for models without vision).
🤖 Generated with Claude Code
All reactions