mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2308] [Issue]: 09-CHAT-COMPAT-chat-file-import-export-profile exports incompatible chat files #1140
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#1140
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 @Promansis on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2308
Originally assigned to: @Promansis on GitHub.
Summary
09-CHAT-COMPAT-chat-file-import-export-profileparityscan found that chat transcript export/import/profile is not fully compatible with legacy chat-file workflows. Refactor JSONL/text export no longer emits legacy ST-compatible transcript shape, and the new sidebar Native JSON chat-bulk export has no matching import path.Expected behavior
Legacy-compatible chat export should preserve the user workflow from v1.6.1:
name,is_user,is_system,mes, andsend_date.Actual behavior
Refactor keeps the UI affordances for JSONL/text export and JSONL import-as-branch, and
import_st_chat_into_groupstill preserves branch/group behavior.However, refactor JSONL export writes raw Marinara message objects, not the legacy/ST-compatible transcript header and message rows. Refactor text export is also reduced to role/content lines. The sidebar also offers
Native JSONfor selected chats and writes aformat: "marinara-chat-bulk"file, but no importer formarinara-chat-bulkwas found.Steps to reproduce
/chats/:id/export?format=jsonland/chats/export/bulkbehavior, then try to find/import the Native JSON chat-bulk format in the current import surfaces.Impact area
Environment
Logs, screenshots, or video
No runtime logs. Static proof:
main:packages/server/src/routes/chats.routes.ts:2034,main:packages/server/src/routes/chats.routes.ts:2082,main:packages/server/src/routes/chats.routes.ts:2127main:packages/server/src/routes/import.routes.ts:478,main:packages/server/src/routes/import.routes.ts:494,main:packages/server/src/routes/import.routes.ts:541src/features/modes/shared/chat-ui/components/ChatFilesDrawer.tsx:50,src/features/modes/shared/chat-ui/components/ChatFilesDrawer.tsx:155,src/features/modes/shared/chat-ui/components/ChatFilesDrawer.tsx:230src/shared/api/import-api.ts:96,src-tauri/src/commands/storage/imports/bulk_imports.rs:1031src/features/catalog/chats/hooks/use-chats.ts:1059,src/features/catalog/chats/lib/chat-transcript-export.ts:23,src/features/catalog/chats/lib/chat-transcript-export.ts:32mes/contentandrole, so self re-import is partly supported but no longer ST-compatible export shape:src-tauri/src/commands/storage/imports/bulk_imports.rs:47,src-tauri/src/commands/storage/imports/bulk_imports.rs:915marinara-chat-bulk:src/app/shell/ChatSidebar.tsx:1241,src/features/catalog/chats/hooks/use-bulk-export-chats.ts:53src/shared/api/profile-api.ts:92,src-tauri/src/commands/storage/profile.rs:562,src-tauri/src/commands/storage/profile.rs:637Regression notes
This is a confirmed parity gap from upstream parity tracker #2268, surface
09-CHAT-COMPAT-chat-file-import-export-profile.Legacy behavior existed on
main/ v1.6.1 paths. Refactor currently changes exported JSONL/text shape and exposes an unimportable Native JSON chat-bulk format.Additional context
Acceptance criteria:
09-CHAT-COMPAT-chat-file-import-export-profileJSONL export is ST-compatible again, or a separate clearly named Marinara JSONL export/import pair is added while the ST-compatible JSONL affordance remains available.Follow-up from parityscan but not chased here: full Target 20 asset/profile/storage proof remains out of scope.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: