mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2239] [MERGED] Fix RisuAI card camelCase imports #5501
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#5501
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/2239
Author: @cha1latte
Created: 6/4/2026
Status: ✅ Merged
Merged: 6/5/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-2160-risuai-card-fields📝 Commits (1)
55a5779Fix RisuAI character card imports📊 Changes
2 files changed (+102 additions, -5 deletions)
View changed files
📝
src-tauri/src/commands/storage/imports/normalization.rs(+5 -5)📝
src-tauri/src/commands/storage/imports/service_tests.rs(+97 -0)📄 Description
Linked issue
Closes #2160
Why this change
type: characterpayloads but only read the canonical snake_case V2 keys afterward, so greeting, examples, system prompt, creator notes, and alternate greetings imported empty.What changed
firstMessage,exampleMessage,systemPrompt,creatorNotes, andalternateGreetingsduring character import normalization.import_st_character.Refactor impact
Primary owner:
Rust storage/imports
Impact areas reviewed:
type: characterJSON payloadschara_card_v2snake_case payloadsBoundary notes:
src-tauriimport normalization and does not touch React UI, engine prompt assembly, shared API wrappers, dependencies, schema, auth, storage migrations, or release metadata.Pressure points touched:
src-tauri/src/commands/storage/imports/normalization.rssrc-tauri/src/commands/storage/imports/service_tests.rsValidation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
first_mesimported as empty from RisuAIfirstMessage.cargo test --manifest-path src-tauri\Cargo.toml import_st_character_maps_risuai_camel_case_fields -- --nocapturepassed after the fix.pnpm checkpassed after the final diff.scratch/bugfix-verification.json.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A: non-UI Rust import-normalization bug. Evidence is the before/after focused Rust regression and passing
pnpm check.Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.