Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(conversations): handle empty conversation list gracefully

Steven Enamakel4f08ee7ce16d
diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsx
index e5bb35ff37..5a9f5703fc 100644
--- a/app/src/features/conversations/Conversations.tsx
+++ b/app/src/features/conversations/Conversations.tsx
@@ -1845,14 +1845,19 @@ const Conversations = ({
// re-runs generation under the original artifact id, so the card swaps back
// to a spinner in place and then to ready/failed via the socket events.
const artifactDeckThreadId = selectedThreadId ?? firstActiveThreadId;
+ // Only artifacts with NO owning tool call belong in the header deck — one
+ // with a `toolCallId` renders inline through its own tool-call card
+ // (`MediaAndDocumentCalls.tsx`) instead, per the `ArtifactCardAdapter` doc.
const liveArtifacts = artifactDeckThreadId
- ? (artifactsByThread[artifactDeckThreadId] ?? []).filter(a => a.status !== 'ready')
+ ? (artifactsByThread[artifactDeckThreadId] ?? []).filter(
+ a => a.status !== 'ready' && !a.toolCallId
+ )
: [];
const liveArtifactDeck =
liveArtifacts.length > 0 && artifactDeckThreadId ? (
<div className="mb-2 flex flex-col gap-2">
{liveArtifacts.map(artifact => (
- <ArtifactCard
+ <ArtifactCardAdapter
key={artifact.artifactId}
artifact={artifact}
onRetry={id => {