mirror of
https://github.com/patriceckhart/zot.git
synced 2026-06-27 22:06:31 +02:00
read tool and Anthropic builder derived an image's media type from its file extension, so a .png file containing JPEG bytes was declared image/png. Anthropic sniffs the real bytes and 400s the whole request on a mismatch, breaking the session and making it impossible to resume. - read tool now sniffs the real format from magic bytes (sniffImageMIME) - Anthropic request builder reconciles declared MIME against the actual bytes on every outbound image, repairing already-persisted sessions on continue/resume - kitty renderer re-encodes non-PNG images to PNG (f=100 is PNG-only), fixing empty image boxes for JPEG/GIF screenshots |
||
|---|---|---|
| .. | ||
| bash.go | ||
| bash_unix.go | ||
| bash_windows.go | ||
| edit.go | ||
| read.go | ||
| sandbox.go | ||
| sandbox_test.go | ||
| swarm_spawn.go | ||
| telegram_send.go | ||
| tools_test.go | ||
| write.go | ||