Files
codex/codex-rs/protocol/src
T
Job Chong ac3237721e Fix: gracefully error out for unsupported images (#7478)
Fix for #7459 
## What
Since codex errors out for unsupported images, stop attempting to
base64/attach them and instead emit a clear placeholder when the file
isn’t a supported image MIME.

## Why
Local uploads for unsupported formats (e.g., SVG/GIF/etc.) were
dead-ending after decode failures because of the 400 retry loop. Users
now get an explicit “cannot attach … unsupported image format …”
response.

## How
Replace the fallback read/encode path with MIME detection that bails out
for non-image or unsupported image types, returning a consistent
placeholder. Unreadable and invalid images still produce their existing
error placeholders.
ac3237721e · 2025-12-09 10:28:41 -08:00
History
..
2025-12-03 20:30:43 +00:00
2025-12-03 20:30:43 +00:00
2025-10-20 11:29:49 -07:00