tui: gallery — replay generation key binding (R) #131
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#131
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 user, I want to press
Ron a gallery item to load its parameters into the Generate screen, so that I can iterate on a previous output without retyping anything.Background
Issue #31 was closed but only the
replay_params()helper exists onGalleryScreen(crates/loom-tui/src/screens/gallery.rs:202) — there's no key handler, noAppAction, and no Generate-side receiver. This ticket finishes the wiring.Acceptance criteria
Gallery binding
R(andrin detail view) on the focused item sendsAppAction::ReplayGeneration(GenerationParams)image_pathexists and original mode was i2i/inpaint/controlnet, the mode andinit_image_pathare restored on the Generate screenApp routing
AppAction::ReplayGeneration(Box<GenerationParams>)variantapp.rsnavigates to Generate screen and calls a newGenerateScreen::apply_replay(params)methodapply_replayoverwritesself.paramsand syncs the rat-widget TextArea state for prompt/negativeConfirm-on-overwrite
OverlayKind::ConfirmfirstTests
apply_replayoverwrites all known params fieldsRon a gallery item with focus on Main results incurrent_screen() == Generateand matching promptOut of scope
References
crates/loom-tui/src/screens/gallery.rs:202(replay_params)crates/loom-tui/src/screens/generate.rs(apply_presetfor similar pattern)