zot/packages/tui
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
..
crlf_test.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
detect_bg.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
editor.go Support Shift-Enter in terminal input 2026-06-15 18:54:26 +02:00
editor_ansi_prompt_test.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
editor_shift_enter_test.go Support Shift-Enter in terminal input 2026-06-15 18:54:26 +02:00
editor_vertical_test.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
highlight.go Add JSON theming, theme-only extensions, and docs 2026-05-30 11:34:42 +02:00
image.go fix: correct image MIME by content and re-encode for kitty 2026-06-20 18:18:52 +02:00
image_test.go fix: correct image MIME by content and re-encode for kitty 2026-06-20 18:18:52 +02:00
input.go Recognize Esc and other control keys in kitty keyboard mode 2026-06-16 07:46:29 +02:00
input_test.go Recognize Esc and other control keys in kitty keyboard mode 2026-06-16 07:46:29 +02:00
markdown.go Add JSON theming, theme-only extensions, and docs 2026-05-30 11:34:42 +02:00
markdown_test.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
partialjson.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
partialjson_test.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
paste_collapse_test.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
quote_paste_test.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
render.go Purge VS Code scrollback on clear, overlay close, and resize 2026-06-04 19:16:21 +02:00
render_test.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
report_cwd_test.go fix(jail,tui): emit OSC 7 cwd and stop false-positive cd jail errors 2026-06-17 17:15:37 +02:00
resize_unix.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
resize_windows.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
statusbar_test.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
terminal.go fix(jail,tui): emit OSC 7 cwd and stop false-positive cd jail errors 2026-06-17 17:15:37 +02:00
theme.go Add optional theme background support 2026-05-30 19:01:55 +02:00
theme_loader.go Add optional theme background support 2026-05-30 19:01:55 +02:00
theme_loader_test.go Add JSON theming, theme-only extensions, and docs 2026-05-30 11:34:42 +02:00
view.go fix(tui): scope live tool height reservation per call id 2026-06-19 18:09:33 +02:00
view_tool_overlay_test.go fix(tui): scope live tool height reservation per call id 2026-06-19 18:09:33 +02:00
wrap_test.go refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00