mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3079] [Issue]: Author's Note from one chat overwrites the previous chat on fast switch #1644
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#1644
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 @SpicyMarinara on GitHub (Jun 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3079
Originally assigned to: @SpicyMarinara on GitHub.
Summary
In v2.0.6, quickly switching between chats can cause the outgoing chat's Author's Note cleanup to save the incoming chat's text into the wrong room. This results in one chat permanently showing another chat's note.
Expected behavior
Switching chats should save each room's own Author's Note data to the correct chat, without cross-room overwrites.
Actual behavior
When switching from chat A to chat B around the save timing, chat A can end up storing B's Author's Note text. The wrong note is written to the previous room and persists after returning to it.
Steps to reproduce
Environment
49164fec)Logs, screenshots, or video
No logs, screenshots, or video provided in the Discord context.
Additional context
Reported root cause points to
AuthorNotesPanelinpackages/client/src/components/chat/ChatRoleplayPanels.tsx. The save-on-leave cleanup reads from a ref that is updated on every render, so the outgoing chat can save the incoming chat's latest notes. Marinara replied asking whether this is present on Staging and said it is likely already addressed.Discord thread: Author's Note bleeds across chats on fast switch (v2.0.6)
Discord thread link: https://discord.com/channels/1417099416812392641/1521355128517431416
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (5 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jun 30, 2026):
Fixed in PR #3082: Author's Notes cleanup now reads the outgoing chat's own saved draft/baseline by chat ID, preventing fast-switch cross-chat overwrites. Validation passed: focused client lint and pnpm check.