chenbhao Claude Big Pickle commited on
Commit
999003d
·
1 Parent(s): bfb2909

refactor: move ink-picture rendering from call() to UI React tree

Browse files

- Remove direct stdout ANSI rendering from ImageShowTool.call() (protocol
detection, renderImage, etc.)
- Simplify call() to only load image and return dimensions
- Add ImageDisplay component in UI.tsx using InkPictureProvider + Image
from ink-picture, mounted in Codev's React tree
- Image component reserves a TUI placeholder and renders the actual
image directly to the terminal framebuffer via Kitty/Sixel protocol
(bypassing Ink render cycle)
- Merge standalone.tsx to use ImageDisplay from UI.tsx

Co-Authored-By: Claude Big Pickle <noreply@anthropic.com>

3 files changed +87 -148
Files changed (3)
src/tools/ImageShowTool/ImageShowTool.ts+26-124
src/tools/ImageShowTool/UI.tsx+51-11
src/tools/ImageShowTool/standalone.tsx+10-13