mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7631] [MERGED] fix(avatars): Make 3D model uses the shared Cancel and background cleanup; Tripo docs under Get a 3D model #7846
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#7846
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/7631
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/tripo-vrm-shared-cancel📝 Commits (4)
8b5e235feat(avatars): VRM models use the shared Cancel and cutout from #7623, and the Tripo docs sit under Get a 3D model (#7620)b0e59f9Merge remote-tracking branch 'origin/staging' into fix/tripo-vrm-shared-cancel08e18acrefactor(avatars): define the VRM model job like the mesh job, so the diff stays smallda8a521test(avatars): clear the keep-alive intervals even when an assertion fails📊 Changes
7 files changed (+113 additions, -63 deletions)
View changed files
📝
docs/agents/avatars.md(+28 -26)📝
e2e/avatar-vrm-generation.e2e.ts(+8 -0)📝
packages/client/src/features/avatars/generation/use-avatar-generation.ts(+13 -11)📝
packages/server/src/routes/avatar-generation.routes.ts(+4 -2)📝
packages/server/src/services/avatars/generation/tripo-vrm.ts(+13 -16)📝
scripts/regressions/avatar-generation-cancel.regression.ts(+4 -1)📝
scripts/regressions/avatar-vrm-generation.regression.ts(+43 -7)📄 Description
Linked issue
No linked issue: requested by the maintainer on 2026-10-14 (follow-up to #7622, which merged before this commit was pushed).
Why this change
stagingnow, so the Tripo maker should use what they added.What changed
POST /api/avatar-generation/cancelwithkind: "vrm", as the PNGTuber and mesh makers do. The VRM job runs onwithAvatarGenerationJob's signal, so either a closed stream or that request stops it waiting for Tripo. As before, a Tripo task that already started may still finish and use its credits; the setup already says so."vrm". Inavatar-generation-cancel.regression.ts, the example of a refused kind was"vrm", which is now a real job kind. It is now"live2d", so the test still proves that unknown kinds are refused. A new check proves that"vrm"is answered ({ cancelled: false }when nothing is running).avatarCutout, the avatars' shared background cleanup from #7623. It uses the configured remover and the built-in cleaner as a fallback. Before, the maker called the flat-background cleaner directly.const job = …; return withAvatarGenerationJob(…, job, options.signal)), so the diff stays small.docs/agents/avatars.md. The section's first paragraph points to it. "With a flat background removed" now reads "with its background removed", because the cleanup is the shared one.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent (results):
node ./scripts/run-regressions.mjs --filter scripts/regressions/avatar-: 16/16 passed.avatar-vrm-generationnow also covers two cases:cancelAvatarGenerationJob(owner, "vrm")stops a run while it waits for Tripo. No more polling happens after that, and the avatar is free again./cancelwithkind: "vrm".avatar-vrm-generationandavatar-generation: 12 passed. The VRM e2e now checks that Cancel sends{ owner, kind: "vrm" }to the server.avatar-setup,avatar-2dandavatar-generationplusavatar-vrm-generation, 57 passed.pnpm check: passed (exit 0).finally). Fixed.9f8d11463), which merged while GitHub's CodeRabbit review was still in progress: 0 findings.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/agents/avatars.mdchanged: the Tripo section moved under Get a 3D model. #7624 already covers translating it; I updated that issue to say where the section now is.UI evidence (if applicable)
None: nothing visible changes.
Summary by CodeRabbit
Bug Fixes
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.