From 2e411c324287029ae148adbdb560b39fdd347a07 Mon Sep 17 00:00:00 2001 From: Soumyadas15 Date: Tue, 27 May 2025 16:55:41 +0530 Subject: [PATCH] chore(dev): browser state fix --- .../thread/tool-views/BrowserToolView.tsx | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/thread/tool-views/BrowserToolView.tsx b/frontend/src/components/thread/tool-views/BrowserToolView.tsx index c5f908d2..6d88c996 100644 --- a/frontend/src/components/thread/tool-views/BrowserToolView.tsx +++ b/frontend/src/components/thread/tool-views/BrowserToolView.tsx @@ -185,11 +185,11 @@ export function BrowserToolView({ if (screenshotUrl) { return ( -
+
{imageLoading && ( )} - {!imageLoading && !imageError && ( + Browser Screenshot - )} + {imageError && !imageLoading && (
@@ -210,11 +210,11 @@ export function BrowserToolView({ ); } else if (screenshotBase64) { return ( -
+
{imageLoading && ( )} - {!imageLoading && !imageError && ( + Browser Screenshot - )} + {imageError && !imageLoading && (
@@ -280,7 +280,7 @@ export function BrowserToolView({ -
+
{isLastToolCall ? ( isRunning && vncIframe ? (
@@ -328,12 +328,12 @@ export function BrowserToolView({ ) ) : (screenshotUrl || screenshotBase64) ? ( -
+
{imageLoading && ( )} - {!imageLoading && !imageError && ( - screenshotUrl ? ( + + {screenshotUrl ? ( Browser Screenshot - ) - )} + )} + {imageError && !imageLoading && (