mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4244] [Issue]: Unsaved character and persona editor drafts are lost after responsive layout change #2296
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#2296
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 @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
http://127.0.0.1:7860/in web browser.Environment
stagingcommit480f4c32bd32691b1b46590047ac2e496ee91aa1)start.sh)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
stagingcommit 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:
@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.
@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.