mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #260] [Issue]: Can't remove background. #104
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#104
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 @Dark-Thoughts on GitHub (Apr 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/260
Summary
When removing the background from a chat and you switch back & forth, the previous background will just return.
Expected behavior
Background should stay removed.
Actual behavior
Background switches back.
Steps to reproduce
Environment
Logs, screenshots, or video
Additional context
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@LukaTheHero commented on GitHub (Apr 28, 2026):
Fix is up in #275.
Three compounding issues were causing this. The most stubborn one was a stale React Query cache: `useUpdateChatMetadata` only invalidated the chat detail without writing the server response into the cache, so if the mutation completed after navigating away (or under certain switch-orderings), the cache held the pre-removal snapshot and the restore effect re-applied the supposedly-removed background. The Settings Remove handler also relied on a debounced effect chain that occasionally dropped the write, and the chat-switch restore effect only ever set the background, never cleared it — so a stale URL from a previous chat could leak through.
PR fixes all three:
Verified locally: removed background now sticks across refreshes and chat switches in both directions.