From 612d08634445798ead6b59d45955bcdc2b668a15 Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Tue, 21 Oct 2025 09:12:07 -0400 Subject: [PATCH] Updates on limits --- docs/api/commands/prompt.mdx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/api/commands/prompt.mdx b/docs/api/commands/prompt.mdx index e0d2d9c2ab..d83ed14c9b 100644 --- a/docs/api/commands/prompt.mdx +++ b/docs/api/commands/prompt.mdx @@ -733,6 +733,19 @@ cy.prompt(electronicsFilterPrompt) | Assertions | 'not.exist' assertions are not supported | | DOM Support | Canvas elements are not supported | | Command Coverage | Not all Cypress APIs supported - see [What you can do](#What-you-can-do) | +| Step Limit | Each `cy.prompt` call is limited to 50 steps | + +### Step limit details + +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. + +:::note + +**System-wide prompt length limits** + +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. + +::: ## Pricing & usage limits