mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1735] [MERGED] Fix character import wrong-entity validation #5246
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#5246
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/1735
Author: @cha1latte
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1699-character-import-entity-type📝 Commits (5)
2dff1aeFix character import wrong-entity validation7aa6856Address import validation clippy82ccc9eFix AgentEditor test hook mock1e7eeafClean up unused code check4228ca7Merge remote-tracking branch 'upstream/refactor' into fix/issue-1699-character-import-entity-type📊 Changes
3 files changed (+152 additions, -3 deletions)
View changed files
📝
knip.json(+1 -0)📝
src-tauri/src/commands/storage/imports/payloads.rs(+55 -3)📝
src-tauri/src/commands/storage/imports/service_tests.rs(+96 -0)📄 Description
Linked issue
Closes #1699
Why this change
What changed
entriesbut no explicit character card marker or character-specific fields.world-info.jsonfails, no extra blank character is created, and the same lorebook payload still imports through the lorebook route.Refactor impact
Primary owner:
Rust storage/imports
Impact areas reviewed:
import_st_character_batchimport_st_lorebookowner routeBoundary notes:
src-tauriimport validation and does not touch React UI, engine code, shared API wrappers, storage schemas, or dependency declarations.Pressure points touched:
src-tauri/src/commands/storage/imports/payloads.rssrc-tauri/src/commands/storage/imports/service_tests.rsValidation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyCodex-run proof:
world-info.jsonreturnedsuccess: truethroughimport_st_character_batch.$env:CARGO_TARGET_DIR='C:\tmp\Marinara-Engine-issue-1699\scratch\target-issue-1699'; cargo test --manifest-path src-tauri/Cargo.toml import_st_character_batch_rejects_wrong_route_lorebook_jsonpassed.$env:CARGO_TARGET_DIR='C:\tmp\Marinara-Engine-issue-1699\scratch\target-issue-1699'; cargo check --manifest-path src-tauri/Cargo.toml --workspacepassed.$env:CARGO_TARGET_DIR='C:\tmp\Marinara-Engine-issue-1699\scratch\target-issue-1699'; cargo clippy --manifest-path src-tauri/Cargo.toml --workspace --all-targets -- -D warningspassed after the CI clippy redundant-closure finding was fixed.pnpm exec vitest run src/features/catalog/agents/components/AgentEditor.test.tsxpassed after fixing the CI-blocking test mock.pnpm testpassed locally after merging currentupstream/refactor: 25 test files, 92 tests.pnpm check:unusedpassed after cleaning up the refactor-baseline unused export/file findings.pnpm typecheckpassed.pnpm check:architecturepassed.pnpm buildpassed; Vite emitted the existing CSS/chunk-size warnings.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpassed.Manual verification notes
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs or release files were changed.
UI evidence
N/A: backend import validation; no visible UI/browser state is the claim.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.