diff --git a/client/src/App.tsx b/client/src/App.tsx index 323b0996..04794df0 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -801,6 +801,8 @@ const App = () => { ); setToolResult(response); + // Clear any validation errors since tool execution completed + setErrors((prev) => ({ ...prev, tools: null })); } catch (e) { const toolResult: CompatibilityCallToolResult = { content: [ @@ -812,6 +814,8 @@ const App = () => { isError: true, }; setToolResult(toolResult); + // Clear validation errors - tool execution errors are shown in ToolResults + setErrors((prev) => ({ ...prev, tools: null })); } }; diff --git a/client/src/components/ToolsTab.tsx b/client/src/components/ToolsTab.tsx index c9825983..0123296a 100644 --- a/client/src/components/ToolsTab.tsx +++ b/client/src/components/ToolsTab.tsx @@ -131,14 +131,15 @@ const ToolsTab = ({
- {error ? ( - - - Error - {error} - - ) : selectedTool ? ( + {selectedTool ? (
+ {error && ( + + + Error + {error} + + )}

{selectedTool.description}