Skip to content

Transcode HEIC/HEIF attachments to JPEG before the provider sees them #463

Closed

Description

@currentbits

What T3 just broke on

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.

Activity

  1. added
    enhancement
    plan:todo
    on Aug 18, 2026
  2. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    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.

  3. added
    plan:doing
    and removed
    plan:todo
    on Oct 18, 2026
  4. currentbits commented on Oct 18, 2026

    @currentbits
    OwnerAuthor

    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.

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

    enhancementplan:doing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions