feat: workflow presets for bundled pipeline steps#760
Open
mvanhorn wants to merge 1 commit into
Open
Conversation
mvanhorn
requested review from
Map1en,
fffonion,
karrot0,
liksunrice and
mayocream
as code owners
June 8, 2026 06:53
|
Thanks for your first PR to Koharu. Please review our contribution guide before review: In the PR description, include:
If AI helped produce the patch, a human still needs to review and understand it before submission. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds reusable workflow presets that bundle pipeline steps (for example Detect+OCR, or Translate+Render), so a partial pipeline runs in one click instead of relying on the rigid Run All.
Why this matters
This maintainer-authored request (with community votes from RedRain77, Dear-moon, and TenviLi) asks for named step bundles, motivated by VRAM management (running the LLM and inpainting models in separate phases) and reviewability (getting clean inpainted images before translating) (#592). The backend already accepts an arbitrary ordered
steps: string[]inStartPipelineRequest, and the toolbar'srunStephelper already executes arbitrary chains, so this is a frontend-only addition that names and persists bundles.A
workflowPresetsslice is added to the persisted zustandpreferencesStore(mirroring the existingfavoriteFontspattern) withaddWorkflowPreset/removeWorkflowPreset/renameWorkflowPresetactions and two built-in defaults.CanvasToolbar.tsxgets a presets dropdown that composes the corresponding chain pickers and calls the existingrunStepwith the deduped step list, reusinggetConfig()engine-id resolution so no engine ids are hardcoded. A small dialog creates, names, and deletes presets. No Rust, RPC, or generated-schema changes.Changes
workflowPresetsslice + actions inpreferencesStore, persisted, with seeded defaults.CanvasToolbarthat runs the composed step chain.Testing
Refs #592