Skip to content
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

fix: handle deleted blocks #4945

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

Conversation

Patrick-Erichsen
Copy link
Collaborator

@Patrick-Erichsen Patrick-Erichsen commented Apr 2, 2025

Previously, trying to unroll an assistant with a deleted block was throwing errors. This PR gracefully handles that by adding a .nullable() to each schema type for AssistantUnrolled, and setting null in the block type array if the block is deleted.

Addresses #4902

Copy link

netlify bot commented Apr 2, 2025

Deploy Preview for continuedev ready!

Name Link
🔨 Latest commit c5286fc
🔍 Latest deploy log https://app.netlify.com/sites/continuedev/deploys/67f324e4ee3a22000895ab66
😎 Deploy Preview https://deploy-preview-4945--continuedev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Patrick-Erichsen Patrick-Erichsen marked this pull request as ready for review April 2, 2025 02:43
@Patrick-Erichsen Patrick-Erichsen requested a review from a team as a code owner April 2, 2025 02:44
@Patrick-Erichsen Patrick-Erichsen requested review from RomneyDa and removed request for a team April 2, 2025 02:44
sestinj
sestinj previously approved these changes Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants