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

hide assistant message actions while reply is streaming (#3654)

Harsh Kumarcd16a9582e6e
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
index 599f09f8b..05edf5868 100644
--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx
+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
@@ -8185,6 +8185,12 @@ export function StandaloneChat({
const canEditMessage = message.role === "user" && !isSteerUserMessage && !isLoading;
const canShowMessageActions = !item.showActionsWhenExpandedBy ||
expandedSteerWorkIds.has(item.showActionsWhenExpandedBy);
+ const isActiveStreamingAssistantMessage =
+ message.role === "assistant" &&
+ (isLoading || isStreaming) &&
+ message.id === activeSourceFooterMessageId;
+ const shouldShowMessageActionBar =
+ canShowMessageActions && !isActiveStreamingAssistantMessage;
const nextAssistant = visibleMessages
.slice(messageIndex + 1)
.find((candidate) => candidate.role === "assistant");
@@ -8342,7 +8348,7 @@ export function StandaloneChat({
)}
</div>
)}
- {!hideSupersededSteerBody && canShowMessageActions ? (
+ {!hideSupersededSteerBody && shouldShowMessageActionBar ? (
<>
{/* Action buttons - appear on hover, outside the message box */}
{editingMessageId !== message.id && (