From 3a1760b4cd76a2957b9751bf996ea6e0c630bf60 Mon Sep 17 00:00:00 2001 From: Chaim Date: Mon, 27 Apr 2026 19:22:20 +0000 Subject: [PATCH] Agent feed: don't show "waiting for report" when all issues closed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The AgentActivityFeed showed a spinner with "הסוכנים התחילו לעבוד, ממתין לדיווח ראשון..." whenever the case had any issues but no comments — including cases where all issues had ended in 'done' or 'cancelled' (like 1130-25 after archive). The widget mistook a finished case for an in-flight workflow. Now compute hasActiveIssue = some(issues, status !== done && cancelled) and pick the message accordingly: spinner only while there's still real work; otherwise a quiet "אין משימות פעילות בתיק. כל המשימות הסתיימו או בוטלו." with the static MessageSquare icon. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../components/cases/agent-activity-feed.tsx | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/web-ui/src/components/cases/agent-activity-feed.tsx b/web-ui/src/components/cases/agent-activity-feed.tsx index 7143c26..3726952 100644 --- a/web-ui/src/components/cases/agent-activity-feed.tsx +++ b/web-ui/src/components/cases/agent-activity-feed.tsx @@ -225,6 +225,12 @@ export function AgentActivityFeed({ const comments = data.comments ?? []; + // An issue is "active" if it's not done/cancelled. When everything is closed + // we should NOT show the "agents are working, waiting for report" spinner. + const hasActiveIssue = data.issues.some( + (iss) => iss.status !== "done" && iss.status !== "cancelled", + ); + return (
{/* Issue summary bar */} @@ -243,10 +249,17 @@ export function AgentActivityFeed({ {/* Comments stream */}
{comments.length === 0 ? ( -
- - הסוכנים התחילו לעבוד, ממתין לדיווח ראשון... -
+ hasActiveIssue ? ( +
+ + הסוכנים התחילו לעבוד, ממתין לדיווח ראשון... +
+ ) : ( +
+ + אין משימות פעילות בתיק. כל המשימות הסתיימו או בוטלו. +
+ ) ) : ( comments.map((c) => (