[PR #7832] [MERGED] feat(avatars): remove one-click Tripo generation for now #7954

Closed
opened 2026-10-24 04:09:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7832
Author: @SpicyMarinara
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/remove-tripo-generation


📝 Commits (2)

  • eb9b8bd feat(avatars): remove one-click Tripo generation for now
  • 839c7ec Merge remote-tracking branch 'origin/staging' into feat/remove-tripo-generation

📊 Changes

26 files changed (+465 additions, -3946 deletions)

View changed files

📝 docs/agents/avatars.md (+2 -28)
📝 docs/data/clearing-data.md (+1 -1)
➖ e2e/avatar-vrm-generation.e2e.ts (+0 -485)
➕ e2e/avatar-vrm-tripo-removed.e2e.ts (+179 -0)
📝 e2e/avatar-vrm.e2e.ts (+5 -4)
📝 packages/client/src/features/avatars/generation/MeshAvatarSection.tsx (+1 -1)
📝 packages/client/src/features/avatars/generation/use-avatar-generation.ts (+2 -151)
➖ packages/client/src/features/avatars/renderers/vrm/VrmModelMaker.tsx (+0 -374)
📝 packages/client/src/features/avatars/renderers/vrm/VrmSetupPanel.tsx (+15 -19)
📝 packages/client/src/localization/locales/en.json (+1 -34)
📝 packages/server/src/routes/avatar-generation.routes.ts (+13 -94)
➖ packages/server/src/services/avatars/cutouts.ts (+0 -42)
📝 packages/server/src/services/avatars/generation/generation-context.ts (+4 -14)
➖ packages/server/src/services/avatars/generation/glb-to-vrm.ts (+0 -602)
➖ packages/server/src/services/avatars/generation/tripo-client.ts (+0 -333)
📝 packages/server/src/services/avatars/generation/tripo-key.ts (+8 -10)
➖ packages/server/src/services/avatars/generation/tripo-vrm.ts (+0 -335)
📝 packages/shared/src/schemas/avatars.schema.ts (+0 -9)
📝 packages/shared/src/types/avatars.ts (+0 -44)
📝 scripts/regressions/avatar-backgrounds.regression.ts (+3 -69)

...and 6 more files

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

No linked issue. This follows a maintainer decision (@SpicyMarinara, 2026-10-19) to take one-click Tripo generation out of this release.

Why this change

Models made with Tripo have no face rig: no blendshapes and no jaw. Their mouth can't move. Painted-mouth workarounds looked bad and were rejected, and research found no way to add a real face rig today. So the one-click generator is withdrawn until a real face rig is possible.

3D Avatars still ships for imported VRM models, which talk and blink. The main way to get one is now VRoid Studio, then Import VRM.

What changed

  • 3D Avatars page: the Tripo maker, the Tripo API key field and its help link are gone. Get a 3D model now says "Make one in VRoid Studio, then add it with Import VRM above." When a model is already saved, it names Replace model instead. Read the guide and Copy prompt stay.
  • Server: I removed the routes for the Tripo key (GET/PUT/DELETE /tripo-key), the balance (GET /vrm-model/balance) and model generation (POST /vrm-model), so they now answer 404. The Tripo client, the generation run, the GLB to VRM converter and the sprite cut-out used only for Tripo are deleted too, so no code can call Tripo. "vrm" is no longer a Cancel job kind. I chose deleting over a disabled flag: there is no dead code left to maintain, nothing can switch the calls back on by accident, and git history (a revert of this PR) brings it all back once a face rig is possible.
  • Existing data is kept:
    • A Tripo key that is already stored stays in app settings, untouched. Nothing shows it, uses it or sends it anywhere. It is never logged or exported, and Clear data → Connections still removes it.
    • The boot migration for old Tripo connections from staging also stays, so it never loses a key.
    • Models made earlier load and animate their body exactly as before, with the label "Body only, the face doesn't move."
  • Shared: removed the VRM model request, progress and draft types, the request schema, and the Tripo URL and credit constants.
  • Cleanup: removed 34 avatars.vrm.make.* keys and avatars.vrm.getModel.makeDescription, and added avatars.vrm.getModel.vroid. Removed the Tripo hooks from use-avatar-generation.ts. Two helpers that were only split or exported for Tripo are back to their earlier form (readAvatarSourceSprite, preferredMeshSource).
  • Docs:
    • docs/agents/avatars.md no longer has the Tripo section, and the 3D section points to VRoid Studio and Import VRM. One line says models made earlier with Tripo still load, body only.
    • docs/data/clearing-data.md now says the Tripo key removed by Connections is one "saved earlier".
  • Tests:
    • Removed, because the feature is gone: the e2e that drove the Tripo maker (avatar-vrm-generation.e2e.ts), the generator regression's Tripo client, converter, run and key-route checks, and the Tripo-only cut-out checks in avatar-backgrounds.
    • New regression, avatar-vrm-tripo-removed:
      • The Tripo routes answer 404.
      • No client, server or shared source names Tripo's addresses or those routes.
      • A stored key is left untouched and is never logged or exported, and Clear data's Connections scope still removes it.
      • The checks for the old Tripo-connection migration are kept.
      • A Tripo-made model still imports as body only.
    • New e2e, avatar-vrm-tripo-removed:
      • 3D Avatars offers Import VRM, the VRoid Studio pointer, the guide and Copy prompt.
      • It has no Tripo maker or key field, and the page never calls a Tripo route.
      • A Tripo-made model imported through the real server shows as body only.
      • "Connections no longer offers Tripo" moved here unchanged.
    • Updated: in avatar-generation-cancel, "vrm" is now refused as a Cancel kind.
    • Fixture: the Tripo-made model is now a committed fixture, scripts/regressions/fixtures/tripo-made-avatar.vrm (9 KB). The removed converter wrote it once from the same synthetic model the tests built before, byte for byte. avatar-vrm.regression.ts and avatar-vrm.e2e.ts still check that it keeps its colours under the CSP and moves with no idle animation.

Overlap with #7821 (docs catch-up, still open): it also edits the Tripo paragraphs in avatars.md, and adds "such as one made with Tripo" to the 3D motion paragraph. Whichever PR lands second should drop #7821's edits to the removed Tripo section. The added motion sentence can stay, since earlier Tripo models still sway and nod.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

What the agent ran:

  • pnpm check passed on the feature commit (eb9b8bd0a). The later merge of origin/staging was clean and touched only unrelated multiplayer files.
  • pnpm build:shared && node ./scripts/run-regressions.mjs --filter avatar: 18/18 passed.
  • Avatar e2e on desktop-chromium and mobile-chromium (avatar-setup, avatar-vrm, avatar-vrm-tripo-removed, avatar-2d, avatar-generation, avatar-preview): all passed.
    • One fix came out of this run. The new docs pointer first contained the text "Get a 3D model" above that heading, so Read the guide scrolled to the pointer instead of the heading. The pointer was reworded, and the guide test now passes on both projects.
  • Local CodeRabbit was not run for this PR.

Manual verification notes

To check by hand:

  • Open Agents → 3D Avatars, pick a character with no model: Get a 3D model shows the VRoid Studio line naming Import VRM, plus Read the guide and Copy prompt. No Tripo key field or Make 3D model button.
  • Pick a character that has a model: the same line names Replace model.
  • Read the guide opens the guide at Get a 3D model, and the 3D section reads well without the Tripo part.
  • On an install that already has a Tripo-made model: it still loads in the preview and in a Roleplay chat, sways, breathes and nods while talking, and shows "Body only, the face doesn't move."
  • On an install with a saved Tripo key: the key is never shown, and the app makes no request to Tripo (watch the network tab and server log while using 3D Avatars).
  • Phone width: the Get a 3D model section wraps cleanly, in light and dark mode.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

Docs changed: docs/agents/avatars.md, docs/data/clearing-data.md. The [docs-i18n] follow-up for the translated packs is #7831.

UI evidence (if applicable)

The e2e saves screenshots: vrm-get-model.png (the new Get a 3D model section) and vrm-tripo-made-model.png (a Tripo-made model in setup, body only).

Summary by CodeRabbit

  • Changes
    • Removed one-click Tripo avatar generation. The 3D Avatars guide now directs users to create models with VRoid Studio and import them.
    • Previously created Tripo VRM models can still be imported and used for body movement, but facial expressions do not animate.
    • Tripo is no longer available as a Connections provider. Clearing Connections also removes the saved Tripo API key.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/7832 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/remove-tripo-generation` --- ### 📝 Commits (2) - [`eb9b8bd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/eb9b8bd0a496503dd7b0151bc7f03520c9741005) feat(avatars): remove one-click Tripo generation for now - [`839c7ec`](https://github.com/Pasta-Devs/Marinara-Engine/commit/839c7ecbc5dd18d5eb7b6e2e73c98778cff843a7) Merge remote-tracking branch 'origin/staging' into feat/remove-tripo-generation ### 📊 Changes **26 files changed** (+465 additions, -3946 deletions) <details> <summary>View changed files</summary> 📝 `docs/agents/avatars.md` (+2 -28) 📝 `docs/data/clearing-data.md` (+1 -1) ➖ `e2e/avatar-vrm-generation.e2e.ts` (+0 -485) ➕ `e2e/avatar-vrm-tripo-removed.e2e.ts` (+179 -0) 📝 `e2e/avatar-vrm.e2e.ts` (+5 -4) 📝 `packages/client/src/features/avatars/generation/MeshAvatarSection.tsx` (+1 -1) 📝 `packages/client/src/features/avatars/generation/use-avatar-generation.ts` (+2 -151) ➖ `packages/client/src/features/avatars/renderers/vrm/VrmModelMaker.tsx` (+0 -374) 📝 `packages/client/src/features/avatars/renderers/vrm/VrmSetupPanel.tsx` (+15 -19) 📝 `packages/client/src/localization/locales/en.json` (+1 -34) 📝 `packages/server/src/routes/avatar-generation.routes.ts` (+13 -94) ➖ `packages/server/src/services/avatars/cutouts.ts` (+0 -42) 📝 `packages/server/src/services/avatars/generation/generation-context.ts` (+4 -14) ➖ `packages/server/src/services/avatars/generation/glb-to-vrm.ts` (+0 -602) ➖ `packages/server/src/services/avatars/generation/tripo-client.ts` (+0 -333) 📝 `packages/server/src/services/avatars/generation/tripo-key.ts` (+8 -10) ➖ `packages/server/src/services/avatars/generation/tripo-vrm.ts` (+0 -335) 📝 `packages/shared/src/schemas/avatars.schema.ts` (+0 -9) 📝 `packages/shared/src/types/avatars.ts` (+0 -44) 📝 `scripts/regressions/avatar-backgrounds.regression.ts` (+3 -69) _...and 6 more files_ </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue No linked issue. This follows a maintainer decision (@SpicyMarinara, 2026-10-19) to take one-click Tripo generation out of this release. ## Why this change Models made with Tripo have no face rig: no blendshapes and no jaw. Their mouth can't move. Painted-mouth workarounds looked bad and were rejected, and research found no way to add a real face rig today. So the one-click generator is withdrawn until a real face rig is possible. 3D Avatars still ships for imported VRM models, which talk and blink. The main way to get one is now VRoid Studio, then **Import VRM**. ## What changed - **3D Avatars page:** the Tripo maker, the Tripo API key field and its help link are gone. **Get a 3D model** now says "Make one in VRoid Studio, then add it with Import VRM above." When a model is already saved, it names **Replace model** instead. **Read the guide** and **Copy prompt** stay. - **Server:** I removed the routes for the Tripo key (`GET`/`PUT`/`DELETE /tripo-key`), the balance (`GET /vrm-model/balance`) and model generation (`POST /vrm-model`), so they now answer 404. The Tripo client, the generation run, the GLB to VRM converter and the sprite cut-out used only for Tripo are deleted too, so no code can call Tripo. `"vrm"` is no longer a Cancel job kind. I chose deleting over a disabled flag: there is no dead code left to maintain, nothing can switch the calls back on by accident, and git history (a revert of this PR) brings it all back once a face rig is possible. - **Existing data is kept:** - A Tripo key that is already stored stays in app settings, untouched. Nothing shows it, uses it or sends it anywhere. It is never logged or exported, and Clear data → **Connections** still removes it. - The boot migration for old Tripo connections from staging also stays, so it never loses a key. - Models made earlier load and animate their body exactly as before, with the label "Body only, the face doesn't move." - **Shared:** removed the VRM model request, progress and draft types, the request schema, and the Tripo URL and credit constants. - **Cleanup:** removed 34 `avatars.vrm.make.*` keys and `avatars.vrm.getModel.makeDescription`, and added `avatars.vrm.getModel.vroid`. Removed the Tripo hooks from `use-avatar-generation.ts`. Two helpers that were only split or exported for Tripo are back to their earlier form (`readAvatarSourceSprite`, `preferredMeshSource`). - **Docs:** - `docs/agents/avatars.md` no longer has the Tripo section, and the 3D section points to VRoid Studio and Import VRM. One line says models made earlier with Tripo still load, body only. - `docs/data/clearing-data.md` now says the Tripo key removed by Connections is one "saved earlier". - **Tests:** - **Removed, because the feature is gone:** the e2e that drove the Tripo maker (`avatar-vrm-generation.e2e.ts`), the generator regression's Tripo client, converter, run and key-route checks, and the Tripo-only cut-out checks in `avatar-backgrounds`. - **New regression, `avatar-vrm-tripo-removed`:** - The Tripo routes answer 404. - No client, server or shared source names Tripo's addresses or those routes. - A stored key is left untouched and is never logged or exported, and Clear data's Connections scope still removes it. - The checks for the old Tripo-connection migration are kept. - A Tripo-made model still imports as body only. - **New e2e, `avatar-vrm-tripo-removed`:** - 3D Avatars offers Import VRM, the VRoid Studio pointer, the guide and Copy prompt. - It has no Tripo maker or key field, and the page never calls a Tripo route. - A Tripo-made model imported through the real server shows as body only. - "Connections no longer offers Tripo" moved here unchanged. - **Updated:** in `avatar-generation-cancel`, `"vrm"` is now refused as a Cancel kind. - **Fixture:** the Tripo-made model is now a committed fixture, `scripts/regressions/fixtures/tripo-made-avatar.vrm` (9 KB). The removed converter wrote it once from the same synthetic model the tests built before, byte for byte. `avatar-vrm.regression.ts` and `avatar-vrm.e2e.ts` still check that it keeps its colours under the CSP and moves with no idle animation. **Overlap with #7821** (docs catch-up, still open): it also edits the Tripo paragraphs in `avatars.md`, and adds "such as one made with Tripo" to the 3D motion paragraph. Whichever PR lands second should drop #7821's edits to the removed Tripo section. The added motion sentence can stay, since earlier Tripo models still sway and nod. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` What the agent ran: - `pnpm check` passed on the feature commit (eb9b8bd0a). The later merge of `origin/staging` was clean and touched only unrelated multiplayer files. - `pnpm build:shared && node ./scripts/run-regressions.mjs --filter avatar`: 18/18 passed. - Avatar e2e on desktop-chromium and mobile-chromium (`avatar-setup`, `avatar-vrm`, `avatar-vrm-tripo-removed`, `avatar-2d`, `avatar-generation`, `avatar-preview`): all passed. - One fix came out of this run. The new docs pointer first contained the text "Get a 3D model" above that heading, so **Read the guide** scrolled to the pointer instead of the heading. The pointer was reworded, and the guide test now passes on both projects. - Local CodeRabbit was not run for this PR. ### Manual verification notes To check by hand: - [ ] Open **Agents → 3D Avatars**, pick a character with no model: **Get a 3D model** shows the VRoid Studio line naming **Import VRM**, plus **Read the guide** and **Copy prompt**. No Tripo key field or **Make 3D model** button. - [ ] Pick a character that has a model: the same line names **Replace model**. - [ ] **Read the guide** opens the guide at **Get a 3D model**, and the 3D section reads well without the Tripo part. - [ ] On an install that already has a Tripo-made model: it still loads in the preview and in a Roleplay chat, sways, breathes and nods while talking, and shows "Body only, the face doesn't move." - [ ] On an install with a saved Tripo key: the key is never shown, and the app makes no request to Tripo (watch the network tab and server log while using 3D Avatars). - [ ] Phone width: the **Get a 3D model** section wraps cleanly, in light and dark mode. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) Docs changed: `docs/agents/avatars.md`, `docs/data/clearing-data.md`. The `[docs-i18n]` follow-up for the translated packs is #7831. ## UI evidence (if applicable) The e2e saves screenshots: `vrm-get-model.png` (the new **Get a 3D model** section) and `vrm-tripo-made-model.png` (a Tripo-made model in setup, body only). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Changes** * Removed one-click Tripo avatar generation. The 3D Avatars guide now directs users to create models with VRoid Studio and import them. * Previously created Tripo VRM models can still be imported and used for body movement, but facial expressions do not animate. * Tripo is no longer available as a Connections provider. Clearing Connections also removes the saved Tripo API key. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:09:08 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7954
No description provided.