You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and passing it to ai.defineFlow(), the flow itself functions correctly, and validation works.
However, the Genkit UI freezes completely as soon as you select the flow.
Reloading the page, restarting the UI, or modifying the schema does not resolve the issue.
Interestingly, other validation methods such as z.string().email() do not cause any problems.
To Reproduce
Start Genkit with the UI enabled.
Open any existing flow in the UI and ensure it runs correctly.
Modify the input schema by adding .min(1) to an existing z.string() property or introducing a new z.string().min(1) property.
Try to run the flow.
The Genkit UI will freeze immediately upon selecting the flow.
Expected Behavior
All documented Zod methods should be supported.
If certain methods are not supported, this should be documented clearly.
The UI should handle schema validation errors gracefully instead of freezing.
Describe the bug
When adding .min(1) to a string property in the flow input schema, like this:
When I add
.min(1)
to string property of flow input schema, likeand passing it to
ai.defineFlow()
, the flow itself functions correctly, and validation works.However, the Genkit UI freezes completely as soon as you select the flow.
Reloading the page, restarting the UI, or modifying the schema does not resolve the issue.
Interestingly, other validation methods such as
z.string().email()
do not cause any problems.To Reproduce
Expected Behavior
System Information
The text was updated successfully, but these errors were encountered: