zot/internal
patriceckhart dad49e9b7a tweak(tui): image-block spacing + indent
Two small fixes to how inline-image tool results render.

1) Extra blank row under the image.

   RowsForInlineImage estimates the on-screen height from a
   fixed cell aspect ratio. Real terminals (iTerm2, Ghostty,
   Kitty, WezTerm) don't all match that ratio exactly, so the
   image often paints one row past the estimate and the info
   line below it ("image - image/png - 612x904 - 99 KB") gets
   overwritten by the image's bottom edge. Reserving one extra
   blank row between the image and the info line absorbs that
   spillover on every terminal I tried.

   Same symmetry for the trailing blank: the info line no
   longer sits flush against the tool-block closing rule or
   the next content below.

2) Info line indented to 4 spaces.

   Every other tool-output row (renderRawFile's gutter,
   renderBashResult, diff rows, the "... N more lines, M total"
   collapse footer) starts at column 4. The image info line
   used to start at column 2, which looked off next to the
   other rows. Bumped it to 4 so the metadata line aligns with
   the file content above and below it.

Text-only fallback (terminals without inline image support)
also picks up the trailing blank + 4-space indent so the two\nrender paths behave consistently.
2026-04-21 19:12:04 +02:00
..
agent fix(tui): slash popup + transient overlays swallow esc before busy-cancel 2026-04-21 18:32:22 +02:00
assets assets: refresh zot logo to cleaner pixel-art Z 2026-04-20 12:01:43 +02:00
auth feat(auth,tui): dark login pages + /logout picker 2026-04-19 20:14:22 +02:00
core feat(session): /session fork + /session tree 2026-04-20 11:10:56 +02:00
extproto feat(ext): phase 4 - full-event interception, arg rewrites, /reload-ext 2026-04-19 17:02:04 +02:00
provider perf(anthropic): fix cost double-count, tighten caching, correct catalog 2026-04-19 18:57:18 +02:00
skills perf(prompt): cut system prompt to the bone (410 -> 54 tokens) 2026-04-19 17:39:38 +02:00
tui tweak(tui): image-block spacing + indent 2026-04-21 19:12:04 +02:00