summaryrefslogtreecommitdiffhomepage
path: root/src/chat-view.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/chat-view.ts')
-rw-r--r--src/chat-view.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/chat-view.ts b/src/chat-view.ts
index 7c7f110..b673d26 100644
--- a/src/chat-view.ts
+++ b/src/chat-view.ts
@@ -440,6 +440,11 @@ export class ChatView extends ItemView {
header.createSpan({ text: event.friendlyName, cls: "ai-pulse-tool-call-name" });
container.createDiv({ text: event.summary, cls: "ai-pulse-tool-call-summary" });
+ const isError = event.result.startsWith("Error");
+ if (isError) {
+ container.addClass("ai-pulse-tool-call-error");
+ }
+
container.createDiv({ text: event.resultSummary, cls: "ai-pulse-tool-call-result-summary" });
// DaisyUI-style collapse with checkbox