[GH-ISSUE #2160] [Issue]: RisuAI character card import loses greeting, example, system prompt, and alternate greetings #1069

Closed
opened 2026-10-21 05:26:18 +07:00 by bsakaguchi · 0 comments
Owner

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/.png card yields first_mes, mes_example, system_prompt, creator_notes, and alternate_greetings populated from the camelCase source fields, as legacy convertRisuToV2 did.

Actual behavior

A RisuAI card imports with empty first_mes (no opening message), empty mes_example, empty system_prompt, empty creator_notes, and empty alternate_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

  1. Export a character from RisuAI (or obtain a RisuAI-format .json/.png).
  2. Import it on the refactor branch.
  3. The character has no greeting, no example dialogue, no system prompt, and no alternate greetings.

Impact area

  • Catalog resources
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime

Environment

  • Branch or commit: refactor @ 93555d4b
  • Run mode: Tauri desktop
  • OS + version: Windows 11
  • Node + pnpm versions: n/a (static parity audit, main vs refactor)
  • Rust version, if relevant: n/a
  • Remote Runtime URL configured? not relevant

Regression notes

Worked in legacy (main @ c49f1d95). main: packages/server/src/services/import/st-character.importer.ts:307-309,571-589 (normalizeCharacterData routes type==="character" to convertRisuToV2). refactor @ 93555d4b: src-tauri/src/commands/storage/imports/normalization.rs:44-50 unwraps type=="character" into the generic flow, and :153-169 reads only snake_case keys; no RisuAI camelCase mapping exists.

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`/`.png` card yields `first_mes`, `mes_example`, `system_prompt`, `creator_notes`, and `alternate_greetings` populated from the camelCase source fields, as legacy `convertRisuToV2` did. ## Actual behavior A RisuAI card imports with empty `first_mes` (no opening message), empty `mes_example`, empty `system_prompt`, empty `creator_notes`, and empty `alternate_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 1. Export a character from RisuAI (or obtain a RisuAI-format `.json`/`.png`). 2. Import it on the refactor branch. 3. The character has no greeting, no example dialogue, no system prompt, and no alternate greetings. ## Impact area - [x] Catalog resources - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime ## Environment - Branch or commit: refactor @ 93555d4b - Run mode: Tauri desktop - OS + version: Windows 11 - Node + pnpm versions: n/a (static parity audit, main vs refactor) - Rust version, if relevant: n/a - Remote Runtime URL configured? not relevant ## Regression notes Worked in legacy (main @ c49f1d95). main: `packages/server/src/services/import/st-character.importer.ts:307-309,571-589` (normalizeCharacterData routes `type==="character"` to convertRisuToV2). refactor @ 93555d4b: `src-tauri/src/commands/storage/imports/normalization.rs:44-50` unwraps `type=="character"` into the generic flow, and `:153-169` reads only snake_case keys; no RisuAI camelCase mapping exists.
bsakaguchi 2026-10-21 05:26:18 +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#1069
No description provided.