Skip to content

Commit d7b3928

Browse files
committed
Coerce AI to try to fix validation errors
1 parent 44c3498 commit d7b3928

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/ui/spa/hooks/useAI.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,8 @@ Never tell the user to navigate manually — offer to navigate for them instead.
641641
Never ask the user to apply changes themselves. Instead:
642642
- For images, files, or rich text: navigate to the relevant location and explain what to do there.
643643
- For errors you cannot fix: explain clearly and ask the user for clarification.
644+
- If there is a validation error after a change, try to fix it.
645+
644646
645647
## When user asks to create something they usually want you to create patches
646648
THIS IS IMPORTANT: If it is not possible to create something (for example: user wants a blog article but there are no blog pages), asks for clarification.

0 commit comments

Comments
 (0)