Skip to main content

Features to Help You Troubleshoot

Fix with AI does not consume any credits.

Fix with AI

If you’re experiencing an issue with your design in Magic Patterns, you can use the Fix with AI feature. This tool helps resolve problems automatically and does not consume any credits.

Common Issues

”I Don’t See My Changes”

Background

The AI likely did make the change you asked for, but:
  • It’s not “hooked up” (e.g., created a new page but didn’t link a button to it)
  • It’s on a different page/route than you’re looking at
  • The element exists but isn’t visible (hidden, off-screen, or in a different state)

Solution

Ask the AI to reflect on why you’re not seeing the changes:
Prompt
The /Ask mode and /Debug skill can be powerful here too!
The AI might explain:
  • “I added the feature to the mobile view, but you’re looking at desktop”
  • “I created a modal, but it only shows when you click the ‘View Details’ button”

Prevention Tips

  1. Be explicit about where changes should appear:
    • Bad prompt: “Add a settings page”
    • Good prompt: “Add a /settings route and make the gear icon in the header link to it”
  2. Use Select Mode to reference specific elements:
    • Click the button that should trigger the change
    • Then prompt: “When I click X, ensure that it actually goes to [XYZ].”
  3. Ask the AI to confirm:
    • Add to your prompt: “…and make sure it’s visible on [XYZ]"

"I never see Fix with AI""

Background

If Fix with AI isn’t appearing in your project, it’s likely because your app is wrapped in a special thing called an ErrorBoundary. In frameworks like React, an ErrorBoundary catches errors and displays fallback UI. While useful for production, this behavior prevents unhandled exceptions from surfacing, which means the system doesn’t recognize an error and won’t trigger Fix with AI.

Solution

Remove or disable your error boundary by prompting the assistant to automatically make the change:
Prompt

Prevention Tips

  • Avoid wrapping your entire app in an ErrorBoundary while prototyping
  • If you need error handling, consider prompting the AI to add it only to specific components rather than the “entire App”