File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -801,6 +801,8 @@ const App = () => {
801
801
) ;
802
802
803
803
setToolResult ( response ) ;
804
+ // Clear any validation errors since tool execution completed
805
+ setErrors ( ( prev ) => ( { ...prev , tools : null } ) ) ;
804
806
} catch ( e ) {
805
807
const toolResult : CompatibilityCallToolResult = {
806
808
content : [
@@ -812,6 +814,8 @@ const App = () => {
812
814
isError : true ,
813
815
} ;
814
816
setToolResult ( toolResult ) ;
817
+ // Clear validation errors - tool execution errors are shown in ToolResults
818
+ setErrors ( ( prev ) => ( { ...prev , tools : null } ) ) ;
815
819
}
816
820
} ;
817
821
Original file line number Diff line number Diff line change @@ -131,14 +131,15 @@ const ToolsTab = ({
131
131
</ h3 >
132
132
</ div >
133
133
< div className = "p-4" >
134
- { error ? (
135
- < Alert variant = "destructive" >
136
- < AlertCircle className = "h-4 w-4" />
137
- < AlertTitle > Error</ AlertTitle >
138
- < AlertDescription > { error } </ AlertDescription >
139
- </ Alert >
140
- ) : selectedTool ? (
134
+ { selectedTool ? (
141
135
< div className = "space-y-4" >
136
+ { error && (
137
+ < Alert variant = "destructive" >
138
+ < AlertCircle className = "h-4 w-4" />
139
+ < AlertTitle > Error</ AlertTitle >
140
+ < AlertDescription > { error } </ AlertDescription >
141
+ </ Alert >
142
+ ) }
142
143
< p className = "text-sm text-gray-600 dark:text-gray-400" >
143
144
{ selectedTool . description }
144
145
</ p >
You can’t perform that action at this time.
0 commit comments