Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Bug: Morph API Data Validation Regression
The shouldUseMorph condition was simplified, no longer validating for fragment.code and fragment.file_path. This could cause the morph API to receive incomplete fragment data, potentially leading to API errors or unexpected behavior.
app/page.tsx#L100-L104
Lines 100 to 104 in a66a4ff
Bug: Undo Operation Triggers Unwanted Sidebar Display
The handleUndo function clears the displayed fragment and result by calling setCurrentPreview. However, setCurrentPreview now always opens the sidebar, which results in an empty sidebar being visible after an undo operation, creating a confusing user experience.
app/page.tsx#L293-L297
Lines 293 to 297 in a66a4ff
mlejva
approved these changes
Sep 29, 2025
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.
Note
Memoizes key selectors and introduces an independently toggleable preview sidebar, updating API selection, message updates, and layout accordingly.
isSideBarOpen; open on submit/preview, close via button; layout switches betweenmd:grid-cols-1andmd:grid-cols-2.Previewnow renders based onisSideBarOpen(notfragment), replacingonClosewithisSideBarOpenandsetIsSideBarOpen.filteredModels,currentModel,lastMessage,currentTemplate,shouldUseMorph, andapiEndpointusinguseMemo.setLastMessage(useCallback) and removedsetMessage, updating assistant message/result updates accordingly.shouldUseMorphnow checks onlyfragment; conditional payload spread updated to...(shouldUseMorph ? { currentFragment: fragment } : {}).Written by Cursor Bugbot for commit a66a4ff. This will update automatically on new commits. Configure here.