agent_ui: Clear error message callout when message is edited or added in same thread (#33768)
Umesh Yadav
created
Currently if error occurs in the agent thread and user updates the same
messages or sends a new message the error callout is still present and
is not cleared. In this PR we are clearing the last error in case user
sends a new messages or resend the previous message after editing.
Before:
https://github.com/user-attachments/assets/44994004-4cf0-45bc-8b69-88546f037372
After:
https://github.com/user-attachments/assets/993a2a63-8295-47d3-bbda-a2669dee2d5f
Release Notes:
- Fix bug in agent panel error callout not getting removed when a
message is edited or new a message is send.