Significant-Gravitas / AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
https://agpt.co
Other
167.6k stars 44.27k forks source link

Show error if queueing graph execution fails #8332

Open Pwuts opened 4 days ago

Pwuts commented 4 days ago

If clicking "Run" results in a failure, e.g. the hard-coded input values are no longer valid, this isn't visible in the UI. This can happen e.g. with credentials when they are deleted from the user but not from the graph. The execution request returns an HTTP 400 but the UI doesn't show anything.

Suggestion: show a toast (variant="destructive") with the error message.

ChineseHamberger commented 2 days ago

Hi!

I'm a new contributor and I noticed this issue labeled as "good first issue."

It seems that if clicking "Run" results in a failure (e.g., the hard-coded input values are no longer valid), this isn't visible in the UI. This can happen, for example, with credentials when they are deleted from the user but not from the graph. The execution request returns an HTTP 400, but the UI doesn't show anything.

The suggestion is to show a toast (variant="destructive") with the error message.

I would like to take on this issue and implement the suggested solution. Please let me know if there are any specific guidelines or steps I should follow.