fix: Add toaster message of failure in logs#985
Merged
Conversation
Roopan-Microsoft
approved these changes
May 18, 2026
|
🎉 This PR is included in version 4.2.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request introduces improved error handling for plan orchestration, ensuring that errors are communicated more clearly to users and that the plan status is consistently updated to "FAILED" in both the frontend and backend. The changes affect both the backend orchestration logic and the frontend WebSocket/message handling, providing better feedback and state management when orchestration fails.
Backend error handling and plan status updates:
overall_statustoFAILEDin the database if a plan ID is present.ERROR_MESSAGEWebSocket message type, rather than as aFINAL_RESULT_MESSAGE.plan_idfor error tracking and database updates. [1] [2] [3]Frontend error handling and UI updates:
usePlanWebSocket) now listens for error statuses in bothFINAL_RESULT_MESSAGEandERROR_MESSAGEtypes. On error, it displays a user-friendly error message, updates the UI state (e.g., disables spinners, shows toasts), and dispatches the newplanFailedFinalaction to update the Redux store. [1] [2] [3]planFailedFinal, is introduced to set the plan status toFAILEDand hide processing spinners in the UI. [1] [2]These changes provide a more robust and user-friendly experience when orchestration errors occur, ensuring the application's state accurately reflects failures and that users receive clear feedback.
Does this introduce a breaking change?
How to Test
What to Check
Verify that the following are valid
Other Information