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
PDF and document attachments, not just images #466
OpenCode (12 Aug): PDF attachments for GitHub Copilot models that advertise PDF vision support.
Kimi Code 0.25.0: attach any file type in the web chat — drop anywhere, chips for files / images / videos. 0.29.0: videos attached to a prompt reach the model with the prompt, no extra tool round trip.
Grok 0.2.84: GIF/BMP/TIFF pasted or read are converted so they work with image generation.
Solenta today
`electron/attachments.js` `IMAGE_EXTS` is png/jpg/jpeg/gif/webp/bmp/svg. Non-images are skipped — "they belong to the composer's @-mention flow." A spec PDF, a design PDF, a `requirements.docx` cannot be attached. @-mention of a binary PDF just hands a path to a model that cannot read it.
#463 is HEIC → JPEG (still an image). #266 is video. Neither is a document.
Why it matters
"Here is the spec, implement it" is a PDF more often than a screenshot. OpenCode and Kimi closed that loop this month. We fail silently.
Scope suggestion
Accept `pdf` (and later office docs if a provider advertises them). Persist like images. Send via the provider's native document/vision flag when it exists (Claude document blocks, Codex/OpenCode PDF, Kimi any-file). If the provider cannot take a PDF, extract text locally and attach that, with a chip that says so. Do not base64 a 40 MB slide deck into the store — page-cap and size-cap the same way we cap images at 20 MB.
Round 23 intel: Factory Droid v0.187.0 has the graceful-degradation pattern this issue needs: attaching a PDF falls back to its extracted text when the selected model cannot read PDFs, instead of failing. And Amp shipped "Attach Anything" (2026-08-04): videos, logs, PDFs, datasets. So the support matrix is: model advertises PDF vision -> attach as document; model is text-only -> extract text client-side and attach that; password-protected PDF -> clear error, never a hang (Droid v0.172.0 fixed exactly that lockup). The fallback should be visible in the transcript chip ("attached as extracted text") so the user knows the agent is not seeing layout.
Activity
currentbits commentedon Aug 18, 2026
Round 23 intel: Factory Droid v0.187.0 has the graceful-degradation pattern this issue needs: attaching a PDF falls back to its extracted text when the selected model cannot read PDFs, instead of failing. And Amp shipped "Attach Anything" (2026-08-04): videos, logs, PDFs, datasets. So the support matrix is: model advertises PDF vision -> attach as document; model is text-only -> extract text client-side and attach that; password-protected PDF -> clear error, never a hang (Droid v0.172.0 fixed exactly that lockup). The fallback should be visible in the transcript chip ("attached as extracted text") so the user knows the agent is not seeing layout.
PDF attachments reach every provider: extracted text for models that …