mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8448] [MERGED] fix: preserve colored detail in sprite background cleanup #8609
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#8609
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/8448
Author: @SpicyMarinara
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/preserve-cutout-feathers📝 Commits (3)
4de6893chore: start foreground-preserving sprite cleanup (#8447)1245573fix: preserve sprite foreground details during chroma cleanup (#8447)8163d89fix: preserve opaque sprite texture during cleanup📊 Changes
3 files changed (+211 additions, -4 deletions)
View changed files
📝
packages/server/src/routes/sprites.routes.ts(+3 -0)📝
packages/server/src/services/image/sprite-background.service.ts(+23 -4)📝
scripts/regressions/sprite-background.regression.ts(+185 -0)📄 Description
Linked issue
Closes #8447
Why this change
Builtin sprite cleanup can erase thin blue/gold ribbons and fade opaque nearby shades because it mistakes their color for green spill or a matte blend. This patch fixes those reproduced pixel cases and exposes a cleanup revision so a package can refresh its cached derivatives from the original source.
The paired Otome Hearth screenshots show missing ribbons, but the exact original image and engine used on that installation were not replayed. This PR does not claim the screenshots prove which cleanup path ran.
What changed
cleanupRevision: 2to/api/sprites/cleanup/statusand/api/sprites/cleanup, preserving existing request/cell fields and engine selection.Otome cache refresh is coordinated in Marinara-Agents#1849: after revision 2 is advertised it explicitly requests
builtin, rebuilds from the raw source, and saves the actual response revision only after the derivative is stored. Engine auto/AI precedence is unchanged.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks on
8163d89b6fefa2beb5427f670d61497cd9f40ed9:pnpm installandpnpm checkpassed. The existingHomeProfessorMariChat.tsxserverRunhook dependency warning remains.node scripts/run-regressions.mjs --filter scripts/regressions/sprite-background.regression.ts: 1/1 passed (591 ms), including real Fastify status/cleanup injection with existing input shape and corrected output pixels..tmp/cutout-*before*.log. Existing green-background, dark-halo, enclosed-key-pocket, partial-alpha, white-background and style-profile controls were retained.12455735completed with 0 findings across the two repair files.cellsand tolerates the optional metadata.Human follow-up:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedNo release or storage format metadata changed. The cleanup revision is optional response metadata for derived-asset caches, separate from the application version. The existing user-facing cleanup controls and guide contract remain applicable.
UI evidence (if applicable)
Synthetic pixel artifacts and exact metrics.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.