Agent feed: don't show "waiting for report" when all issues closed
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 30s
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 30s
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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 (
|
||||
<div className="flex flex-col h-full">
|
||||
{/* Issue summary bar */}
|
||||
@@ -243,10 +249,17 @@ export function AgentActivityFeed({
|
||||
{/* Comments stream */}
|
||||
<div className="flex-1 overflow-y-auto max-h-[500px] space-y-1 px-1">
|
||||
{comments.length === 0 ? (
|
||||
<div className="text-center py-8 text-ink-faint text-sm">
|
||||
<Loader2 className="w-5 h-5 animate-spin mx-auto mb-2" />
|
||||
הסוכנים התחילו לעבוד, ממתין לדיווח ראשון...
|
||||
</div>
|
||||
hasActiveIssue ? (
|
||||
<div className="text-center py-8 text-ink-faint text-sm">
|
||||
<Loader2 className="w-5 h-5 animate-spin mx-auto mb-2" />
|
||||
הסוכנים התחילו לעבוד, ממתין לדיווח ראשון...
|
||||
</div>
|
||||
) : (
|
||||
<div className="text-center py-8 text-ink-faint text-sm">
|
||||
<MessageSquare className="w-5 h-5 mx-auto mb-2 opacity-50" />
|
||||
אין משימות פעילות בתיק. כל המשימות הסתיימו או בוטלו.
|
||||
</div>
|
||||
)
|
||||
) : (
|
||||
comments.map((c) => (
|
||||
<CommentCard key={c.id} comment={c} issueMap={issueMap} />
|
||||
|
||||
Reference in New Issue
Block a user