Exceptions in tool execute break the UI for the user

Created on 21 July 2025, 14 days ago

Problem/Motivation

When using the AI Agent Explorer and run an agent that has an issue with a tool definition, e.g. if the context definition isn't accurate, Drupal throws an exception and the UI in the explorer is broken with an error message in the browser console. The user doesn't get any feedback, that the process failed.

The same is likely to happen in other contexts, too, e.g. in the chat.

Proposed resolution

Let's try and catch such exceptions and provide the exception message as a response to the tool exception.

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024