[GH-ISSUE #1276] [Feature]: Import an updated character card in-place onto an existing character (with version history), not only new copies #623

Closed
opened 2026-10-20 17:30:52 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @GetBeholder on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1276

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Marinara Engine has a versioning system for characters, but importing a
character card only ever creates a new copy. There is no way to import an
updated version of a card onto the existing (outdated) character. To update a
character you already use, you import a new copy and then have to reattach it to
every existing chat that involves the original. The reporter wants an
"update in place" import so existing chats automatically pick up the updated
character.

Proposed behavior

  • Allow importing an updated character card onto an existing character (update
    in place), instead of only creating a new copy.
  • Record the update as a new entry in that character's existing version history,
    so the previous version can be reverted to.
  • Existing chats that reference the character receive the imported update
    without needing to reattach a new copy.
  • Lorebooks: the reporter notes lorebooks need this less and do not have a change
    history yet, but an analogous in-place update could still be convenient there
    (lower priority).

Expected owner or impact area

  • App shell, navigation, startup, or providers
  • Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Refactor branch considerations

From a quick scan (triage pointer, not from the reporter): character version
history and in-place updates already exist in the catalog. The Card Evolution
Auditor agent applies field edits to an existing character via useUpdateCharacter
(src/features/catalog/characters/hooks/use-characters.ts) with versionSource
/ versionReason and a character_version bump (see CharacterCardUpdateModal.tsx
and bumpCharacterVersion). So this request is largely about wiring the
character-card import flow into that existing update-in-place + versioning path
(e.g. a versionSource: "import" entry on the target character) rather than
always creating a new copy, plus a UI affordance to choose "update existing
character" vs "import as new." Keep import/versioning logic in the
catalog/engine layers rather than mode components.

Alternatives considered

Not explicitly stated by the reporter. The current behavior — import a new copy
and then reattach it to all existing chats — is the pain point being avoided.

Additional context

Source: forum request by The Lord of the Backdoor [MANA] (3-Star), ~5:29-5:31 PM
yesterday. A maintainer (Sunny | Beyond, Manager) responded: "Will consider this
for, or shortly after the rework and see what is possible. I do agree it would be
useful." This request already has positive maintainer acknowledgment and is
tentatively associated with the ongoing rework.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @GetBeholder on GitHub (May 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1276 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Marinara Engine has a versioning system for characters, but importing a character card only ever creates a *new copy*. There is no way to import an updated version of a card onto the existing (outdated) character. To update a character you already use, you import a new copy and then have to reattach it to every existing chat that involves the original. The reporter wants an "update in place" import so existing chats automatically pick up the updated character. ## Proposed behavior - Allow importing an updated character card onto an existing character (update in place), instead of only creating a new copy. - Record the update as a new entry in that character's existing version history, so the previous version can be reverted to. - Existing chats that reference the character receive the imported update without needing to reattach a new copy. - Lorebooks: the reporter notes lorebooks need this less and do not have a change history yet, but an analogous in-place update could still be convenient there (lower priority). ## Expected owner or impact area - [ ] App shell, navigation, startup, or providers - [x] Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Refactor branch considerations From a quick scan (triage pointer, not from the reporter): character version history and in-place updates already exist in the catalog. The Card Evolution Auditor agent applies field edits to an existing character via `useUpdateCharacter` (`src/features/catalog/characters/hooks/use-characters.ts`) with `versionSource` / `versionReason` and a `character_version` bump (see `CharacterCardUpdateModal.tsx` and `bumpCharacterVersion`). So this request is largely about wiring the character-card *import* flow into that existing update-in-place + versioning path (e.g. a `versionSource: "import"` entry on the target character) rather than always creating a new copy, plus a UI affordance to choose "update existing character" vs "import as new." Keep import/versioning logic in the catalog/engine layers rather than mode components. ## Alternatives considered Not explicitly stated by the reporter. The current behavior — import a new copy and then reattach it to all existing chats — is the pain point being avoided. ## Additional context Source: forum request by The Lord of the Backdoor [MANA] (3-Star), ~5:29-5:31 PM yesterday. A maintainer (Sunny | Beyond, Manager) responded: "Will consider this for, or shortly after the rework and see what is possible. I do agree it would be useful." This request already has positive maintainer acknowledgment and is tentatively associated with the ongoing rework. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@cha1latte commented on GitHub (May 26, 2026):

Triage note: labeling this as scope-risk because in-place card imports are aligned with the existing character version-history system, but the issue touches import flow, target selection, version history, existing chat references, and potentially lorebook follow-up behavior.

The least risky next step is to scope the first slice to character-card imports onto an explicitly selected existing character, with lorebook in-place updates tracked separately.

<!-- gh-comment-id:4547265415 --> @cha1latte commented on GitHub (May 26, 2026): Triage note: labeling this as `scope-risk` because in-place card imports are aligned with the existing character version-history system, but the issue touches import flow, target selection, version history, existing chat references, and potentially lorebook follow-up behavior. The least risky next step is to scope the first slice to character-card imports onto an explicitly selected existing character, with lorebook in-place updates tracked separately.
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

Okay, we'll allow such imports.

<!-- gh-comment-id:4555999905 --> @SpicyMarinara commented on GitHub (May 27, 2026): Okay, we'll allow such imports.
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

Implemented on refactor in 981971c1: character import now supports updating one selected existing character in place, snapshots the previous card into version history, and keeps existing chat references intact. Validation: pnpm check and pnpm lint.

<!-- gh-comment-id:4556349983 --> @SpicyMarinara commented on GitHub (May 27, 2026): Implemented on refactor in 981971c1: character import now supports updating one selected existing character in place, snapshots the previous card into version history, and keeps existing chat references intact. Validation: pnpm check and pnpm lint.
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#623
No description provided.