-
Notifications
You must be signed in to change notification settings - Fork 3.4k
don't expand edit tool codeblocks by default #6467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for continuedev canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic found 1 issue across 4 files. Review it in cubic.dev
React with 👍 or 👎 to teach cubic. Tag @cubic-dev-ai
to give specific feedback.
@@ -18,12 +18,13 @@ export function EditFile(props: EditToolCallProps) { | |||
|
|||
return ( | |||
<StyledMarkdownPreview | |||
expandCodeblocks={props.expandCodeblocks ?? false} | |||
expandCodeblocks={false} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hardcoding expandCodeblocks to false removes the ability to control code block expansion via props, which may break expected behavior if other components rely on this prop for dynamic expansion.
expandCodeblocks={false} | |
expandCodeblocks={props.expandCodeblocks ?? false} |
🎉 This PR is included in version 1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Improving the UI for edit tool call UI
Checklist
Summary by cubic
Code blocks in the edit tool are now collapsed by default to reduce clutter and make the UI cleaner. The diff still appears in the editor, and users can expand code blocks if needed.