[GH-ISSUE #4244] [Issue]: Unsaved character and persona editor drafts are lost after responsive layout change #2296

Closed
opened 2026-10-21 05:47:04 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @olegpro171 on GitHub (Jul 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4244

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Unsaved changes in the character card and persona editors are discarded when resizing the desktop browser across the responsive mobile/desktop layout breakpoint. The reset occurs without a prompt or warning.

Expected behavior

All unsaved editor state should remain intact when the application changes between its desktop and mobile layouts. Resizing the browser should affect presentation only and should not recreate or reset the active editor.

Actual behavior

After crossing the responsive layout breakpoint, unsaved plaintext fields revert to their previously saved values. Unsaved changes in the Colors and Stats tabs are also discarded.

Attached images, lorebooks, expressions, and similar data appear to be preserved.

Steps to reproduce

  1. Start Marinara Engine and open http://127.0.0.1:7860/ in web browser.
  2. Open an existing character card or persona for editing, or begin creating a new one.
  3. Enter unsaved text in any available editor fields. For a character, these include fields under Metadata, Card, Convo, and Advanced, add colors under Colors and modify values under Stats.
  4. Resize the browser horizontally until the application changes from the desktop layout to its mobile-style layout. If it is already using the mobile layout, expand it until the desktop layout appears.
  5. Observe that the changes from step 3 have reverted without a warning or confirmation prompt.

Environment

  • Marinara Engine version: 2.3.5 (staging commit 480f4c32bd32691b1b46590047ac2e496ee91aa1)
  • Install type: source (start.sh)
  • OS + version: macOS 26.5 (build 25F71)
  • Browser or app shell: Safari 26.5

Logs, screenshots, or video

No warning or error is shown in the UI when the data is discarded.

Video of recreation of the issue:
https://github.com/user-attachments/assets/bf57d16d-8641-4cd4-ab35-d161d26788eb

Additional context

The issue has been reproduced in both the character card editor and persona editor. Other editors have not yet been confirmed to be affected.

Investigation indicates that crossing the responsive breakpoint moves the active detail editor between separate desktop and mobile React tree positions. This unmounts and remounts the editor, causing component-local unsaved form state to be recreated from the last persisted data.

The issue was manually reproduced on the latest staging commit available at the time of reporting: 480f4c32bd32691b1b46590047ac2e496ee91aa1. Therefore, it is not resolved by the most recent staging updates.

Template check

Please uncheck (untick) 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 @olegpro171 on GitHub (Jul 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4244 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Unsaved changes in the character card and persona editors are discarded when resizing the desktop browser across the responsive mobile/desktop layout breakpoint. The reset occurs without a prompt or warning. ## Expected behavior All unsaved editor state should remain intact when the application changes between its desktop and mobile layouts. Resizing the browser should affect presentation only and should not recreate or reset the active editor. ## Actual behavior After crossing the responsive layout breakpoint, unsaved plaintext fields revert to their previously saved values. Unsaved changes in the **Colors** and **Stats** tabs are also discarded. Attached images, lorebooks, expressions, and similar data appear to be preserved. ## Steps to reproduce 1. Start Marinara Engine and open `http://127.0.0.1:7860/` in web browser. 2. Open an existing character card or persona for editing, or begin creating a new one. 3. Enter unsaved text in any available editor fields. For a character, these include fields under **Metadata**, **Card**, **Convo**, and **Advanced**, add colors under **Colors** and modify values under **Stats**. 4. Resize the browser horizontally until the application changes from the desktop layout to its mobile-style layout. If it is already using the mobile layout, expand it until the desktop layout appears. 5. Observe that the changes from step 3 have reverted without a warning or confirmation prompt. ## Environment - Marinara Engine version: 2.3.5 (`staging` commit `480f4c32bd32691b1b46590047ac2e496ee91aa1`) - Install type: source (`start.sh`) - OS + version: macOS 26.5 (build 25F71) - Browser or app shell: Safari 26.5 ## Logs, screenshots, or video No warning or error is shown in the UI when the data is discarded. Video of recreation of the issue: https://github.com/user-attachments/assets/bf57d16d-8641-4cd4-ab35-d161d26788eb ## Additional context The issue has been reproduced in both the character card editor and persona editor. Other editors have not yet been confirmed to be affected. Investigation indicates that crossing the responsive breakpoint moves the active detail editor between separate desktop and mobile React tree positions. This unmounts and remounts the editor, causing component-local unsaved form state to be recreated from the last persisted data. The issue was manually reproduced on the latest `staging` commit available at the time of reporting: `480f4c32bd32691b1b46590047ac2e496ee91aa1`. Therefore, it is not resolved by the most recent staging updates. ## Template check Please **uncheck (untick)** 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.
bsakaguchi 2026-10-21 05:47:04 +07:00
Author
Owner

@olegpro171 commented on GitHub (Jul 29, 2026):

I have implemented a local fix that preserves a single detail-editor host across layout transitions. It has been covered by character and persona Playwright regression tests and manually verified in manually in web browser (Safari).
I will open a PR soon.

<!-- gh-comment-id:5116258596 --> @olegpro171 commented on GitHub (Jul 29, 2026): I have implemented a local fix that preserves a single detail-editor host across layout transitions. It has been covered by character and persona Playwright regression tests and manually verified in manually in web browser (Safari). I will open a PR soon.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 29, 2026):

Implementation ownership is coordinated with @olegpro171: I have preserved Oleg’s commit authorship and opened draft PR #4254 from current staging so the existing fix can be validated and reviewed without duplicate implementation.

<!-- gh-comment-id:5117782485 --> @SpicyMarinara commented on GitHub (Jul 29, 2026): Implementation ownership is coordinated with @olegpro171: I have preserved Oleg’s commit authorship and opened draft PR #4254 from current staging so the existing fix can be validated and reviewed without duplicate implementation.
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#2296
No description provided.