Files
moreminimore-vibe/e2e-tests/snapshots/fix_error.spec.ts_fix-all-errors-button-1.aria.yml
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

72 lines
1.3 KiB
YAML

- paragraph: tc=create-multiple-errors
- paragraph: I will intentionally add multiple errors to test the Fix All Errors button
- img
- text: Index.tsx
- button "Edit":
- img
- img
- text: "src/pages/Index.tsx Summary: intentionally add first error"
- img
- text: Error
- button "Fix with AI":
- img
- text: First error in Index...
- img
- img
- text: ErrorComponent.tsx
- button "Edit":
- img
- img
- text: "src/components/ErrorComponent.tsx Summary: intentionally add second error"
- img
- text: Error
- button "Fix with AI":
- img
- text: Second error in ErrorComponent...
- img
- img
- text: helper.ts
- button "Edit":
- img
- img
- text: "src/utils/helper.ts Summary: intentionally add third error"
- img
- text: Error
- button "Fix with AI":
- img
- text: Third error in helper...
- img
- button "Fix All Errors (3)":
- img
- button:
- img
- img
- text: Approved
- img
- text: less than a minute ago
- img
- text: wrote 3 file(s)
- paragraph: "Fix all of the following errors:"
- list:
- listitem: First error in Index
- listitem: Second error in ErrorComponent
- listitem: Third error in helper
- img
- text: file1.txt
- button "Edit":
- img
- img
- text: file1.txt
- paragraph: More EOM
- button:
- img
- img
- text: Approved
- img
- text: less than a minute ago
- img
- text: wrote 1 file(s)
- button "Undo":
- img
- button "Retry":
- img