mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1172] [MERGED] Phase 1: AI sprite cleanup runtime discovery #4957
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4957
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1172
Author: @cha1latte
Created: 5/24/2026
Status: ✅ Merged
Merged: 5/24/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-issue-24-ai-runtime📝 Commits (1)
32c82e5Fix refactor sprite cleanup runtime discovery📊 Changes
8 files changed (+283 additions, -22 deletions)
View changed files
➕
src-tauri/resources/background-remover/README.md(+16 -0)📝
src-tauri/src/commands/storage/sprites.rs(+237 -7)📝
src-tauri/src/state.rs(+12 -1)📝
src-tauri/tauri.conf.json(+5 -1)📝
src/features/catalog/characters/components/CharacterEditor.tsx(+4 -4)📝
src/features/catalog/personas/components/PersonaEditor.tsx(+4 -4)📝
src/shared/components/ui/SpriteGenerationModal.tsx(+3 -3)📝
src/shared/types/sprite-capabilities.ts(+2 -2)📄 Description
What?
Phase 1 plumbing for bundled/app-managed AI sprite background cleanup on the refactor branch.
This adds the runtime discovery and status path: sprite cleanup now prefers
resources/background-remover/...packaged runtimes before env vars, app-data.venv, or PATH. Generated and saved sprite cleanup now requestengine: "auto"so an app-managed AI cleanup runtime can be used when one exists, with built-in matte cleanup still available as fallback.Why?
Refs https://github.com/Pasta-Devs/Marinara-Engine-Refactor/issues/24
The refactor code still only discovered externally installed
backgroundremover/Python runtimes, and UI cleanup paths forced built-in cleanup. That meant a packaged AI cleanup runtime would not be used even if a later packaging/runtime phase provided one.Verification
cargo test --manifest-path src-tauri\Cargo.toml background_remover_runtime_testssource: "builtin"pnpm checknode C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonManual verification needed
Follow-up architecture/release decision
This PR does not bundle the actual third-party runtime binary/dependency payload. Phase 2 needs an architecture/release decision: should AI sprite cleanup runtime be app-managed first-run download or bundled into installers?
That decision should cover hosting, checksums/signatures, platform matrix, update cleanup, license/security review, model files, and installer size.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.