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
Transcode HEIC/HEIF attachments to JPEG before the provider sees them #463
T3 Code #7225 (16 Aug): HEIC attachments are accepted, then rejected by Claude with `Unsupported Claude image attachment type 'image/heic'`.
iPhone (and many Android cameras) write HEIC by default. A screenshot from the Photos picker is HEIC. The user did nothing exotic.
Solenta today
`electron/attachments.js` `IMAGE_EXTS` is `png, jpg, jpeg, gif, webp, bmp, svg`. HEIC/HEIF is not in the set, so the picker skips the file silently. If it ever arrives via paste/drop with a `image/heic` media type, nothing transcodes it. Claude, Codex, and most CLIs still do not accept HEIC.
Why it matters
Mobile companion (#287) and "paste a photo of the bug" both die on the default iPhone format. T3 accepted the bytes and then failed at the provider — the worse of the two bugs. We currently fail earlier (silent skip), which is also wrong.
Scope suggestion
Accept `.heic` / `.heif` / `image/heic` in the picker and on drop. Transcode to JPEG (sips on macOS, a small decoder elsewhere) before persist + send. Keep the original on disk if we ever grow a provider that wants it. Show a one-line "converted from HEIC" chip so the user knows we touched the file. Do not pretend SVG/HEIC are interchangeable.
Round 20. Source: T3 #7225, this week's issue list.
Round 21: Kimi Code 0.23.4 is the other end of this design.
They refuse HEIC/HEIF and print a platform-matched conversion command, then recover a poisoned session by dropping the image and retrying. They also downscale/compress oversized WebP and recover HTTP 413 by replacing older media with text markers.
Prefer our planned transcode (so the user never sees a refuse). Steal the recovery: one bad image must not 400 every later turn. Configurable via something like their `[image]` / `KIMI_IMAGE_*` caps.
PR #1677 converts HEIC/HEIF attachments to JPEG (sips → heif-convert → magick) for the picker, drop, web upload and web paste. The original is kept, and the chip says "converted from HEIC". With no converter available, the file is attached as a plain file and never as an image the provider rejects. No decoder is bundled for non-mac users.
Activity
currentbits commentedon Aug 18, 2026
Round 21: Kimi Code 0.23.4 is the other end of this design.
They refuse HEIC/HEIF and print a platform-matched conversion command, then recover a poisoned session by dropping the image and retrying. They also downscale/compress oversized WebP and recover HTTP 413 by replacing older media with text markers.
Prefer our planned transcode (so the user never sees a refuse). Steal the recovery: one bad image must not 400 every later turn. Configurable via something like their `[image]` / `KIMI_IMAGE_*` caps.
currentbits commentedon Oct 18, 2026
PR #1677 converts HEIC/HEIF attachments to JPEG (sips → heif-convert → magick) for the picker, drop, web upload and web paste. The original is kept, and the chip says "converted from HEIC". With no converter available, the file is attached as a plain file and never as an image the provider rejects. No decoder is bundled for non-mac users.