Skip to content

fix: Removing a favorite overwrites live message state with stale snapshot#2837

Open
Allaoua9 wants to merge 1 commit intoChainlit:mainfrom
Allaoua9:fix/favorite-removes-steps
Open

fix: Removing a favorite overwrites live message state with stale snapshot#2837
Allaoua9 wants to merge 1 commit intoChainlit:mainfrom
Allaoua9:fix/favorite-removes-steps

Conversation

@Allaoua9
Copy link
Contributor

@Allaoua9 Allaoua9 commented Mar 9, 2026

This fixes this issue : #2836

update only metadata on the current item from state instead of replacing it wholesale.


Summary by cubic

Fixes a bug where toggling a favorite could overwrite a live message with a stale snapshot (Fixes #2836). We now update only the favorite flag in metadata within useChatInteract, preserving all other message fields.

Written for commit 7fdd751. Summary will update on new commits.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. bug Something isn't working frontend Pertains to the frontend. labels Mar 9, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend Pertains to the frontend. size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Removing a favorite overwrites live message state with stale snapshot

1 participant