mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2160] [Issue]: RisuAI character card import loses greeting, example, system prompt, and alternate greetings #1069
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#1069
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?
Originally created by @Romuromylus on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2160
Originally assigned to: @cha1latte on GitHub.
Summary
RisuAI character cards store fields in camelCase (
firstMessage,exampleMessage,systemPrompt,creatorNotes,alternateGreetings). The legacy importer had a dedicated RisuAI converter that mapped those onto the V2 schema. The refactor recognizes a RisuAI card and unwraps it, but normalization then reads only snake_case keys, so those fields import empty.Expected behavior
Importing a RisuAI
.json/.pngcard yieldsfirst_mes,mes_example,system_prompt,creator_notes, andalternate_greetingspopulated from the camelCase source fields, as legacyconvertRisuToV2did.Actual behavior
A RisuAI card imports with empty
first_mes(no opening message), emptymes_example, emptysystem_prompt, emptycreator_notes, and emptyalternate_greetings; only name/description/personality/scenario (which share key names) survive. A whole-tree grep finds zero references to the camelCase keys in any refactor import code.Steps to reproduce
.json/.png).Impact area
Environment
93555d4bRegression notes
Worked in legacy (main @
c49f1d95). main:packages/server/src/services/import/st-character.importer.ts:307-309,571-589(normalizeCharacterData routestype==="character"to convertRisuToV2). refactor @93555d4b:src-tauri/src/commands/storage/imports/normalization.rs:44-50unwrapstype=="character"into the generic flow, and:153-169reads only snake_case keys; no RisuAI camelCase mapping exists.