feat: catch errors from web container preview and show in actionable alert so user can send them to AI for fixing (#856)

* Catch errors from web container

* Show fix error popup on errors in preview

* Remove unneeded action type

* PR comments

* Cleanup urls in stacktrace

---------

Co-authored-by: Anirban Kar <thecodacus@gmail.com>
This commit is contained in:
Eduard Ruzga
2024-12-24 23:35:44 +02:00
committed by GitHub
parent fc4f89f806
commit 7eee0386ff
5 changed files with 69 additions and 10 deletions

View File

@@ -26,4 +26,5 @@ export interface ActionAlert {
title: string;
description: string;
content: string;
source?: 'terminal' | 'preview'; // Add source to differentiate between terminal and preview errors
}