AI errors and limits
The copilot is designed to refuse rather than guess. When it cannot turn your instruction into valid, safe changes, it says so and changes nothing. This page explains the messages you can see, why they happen and what to do.
The copilot is designed to refuse rather than guess. When it cannot turn your instruction into valid, safe changes, it says so and changes nothing. This page explains the messages you can see, why they happen and what to do.
Messages you may see
| Message | Meaning | What to do |
|---|---|---|
| "I couldn't make that change safely: …" followed by a reason | The operations the AI proposed did not pass validation (a page or entity does not exist, a component type is unknown, a page name is already taken, a component has no such event…). Nothing was applied. | Fix the name or wording and try again. The reason often lists the valid names, for example "Existing entities: Customers, Jobs". |
| "Nothing to change." or the AI's own description with no change list | The AI returned an empty list of operations. The request was understood as something it should not or could not do. | Rephrase, or do it in the editor. |
| "I couldn't map that to a safe change. Try: …" | The local planner (no AI key) did not recognise the phrasing. | Rephrase it as a clear instruction, for example one of the phrasings suggested in the message. |
| "The AI request failed" | A network or server problem, or the AI service rejected the call (invalid key, quota). | Try again later; if it persists, the platform's AI key may need attention. |
| Rate limit error | More than 20 instructions in one minute from your account. | Wait a minute. |
Rejected and failed requests are recorded in Versions › AI history with the error text.
Retries and repair
With an AI key, the copilot makes up to three attempts. If the first answer fails validation, the error is sent back to the model with "Return corrected commands that avoid this error"; the third attempt may use a stronger fallback model if the platform configured one. Attempts stop early when the AI service reports a key, permission or quota problem. The local planner makes one attempt.
Unsupported requests
These always produce no change:
- Code, SQL, scripts, custom CSS or HTML.
- Secrets, API keys, environment variables.
- Uploading or deleting files and images.
- Connecting external databases or mapping tables.
- Publishing, rolling back, restoring versions, renaming the app.
- Reading, creating or editing records.
See What the AI can do for the complete list.
Limits
- Instructions are cut at 2,000 characters.
- An answer may contain at most 60 operations; ask for big changes in a few steps.
- 20 instructions per minute per user; the onboarding planner allows 10 plans per minute.
- Component names used by the AI must match what the Pages and Layers panels show.
Example
You: Add a field called Due date to Invoice
AI: I couldn't make that change safely: Operation 1: Entity "Invoice"
does not exist. Existing entities: Customers, Invoices, Jobs
You: Add a field called Due date to Invoices
AI: Added the Due Date field to Invoices.
+ Field "Due Date" on InvoicesCommon mistakes
- Several unrelated requests in one sentence. Split them: one instruction per change makes failures easier to read and undo.
- Pasting a long specification. Over 2,000 characters is cut off; the copilot also works best with one concrete instruction.
- Treating a rejection as a bug in your app. A rejected instruction changes nothing; your draft is untouched.
Advanced
Validation happens in resolveAiOutput() (src/core/ai/resolver.ts): names are resolved to ids and each operation is applied to a scratch copy of the project through the command engine, so a structural error anywhere rejects the whole answer. Rate limits are enforced per server instance (rateLimit("ai:<user>", 20, 60)).