our agent job failed. the UI still showed a success toast.
retained text
we had a failed job in our agent-powered content pipeline show a success toast. the bug wasn't in the model. it was in how the UI handled the result. the progress component recognized both completed and failed as terminal states. then it called onComplete() without passing either status. the parent treated that callback as success, showed the toast, and immediately unmounted the progress component. that component already had a failure panel, but it never got a chance to display it. the fix was to pass status and error through the callback, then let the parent choose the right notification. the regression check i'd want here is a deliberately failed run, followed all the way to what the user sees. checking that the backend recorded an error wouldn't have caught this particular bug. have you had a failed agent run look successful somewhere downstream? where did the failure status get lost?
document fetched 2026-10-12 00:18 · canonical https://reddit.com/r/AI_Agents/comments/1x3ekrr/our_agent_job_failed_the_ui_still_showed_a