Skip to content

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

Merged
hayescode merged 1 commit intoChainlit:mainfrom
Allaoua9:fix/favorite-removes-steps
Apr 1, 2026
Merged

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

Conversation

@Allaoua9
Copy link
Copy Markdown
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
Copy Markdown
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

@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Mar 24, 2026
@github-actions
Copy link
Copy Markdown

This PR was closed because it has been inactive for 7 days since being marked as stale.

@github-actions github-actions bot closed this Mar 31, 2026
@hayescode hayescode reopened this Mar 31, 2026
@github-actions github-actions bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Apr 1, 2026
Copy link
Copy Markdown
Contributor

@hayescode hayescode left a comment

Choose a reason for hiding this comment

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

Reviewed via Codex

LGTM.

@hayescode hayescode added this pull request to the merge queue Apr 1, 2026
Merged via the queue into Chainlit:main with commit 088106b Apr 1, 2026
19 checks passed
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

2 participants