feat: allow easy deletion of favorites#2792
Merged
hayescode merged 1 commit intoChainlit:mainfrom Feb 24, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
2 issues found across 25 files
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="backend/chainlit/data/base.py">
<violation number="1" location="backend/chainlit/data/base.py:117">
P2: set_step_favorite signature is missing the user_id parameter that callers pass, causing a runtime TypeError for data layers that rely on the base implementation and blocking per-user favorites overrides.</violation>
</file>
<file name="backend/chainlit/socket.py">
<violation number="1" location="backend/chainlit/socket.py:355">
P2: Unverified client payload can be persisted as a favorite when no matching server-side step is found, allowing arbitrary message data to be injected into stored favorites.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
af3572a to
6579f27
Compare
6579f27 to
fe132b4
Compare
hayescode
approved these changes
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #2753
Summary by cubic
Let users remove a favorite directly from the Favorites picker, with instant UI updates and a data-layer flow to persist the change.
New Features
Refactors
Written for commit fe132b4. Summary will update on new commits.