zot/packages/agent/tools
patriceckhart 1a24a204b4
Some checks are pending
ci / test (macos-latest) (push) Waiting to run
ci / test (ubuntu-latest) (push) Waiting to run
ci / test (windows-latest) (push) Waiting to run
fix: correct image MIME by content and re-encode for kitty
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
2026-06-20 18:18:52 +02:00
..
bash.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
bash_unix.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
bash_windows.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
edit.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
read.go fix: correct image MIME by content and re-encode for kitty 2026-06-20 18:18:52 +02:00
sandbox.go fix(jail): block POSIX-absolute cd targets on Windows 2026-06-17 17:24:02 +02:00
sandbox_test.go fix(jail,tui): emit OSC 7 cwd and stop false-positive cd jail errors 2026-06-17 17:15:37 +02:00
swarm_spawn.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
telegram_send.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
tools_test.go fix: correct image MIME by content and re-encode for kitty 2026-06-20 18:18:52 +02:00
write.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00