Files
moreminimore-vibe/e2e-tests/fixtures/create-multiple-errors.md
Mohamed Aziz Mejri 90c5805b57 adding a button for fixing all errors (#1785)
closes #1688 



<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Add a “Fix All Errors” button to the chat that collects all error
messages and sends a single request to resolve them. This helps users
fix multiple errors in one step.

- New Features
- Parse dyad-output type=error messages and track count/last index in
DyadMarkdownParser.
- Show FixAllErrorsButton after the last error when there are 2+ errors,
not streaming, and chatId is present.
- Button streams a prompt listing all errors, shows a loading state, and
displays the error count.

<sup>Written for commit b9762955d3b9cecd3b00c9efb478ce599f60e32d.
Summary will update automatically on new commits.</sup>

<!-- End of auto-generated description by cubic. -->
2025-12-04 22:20:35 -08:00

1.7 KiB

I will intentionally add multiple errors to test the Fix All Errors button

// Update this page (the content is just a fallback if you fail to update the page)

import { MadeWithDyad } from "@/components/made-with-dyad";

const Index = () => { throw new Error("First error in Index"); return (

Welcome to Your Blank App

Start building your amazing project here!

); };

export default Index;

Error: First error in Index at Index (http://localhost:5173/src/pages/Index.tsx:6:7) const ErrorComponent = () => { throw new Error("Second error in ErrorComponent"); return
This will never render
; };

export default ErrorComponent;

Error: Second error in ErrorComponent at ErrorComponent (http://localhost:5173/src/components/ErrorComponent.tsx:2:9) export const brokenHelper = () => { throw new Error("Third error in helper"); }; Error: Third error in helper at brokenHelper (http://localhost:5173/src/utils/helper.ts:2:9)