Skip to content

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

feat(conversations): add thread list to conversations view

Steven Enamakel5ca1af3f4441
diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsx
index 643e852a87..ca26fe78ac 100644
--- a/app/src/features/conversations/Conversations.tsx
+++ b/app/src/features/conversations/Conversations.tsx
@@ -1551,6 +1551,18 @@ const Conversations = ({
: { id: parentId, title: t('chat.parentThread') };
}, [threads, selectedThreadId, t]);
+ // A thread is "running" for the sidebar while its send is pending, the core
+ // has marked it active, or its inference turn is started/streaming. Covers
+ // background threads too, so a row keeps shimmering after you switch away.
+ const isThreadRunning = useCallback(
+ (threadId: string): boolean => {
+ if (pendingSendingThreadIds.has(threadId) || activeThreadIds[threadId]) return true;
+ const lifecycle = inferenceTurnLifecycleByThread[threadId];
+ return lifecycle === 'started' || lifecycle === 'streaming';
+ },
+ [pendingSendingThreadIds, activeThreadIds, inferenceTurnLifecycleByThread]
+ );
+
// Thread list (left pane). Rendered through `TwoPanelLayout` below in page
// mode; the embedded `variant="sidebar"` mode shows no thread list at all.
const threadSidebar = (
diff --git a/app/src/features/conversations/threadList/ThreadList.tsx b/app/src/features/conversations/threadList/ThreadList.tsx
index 4b2953f150..9c0b2644d5 100644
--- a/app/src/features/conversations/threadList/ThreadList.tsx
+++ b/app/src/features/conversations/threadList/ThreadList.tsx
@@ -13,6 +13,8 @@ interface ThreadListProps {
onSelectThread: (threadId: string) => void;
/** Stable, human-readable title for a thread id. */
resolveTitle: (threadId: string) => string;
+ /** Whether a thread has an agent turn in flight; its title shimmers while true. */
+ isThreadRunning?: (threadId: string) => boolean;
onRequestDelete: (thread: Thread) => void;
// Inline title rename — controlled by the parent so the edit state stays
// co-located with the rest of the panel's thread state.
@@ -38,6 +40,7 @@ export function ThreadList({
onCreateThread,
onSelectThread,
resolveTitle,
+ isThreadRunning,
onRequestDelete,
editingThreadId,
editTitleValue,
@@ -236,11 +239,13 @@ export function ThreadList({
/>
) : (
<p
+ data-running={isThreadRunning?.(thread.id) ? 'true' : undefined}
+ aria-busy={isThreadRunning?.(thread.id) || undefined}
className={`truncate flex-1 text-[14px] ${
selectedThreadId === thread.id
? 'font-semibold text-content'
: 'text-content-muted'
- }`}>
+ } ${isThreadRunning?.(thread.id) ? 'shimmer motion-reduce:animate-none' : ''}`}>
{resolveTitle(thread.id)}
</p>
)}