[GH-ISSUE #1811] [Issue]: Settings profile import/export lost legacy format and recovery options #891

Closed
opened 2026-10-21 05:23:03 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Xelvanis on GitHub (Jun 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1811

Originally assigned to: @cha1latte on GitHub.

Summary

Settings profile import/export on the refactor branch appears to have lost legacy user-facing options for full-profile compatible export, ZIP fallback, and partial ZIP import recovery. The current settings path exposes JSON-only export, remote JSON-only import, and hard-fails some missing-asset ZIP cases that legacy handled with warnings.

Expected behavior

  • Settings profile export offers native Marinara JSON, compatible bundle, and ZIP options, or an equivalent flow.
  • Large native JSON profile export can fall back to ZIP instead of failing the settings export path.
  • Profile import accepts JSON and ZIP where the runtime supports file upload.
  • ZIP imports with missing asset files preserve recoverable profile data and report missing-asset warnings instead of failing the whole import, unless the profile data itself is invalid.

Actual behavior

Static code comparison found:

  • Refactor src/shared/api/profile-api.ts exposes exportProfile() with no format option.
  • Refactor settings show Export Profile (JSON) only in src/features/shell/settings/components/SettingsPanel.tsx.
  • Refactor src-tauri/src/commands/storage/profile.rs accepts only native profile JSON export and rejects other formats.
  • Refactor remote runtime import path in src/features/shell/settings/components/ProfileImportSection.tsx accepts JSON only.
  • Refactor ZIP asset mismatch coverage in src-tauri/src/commands/storage/profile/assets.rs expects invalid input when the manifest references a missing file.

Legacy comparison found:

  • Legacy settings exposed native, compatible, and zip profile export formats.
  • Legacy backup route supported /backup/export-profile?format=compatible and /backup/export-profile?format=zip.
  • Legacy large JSON export returned a PROFILE_EXPORT_JSON_TOO_LARGE fallback hint to ZIP.
  • Legacy ZIP import collected missing-asset warnings and surfaced them to settings UI after import.

Steps to reproduce

  1. On the refactor branch, open Settings > Import.
  2. Observe that profile export offers only Export Profile (JSON) instead of a format picker.
  3. In the remote runtime settings import flow, observe that the file input accepts JSON only.
  4. Compare with the legacy settings import/export flow, which exposed native, compatible, and ZIP export options and warning-based ZIP import recovery.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • 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

Environment

  • Branch or commit: origin/refactor at 84f40efd
  • Run mode: Tauri desktop and remote runtime paths by static inspection
  • OS + version: Not runtime-tested
  • Node + pnpm versions: Not runtime-tested
  • Rust version, if relevant: Not runtime-tested
  • Remote Runtime URL configured? Not runtime-tested
  • Provider, model, or integration, if relevant: Not relevant

Logs, screenshots, or video

No logs or screenshots. This issue comes from static parity comparison against the legacy implementation.

Regression notes

This appears to be a refactor parity regression from the legacy settings/profile flow:

  • Legacy client settings had a profile export format dialog with native, compatible, and zip options.
  • Legacy server backup routes supported compatible and ZIP full-profile export.
  • Legacy import returned missing-asset warnings instead of failing the entire profile import for recoverable asset gaps.

Related: #1572 tracks a broader future profile format that scales beyond monolithic JSON. This issue is narrower: restore current user-facing parity where practical, or explicitly decide which legacy Settings import/export behaviors are intentionally retired.

Additional context

Import/export touches destructive profile replacement and user data recovery. Any fix should keep destructive confirmation explicit, validate profile data at the storage boundary, and keep desktop and remote-runtime behavior intentionally documented.

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 @Xelvanis on GitHub (Jun 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1811 Originally assigned to: @cha1latte on GitHub. ## Summary Settings profile import/export on the refactor branch appears to have lost legacy user-facing options for full-profile compatible export, ZIP fallback, and partial ZIP import recovery. The current settings path exposes JSON-only export, remote JSON-only import, and hard-fails some missing-asset ZIP cases that legacy handled with warnings. ## Expected behavior - Settings profile export offers native Marinara JSON, compatible bundle, and ZIP options, or an equivalent flow. - Large native JSON profile export can fall back to ZIP instead of failing the settings export path. - Profile import accepts JSON and ZIP where the runtime supports file upload. - ZIP imports with missing asset files preserve recoverable profile data and report missing-asset warnings instead of failing the whole import, unless the profile data itself is invalid. ## Actual behavior Static code comparison found: - Refactor `src/shared/api/profile-api.ts` exposes `exportProfile()` with no format option. - Refactor settings show `Export Profile (JSON)` only in `src/features/shell/settings/components/SettingsPanel.tsx`. - Refactor `src-tauri/src/commands/storage/profile.rs` accepts only native profile JSON export and rejects other formats. - Refactor remote runtime import path in `src/features/shell/settings/components/ProfileImportSection.tsx` accepts JSON only. - Refactor ZIP asset mismatch coverage in `src-tauri/src/commands/storage/profile/assets.rs` expects invalid input when the manifest references a missing file. Legacy comparison found: - Legacy settings exposed `native`, `compatible`, and `zip` profile export formats. - Legacy backup route supported `/backup/export-profile?format=compatible` and `/backup/export-profile?format=zip`. - Legacy large JSON export returned a `PROFILE_EXPORT_JSON_TOO_LARGE` fallback hint to ZIP. - Legacy ZIP import collected missing-asset warnings and surfaced them to settings UI after import. ## Steps to reproduce 1. On the refactor branch, open Settings > Import. 2. Observe that profile export offers only `Export Profile (JSON)` instead of a format picker. 3. In the remote runtime settings import flow, observe that the file input accepts JSON only. 4. Compare with the legacy settings import/export flow, which exposed native, compatible, and ZIP export options and warning-based ZIP import recovery. ## Impact area <!-- Check the areas you think are relevant. Leave uncertain items unchecked. --> - [x] App shell, navigation, startup, or providers - [x] Catalog resources - [ ] 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 - [x] Shared API wrapper or remote runtime routing - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `origin/refactor` at `84f40efd` - Run mode: Tauri desktop and remote runtime paths by static inspection - OS + version: Not runtime-tested - Node + pnpm versions: Not runtime-tested - Rust version, if relevant: Not runtime-tested - Remote Runtime URL configured? Not runtime-tested - Provider, model, or integration, if relevant: Not relevant ## Logs, screenshots, or video No logs or screenshots. This issue comes from static parity comparison against the legacy implementation. ## Regression notes This appears to be a refactor parity regression from the legacy settings/profile flow: - Legacy client settings had a profile export format dialog with `native`, `compatible`, and `zip` options. - Legacy server backup routes supported compatible and ZIP full-profile export. - Legacy import returned missing-asset warnings instead of failing the entire profile import for recoverable asset gaps. Related: #1572 tracks a broader future profile format that scales beyond monolithic JSON. This issue is narrower: restore current user-facing parity where practical, or explicitly decide which legacy Settings import/export behaviors are intentionally retired. ## Additional context Import/export touches destructive profile replacement and user data recovery. Any fix should keep destructive confirmation explicit, validate profile data at the storage boundary, and keep desktop and remote-runtime behavior intentionally documented. ## 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 (Jun 1, 2026):

Closed in #1847

<!-- gh-comment-id:4596689943 --> @cha1latte commented on GitHub (Jun 1, 2026): Closed in #1847
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#891
No description provided.