Wire repaint/cover mode controls across UI + simple mode source audio#11
Merged
Wire repaint/cover mode controls across UI + simple mode source audio#11
Conversation
Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add autoswitch for repaint mode model download
Wire repaint and cover modes with SFT model auto-switch and download
Mar 7, 2026
…max constraints Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot
AI
changed the title
Wire repaint and cover modes with SFT model auto-switch and download
Wire repaint/cover mode controls across UI + simple mode source audio
Mar 7, 2026
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.
acestep-cppnow supports bothcoverandrepaintgeneration modes. This PR completes the UI wiring so all required controls are accessible in both simple and custom modes, with automatic SFT model handling for repaint.Backend (
server/src/services/acestep.ts)runViaSpawn: writesrepainting_start/repainting_endintorequest.jsonfor repaint mode; skipsaudio_cover_strength(mask handles isolation)processGeneration: validates repaint requiressourceAudioUrl, fails fast with a clear error otherwiseFrontend (
components/CreatePanel.tsx)Simple mode — new Source Audio card
Previously cover/repaint was only accessible in custom mode. A collapsible Cover / Repaint (optional) card now appears in simple mode with:
openAudioModal/sourceInputRef)Repaint region seekbar overlay (both modes)
When
taskType === 'repaint'and source duration is known, a green translucent overlay shows the[repaintingStart, repaintingEnd]region on the seekbar — visual confirmation of what will be regenerated.Duration-aware repaint inputs (both modes)
Repaint start/end inputs now clamp to audio duration (
max={sourceDuration}) and show a(max M:SS)label hint.SFT model auto-switch
Selecting repaint mode automatically switches
selectedModeltoacestep-v15-sft, checks if the GGUF is on disk via/api/models/status, triggers download if absent (SSE stream tracks completion), and restores the previous model on exit.Helpers extracted
handleClearSourceAudio()— consolidated remove-source logicrenderRepaintRegionOverlay()— shared seekbar overlay, used by both modesi18n (
i18n/translations.ts)Added keys for repaint/cover mode labels, SFT status messages, and range input hints across all four languages (en, zh, ja, ko).
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.