The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(thread-list): add label prop to ThreadListNew
Steven Enamakeld691e48f6740
diff --git a/app/src/components/assistant-ui/thread-list.tsx b/app/src/components/assistant-ui/thread-list.tsxindex 703bcd39f7..aad11a6f79 100644--- a/app/src/components/assistant-ui/thread-list.tsx+++ b/app/src/components/assistant-ui/thread-list.tsx@@ -200,8 +200,8 @@ const ThreadListItemGroups: FC<{ searchQuery?: string }> = ({ searchQuery = '' }export const ThreadListNew = forwardRef<HTMLButtonElement,- ComponentPropsWithoutRef<typeof Button> & { labelClassName?: string }->(({ className, labelClassName, children, ...props }, ref) => {+ ComponentPropsWithoutRef<typeof Button> & { labelClassName?: string; label?: string }+>(({ className, labelClassName, label, children, ...props }, ref) => {const { t } = useT();return (<ThreadListPrimitive.New@@ -223,7 +223,7 @@ export const ThreadListNew = forwardRef<<spandata-slot="aui_thread-list-new-label"className={cn('whitespace-nowrap', labelClassName)}>- {t('assistantUi.threadList.newThread', 'New Thread')}+ {label ?? t('assistantUi.threadList.newThread', 'New Thread')}</span></>)}diff --git a/app/src/features/conversations/threadList/ThreadList.test.tsx b/app/src/features/conversations/threadList/ThreadList.test.tsxindex c984ee2a4d..953160ff49 100644--- a/app/src/features/conversations/threadList/ThreadList.test.tsx+++ b/app/src/features/conversations/threadList/ThreadList.test.tsx@@ -104,17 +104,14 @@ describe('ThreadList', () => {expect(screen.queryByTestId('thread-pin-t1')).not.toBeInTheDocument();});- it('shows unread only for idle threads and shimmers running ones', () => {+ it('shows unread only for idle threads and shimmers running titles without a loader', () => {renderList({ unreadThreadIds: new Set(['t1', 't2']), isThreadRunning: id => id === 't2' });expect(screen.getByTestId('thread-unread-t1')).toBeInTheDocument();expect(screen.queryByTestId('thread-unread-t2')).not.toBeInTheDocument();const running = within(screen.getByTestId('thread-row-t2')).getByText('Plan trip');expect(running).toHaveAttribute('data-running', 'true');- expect(- screen- .getByTestId('thread-row-t2')- .querySelector('[data-slot="aui_thread-list-item-running"]')- ).toBeInTheDocument();+ expect(running).toHaveClass('shimmer', 'motion-reduce:animate-none');+ expect(screen.getByTestId('thread-row-t2').querySelector('[data-slot="aui_thread-list-item-running"]')).toBeNull();});it('creates and switches conversations through the runtime adapter', async () => {diff --git a/app/src/features/conversations/threadList/ThreadList.tsx b/app/src/features/conversations/threadList/ThreadList.tsxindex cd147a5527..e7c367a3d5 100644--- a/app/src/features/conversations/threadList/ThreadList.tsx+++ b/app/src/features/conversations/threadList/ThreadList.tsx@@ -63,10 +63,10 @@ function ThreadRow() {{'data-testid': `thread-row-${id}`,'data-analytics-id': 'chat-sidebar-thread-row',- // Re-selecting the active thread still synchronizes OpenHuman's route.- onClick: () => {- if (host.selectedThreadId === id) host.onSelectThread(id);- },+ // Re-selecting the active thread still synchronizes OpenHuman's route.+ onClick: () => {+ if (host.selectedThreadId === id) host.onSelectThread(id);+ },title: thread.actionDir? t('chat.sidebar.workingFolder').replace('{folder}', folderBasename(thread.actionDir)): undefined,@@ -158,9 +158,9 @@ function ThreadListView() {data-testid="new-thread-button"data-analytics-id="chat-sidebar-new-thread"className="w-full"- title={t('chat.newThreadShortcut')}>- {t('chat.newConversation')}- </ThreadListNew>+ title={t('chat.newThreadShortcut')}+ label={t('chat.newConversation')}+ />{props.threads.length > 0 && <ThreadListSearch value={search} onValueChange={setSearch} />}</div><div