webui: change tool call failure icon to be less alarming
Modified the tool call error indicator to use an information icon (ℹ️) instead of a warning symbol (⚠️)
and updated the color scheme to use a neutral gray instead of alarming red.
Co-Authored-By: sketch <hello@sketch.dev>
diff --git a/webui/src/web-components/sketch-tool-card.ts b/webui/src/web-components/sketch-tool-card.ts
index d03b29d..a6fcdf9 100644
--- a/webui/src/web-components/sketch-tool-card.ts
+++ b/webui/src/web-components/sketch-tool-card.ts
@@ -78,7 +78,7 @@
}
.tool-error {
- color: #d9534f;
+ color: #6c757d;
font-size: 14px;
}
@@ -193,7 +193,7 @@
.tool-error-message {
font-style: italic;
- color: #aa0909;
+ color: #6c757d;
}
.codereview-OK {
@@ -255,7 +255,7 @@
>`;
} else if (this.toolCall?.result_message.tool_error) {
// Error status
- statusIcon = html`<span class="tool-call-status tool-error">⚠️</span>`;
+ statusIcon = html`<span class="tool-call-status tool-error">🔔</span>`;
} else {
// Success status
statusIcon = html`<span class="tool-call-status tool-success">✓</span>`;
@@ -460,7 +460,7 @@
getStatusIcon(resultText: string): string {
if (!resultText) return "";
if (resultText === "OK") return "✔️";
- if (resultText.includes("# Errors")) return "⛔";
+ if (resultText.includes("# Errors")) return "⚠️";
if (resultText.includes("# Info")) return "ℹ️";
if (resultText.includes("uncommitted changes in repo")) return "🧹";
if (resultText.includes("no new commits have been added")) return "🐣";