Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(chat): drop redundant [N] count when tool group is done

Louis Beaumontc9b5a29936ec
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
index 85f9791b6..884fa8459 100644
--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx
+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
@@ -2327,19 +2327,15 @@ function ToolCallGroup({
className="w-full flex items-center gap-2 py-1 text-left min-w-0 group"
>
{/* Status indicator */}
- {!hideCount && (
+ {!hideCount && hasRunning && (
<span className="flex-shrink-0 text-xs font-mono text-foreground/40">
- {hasRunning ? (
- <motion.span
- className="inline-block"
- animate={{ opacity: [1, 1, 0.3, 0.3, 1] }}
- transition={{ duration: 1, repeat: Infinity, times: [0, 0.25, 0.25, 0.75, 0.75], ease: "linear" }}
- >
- [{doneCount}/{total}]
- </motion.span>
- ) : (
- <span>[{total}]</span>
- )}
+ <motion.span
+ className="inline-block"
+ animate={{ opacity: [1, 1, 0.3, 0.3, 1] }}
+ transition={{ duration: 1, repeat: Infinity, times: [0, 0.25, 0.25, 0.75, 0.75], ease: "linear" }}
+ >
+ [{doneCount}/{total}]
+ </motion.span>
</span>
)}