mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1524] [Issue]: JSONL chat export/import loses character avatar context #773
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#773
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 @Xelvanis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1524
Originally assigned to: @Promansis on GitHub.
Summary
JSONL chat export/import does not round-trip character identity or avatar context. After importing a JSONL chat transcript, the imported chat has no linked
characterIds, and imported messages havecharacterId: null, so character avatars cannot render for those messages.Expected behavior
If Marinara offers JSONL export/import as a chat round-trip path, it should preserve enough character identity to keep character avatars working after import.
At minimum, the UI should clearly label JSONL export/import as transcript-only if avatars and character links are intentionally unsupported.
Actual behavior
Reported behavior: character avatar images are broken after JSONL export/import.
Current-code audit shows the JSONL export path writes message rows only, while the ST JSONL import path creates a new chat with empty
characterIdsand imports each message withcharacterId: nullandextra: {}.That means the imported transcript has no stable source for character avatars even if the original chat had character cards and avatar paths.
Steps to reproduce
Impact area
Environment
origin/refactorate79891d9Logs, screenshots, or video
Code paths inspected:
src/features/catalog/chats/lib/chat-transcript-export.tssrc/features/catalog/chats/hooks/use-chats.tssrc-tauri/src/commands/storage/imports/bulk_imports.rsRelevant current behavior:
formatChatJsonl(messages)serializes eachMessagerow only.import_st_chat_text(...)creates a chat with defaultcharacterIds: [].characterId: Value::Null,extra: {}, andswipes: [{ content }].character_namefrom JSONL rows intoimportedCharacterName, but does not link an existing character, create a character, or preserve avatar metadata.Regression notes
Unknown. Reported during Roleplay audit on the refactor branch.
Additional context
This may need a product decision:
The native bulk/native chat export format may already be the better full-fidelity path, but the current JSONL UI makes it easy to expect a chat round-trip.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: