Skip to content

Commit fd76507

Browse files
Updates on limits (#6304)
1 parent 74869f3 commit fd76507

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/api/commands/prompt.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,19 @@ cy.prompt(electronicsFilterPrompt)
733733
| Assertions | 'not.exist' assertions are not supported |
734734
| DOM Support | Canvas elements are not supported |
735735
| Command Coverage | Not all Cypress APIs supported - see [What you can do](#What-you-can-do) |
736+
| Step Limit | Each `cy.prompt` call is limited to 50 steps |
737+
738+
### Step limit details
739+
740+
Each `cy.prompt` call is limited to 50 steps. This constraint helps maintain the accuracy and reliability of AI-generated test code. As the number of steps increases, the AI model's ability to maintain context and generate precise, executable Cypress commands may decrease. By keeping prompts focused and concise, you'll get more reliable results and better test performance.
741+
742+
:::note
743+
744+
**System-wide prompt length limits**
745+
746+
During the experimental release, we have system-wide limits on the total input length processed by `cy.prompt`. If you encounter issues with longer prompts, consider breaking them into smaller, more focused `cy.prompt` calls.
747+
748+
:::
736749

737750
## Pricing & usage limits
738751

0 commit comments

Comments
 (0)