mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7633] [MERGED] fix(avatars): set up Tripo on the 3D Avatars page instead of Connections #7848
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#7848
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/7633
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/tripo-on-3d-avatars-page📝 Commits (3)
9f05fbcfix(avatars): set up Tripo on the 3D Avatars page instead of Connections78a0b5aMerge branch 'staging' into fix/tripo-on-3d-avatars-page3658db8Merge branch 'staging' into fix/tripo-on-3d-avatars-page📊 Changes
25 files changed (+505 additions, -333 deletions)
View changed files
📝
docs/agents/avatars.md(+5 -5)📝
docs/connections/providers-reference.md(+0 -8)📝
e2e/avatar-vrm-generation.e2e.ts(+77 -60)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+9 -33)📝
packages/client/src/components/panels/ConnectionsPanel.tsx(+1 -4)📝
packages/client/src/features/avatars/generation/use-avatar-generation.ts(+36 -10)📝
packages/client/src/features/avatars/renderers/vrm/VrmModelMaker.tsx(+90 -72)📝
packages/client/src/localization/locales/en.json(+10 -6)📝
packages/server/src/app.ts(+6 -0)📝
packages/server/src/db/schema/connections.ts(+0 -1)📝
packages/server/src/routes/avatar-generation.routes.ts(+34 -4)📝
packages/server/src/routes/backup.routes.ts(+5 -0)📝
packages/server/src/routes/connections.routes.ts(+0 -21)📝
packages/server/src/services/avatars/generation/tripo-client.ts(+1 -1)➕
packages/server/src/services/avatars/generation/tripo-key.ts(+61 -0)📝
packages/server/src/services/avatars/generation/tripo-vrm.ts(+12 -21)📝
packages/server/src/services/llm/provider-registry.ts(+0 -2)📝
packages/server/src/services/storage/connections.storage.ts(+3 -4)📝
packages/shared/src/constants/model-lists.ts(+0 -1)📝
packages/shared/src/constants/providers.ts(+2 -22)...and 5 more files
📄 Description
Linked issue
No linked issue: requested by the maintainer on 2026-10-14.
Follows #7622 and #7631 (Make 3D model with Tripo), which are on
stagingonly and were never released.Why this change
What changed
3D Avatars page (Make 3D model with Tripo)
https://developers.tripo3d.ai/en/keys. The link opens in a new tab withrel="noopener noreferrer".Server
tripoApiKey), encrypted withencryptApiKey, the same way the Music DJ's YouTube key is stored. The new code is inservices/avatars/generation/tripo-key.ts./api/avatar-generation:GET /tripo-keyreturns only{ saved }. It never returns the key or any part of it.PUT /tripo-keytakes{ apiKey }. The key is trimmed and must be 1–512 printable characters with no spaces or line breaks. Otherwise the answer is a plain 400: "That doesn't look like a Tripo API key."DELETE /tripo-keyremoves the key.GET /vrm-model/balanceandPOST /vrm-modeluse the saved key.connectionIdis gone from both, and fromAvatarVrmModelRequestand its schema./api/app-settings/:keyroute has an allowlist, so it never servestripoApiKey.tripoApiKeyrow out. Before this change, the key was a connection key, and exports already blank those, so the key still never leaves the install in an export.Tripo removed from Connections
"tripo"is removed fromAPIProvider,apiProviderSchema,PROVIDERS,MODEL_LISTS,NON_CHAT_PROVIDERSand the DB enum."tripo"default category andcreateLLMProvider's Tripo refusalFieldGroup'shiddenprop, which only Tripo used)connections.tripo.*strings and twoavatars.vrm.make.*stringsconnections.routes.tsandproviders-reference.mdare back to their state before #7622.isChatProvider()stays, without Tripo.Boot migration for staging testers (
migrateTripoConnectionsToApiKey, in theapp.tschain after the TTS migration)"tripo", it works like this:connections.remove. That call also clears the agent and chat settings that pointed to those connections. Their default flags go with the rows.Docs
docs/agents/avatars.md: the Tripo steps now say to sign in at Tripo, create a key on Tripo's key page, then paste it into Tripo API key under Get a 3D model and select Save (Get a key, Remove). The bad-key line and the "What is sent" sentence about the key were updated. The 2D cut-out paragraphs are unchanged.docs/connections/providers-reference.md: the Tripo section and the related-guide link that #7622 added are removed.Tests changed because the decision was reversed
Mari reversed the Tripo-in-Connections decision on 2026-10-14. These existing checks described that decision, so they now check the new behaviour:
avatar-vrm-generation.regression.ts:tripois not a provider, which the schema andcreateConnectionSchemaalso refuse.e2e/avatar-vrm-generation.e2e.ts:connectionIdin the request body is now checked to be absent./tripo-keyroute, not a Tripo connection.New proof
Bearerheader on every API call.GET /tripo-keyanswers exactly{"saved":true}, and no part of the key appears in any answer.tripoApiKeyrow.targetandrel{"saved":true}and clears the fieldPOST /api/connectionswithprovider: "tripo"is a 400.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent (results):
npx tsc --noEmit -p .inpackages/serverandpackages/client(afterpnpm --filter @marinara-engine/shared build): both exit 0.pnpm check:e2e-types: passed.pnpm localization:check: passed.npx eslinton the four changed client files: exit 0.node scripts/run-regressions.mjs --filter avatar: 17/17 passed.node scripts/run-regressions.mjs --filter <name>, all passed:connection6/6,provider6/6,profile-import3/3,backup4/4agent-activation2/2,decision16/16,command-center1/1,open-issues1/1,tts7/7pnpm check: exit 0.e2e/avatar-vrm-generation.e2e.ts, on--project=desktop-chromium --project=mobile-chromium(on separate ports): 6 passed.saveTripoApiKey→tripoBalance, so the key was saved encrypted and then read back.balance=650 cost=60.stagingwas merged into this branch (78a0b5a88, which brings #7627's default embedding connection), these were rerun:tscruns: exit 0--filter avatar17/17,--filter connection7/7,--filter embedding3/3avatar-vrm-generationspec on desktop-chromium and mobile-chromium: 6 passedcoderabbit review --agent --committed --base-commit $(git merge-base HEAD origin/staging)): 1 finding, minor. It asked for a docs-i18n follow-up fordocs/agents/avatars.md, which is #7634; the CLI doesn't see the PR body. No code 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.mdanddocs/connections/providers-reference.mdchanged. The translated packs have neither #7622's Tripo sections nor these changes. Follow-up issue: #7634 (translate the Tripo subsection ofavatars.mdin every pack;providers-reference.mdneeds nothing).UI evidence (if applicable)
The Playwright run saves
tripo-key-empty.png,vrm-model-draft.pngandvrm-model-saved.pngin its output folder. They are not attached here.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.