fraudTech commited on
Commit
14815b2
·
1 Parent(s): ab56967

tool exec green tick or red cross

Browse files
Files changed (2) hide show
  1. web/src/App.css +6 -0
  2. 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
- <span className="checkmark">✓</span>
 
 
 
 
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">&#10060;</span>
635
+ ) : (
636
+ <span className="checkmark">&#10003;</span>
637
+ )
638
  )}
639
  </summary>
640
  <div className="tool-call-content">