Spaces:
Sleeping
Sleeping
tool exec green tick or red cross
Browse files- web/src/App.css +6 -0
- web/src/App.tsx +5 -1
web/src/App.css
CHANGED
|
@@ -672,6 +672,12 @@ details.tool-call summary::-webkit-details-marker {
|
|
| 672 |
margin-left: auto;
|
| 673 |
}
|
| 674 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 675 |
/* Content area (hidden when closed) */
|
| 676 |
.tool-call-content {
|
| 677 |
padding: 0 1rem 1rem 1rem;
|
|
|
|
| 672 |
margin-left: auto;
|
| 673 |
}
|
| 674 |
|
| 675 |
+
.crossmark {
|
| 676 |
+
color: #d46a6a;
|
| 677 |
+
font-size: 1.2em;
|
| 678 |
+
margin-left: auto;
|
| 679 |
+
}
|
| 680 |
+
|
| 681 |
/* Content area (hidden when closed) */
|
| 682 |
.tool-call-content {
|
| 683 |
padding: 0 1rem 1rem 1rem;
|
web/src/App.tsx
CHANGED
|
@@ -630,7 +630,11 @@ function App() {
|
|
| 630 |
</span>
|
| 631 |
)}
|
| 632 |
{tool.output && !tool.isGenerating && !tool.isExecuting && (
|
| 633 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 634 |
)}
|
| 635 |
</summary>
|
| 636 |
<div className="tool-call-content">
|
|
|
|
| 630 |
</span>
|
| 631 |
)}
|
| 632 |
{tool.output && !tool.isGenerating && !tool.isExecuting && (
|
| 633 |
+
tool.error || (typeof tool.output === 'string' && tool.output.toLowerCase().includes('error')) ? (
|
| 634 |
+
<span className="crossmark">❌</span>
|
| 635 |
+
) : (
|
| 636 |
+
<span className="checkmark">✓</span>
|
| 637 |
+
)
|
| 638 |
)}
|
| 639 |
</summary>
|
| 640 |
<div className="tool-call-content">
|