tui: image renderer integration — thread ImageRenderer through AppCtx #85
Labels
No labels
area:agents
area:ai
area:config
area:dashboard
area:design
area:design-review
area:devtools
area:entities
area:gallery
area:generate
area:image
area:infra
area:meta
area:model-browser
area:navigation
area:presets
area:security
area:sessions
area:settings
area:sharing
area:test
area:ux
area:webhook
area:workdir
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/loom#85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User Story
As a loom-tui user, I want the auto-detected image renderer to be available to all screens via
AppCtx, so that gallery thumbnails, model cards, preview panes, and entity portraits actually display images in the terminal.Context
The
image/subsystem (Kitty, Sixel, Chafa, half-block) was built in Phase 2 (#12–#15) with anImageRenderertrait and auto-detection. But the renderer is not threaded throughAppCtx— no screen can actually callrenderer.render(). This ticket connects the rendering pipeline.Acceptance Criteria
AppCtx Integration
AppCtxholds anArc<dyn ImageRenderer>populated at startup by the auto-detect logictui.toml→image_protocol) is respected if set to a specific backendctx.image_renderer()Async Pipeline
mpscchannel(path, width, height)hash avoids redundant transmissionsCleanup
a=d,d=A)Tests
Out of Scope
References
src/image/mod.rs,kitty.rs,sixel.rs,chafa.rs,detect.rs