Skip to content

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

fix(assistant-ui): correct thread component to handle empty state

Steven Enamakel02db1330c76d
diff --git a/app/src/components/assistant-ui/thread.tsx b/app/src/components/assistant-ui/thread.tsx
index 7c9c24d699..8f385cd8dc 100644
--- a/app/src/components/assistant-ui/thread.tsx
+++ b/app/src/components/assistant-ui/thread.tsx
@@ -1278,14 +1278,14 @@ const ComposerAction: FC<{
// button. `cn` is tailwind-merge, so the later `bg-primary-500`
// replaces the variant's `bg-primary` cleanly.
<TooltipIconButton
- tooltip="Send message"
+ tooltip={t('chat.send', 'Send message')}
side="bottom"
type="button"
variant="default"
size="icon"
className="aui-composer-send size-7 rounded-full bg-primary-500 text-content-inverted hover:bg-primary-600"
data-testid="send-message-button"
- aria-label="Send message"
+ aria-label={t('chat.send', 'Send message')}
onClick={() => {
onComposerAttachmentSend?.();
aui.composer.setText('');
@@ -1295,14 +1295,14 @@ const ComposerAction: FC<{
) : (
<ComposerPrimitive.Send asChild>
<TooltipIconButton
- tooltip="Send message"
+ tooltip={t('chat.send', 'Send message')}
side="bottom"
type="button"
variant="default"
size="icon"
className="aui-composer-send size-7 rounded-full bg-primary-500 text-content-inverted hover:bg-primary-600"
data-testid="send-message-button"
- aria-label="Send message">
+ aria-label={t('chat.send', 'Send message')}>
<ArrowUpIcon className="aui-composer-send-icon size-4" />
</TooltipIconButton>
</ComposerPrimitive.Send>
@@ -1316,7 +1316,7 @@ const ComposerAction: FC<{
size="icon"
className="aui-composer-cancel size-7 rounded-full bg-primary-500 text-content-inverted hover:bg-primary-600"
data-testid="stop-generation-button"
- aria-label="Stop generating">
+ aria-label={t('chat.stopGeneration', 'Stop generating')}>
<SquareIcon className="aui-composer-cancel-icon size-3.5 fill-current" />
</Button>
</ComposerPrimitive.Cancel>
diff --git a/app/src/components/channels/mcp/McpServersPage.test.tsx b/app/src/components/channels/mcp/McpServersPage.test.tsx
index cd285353f9..231904225b 100644
--- a/app/src/components/channels/mcp/McpServersPage.test.tsx
+++ b/app/src/components/channels/mcp/McpServersPage.test.tsx
@@ -113,7 +113,11 @@ describe('McpServersPage', () => {
// Each row says how it runs and how it is doing, not where it was found.
expect(screen.getByText('npx -y echo')).toBeInTheDocument();
expect(screen.getByText('https://h.test/mcp')).toBeInTheDocument();
- expect(screen.getByText(/Connected · 3 tools/)).toBeInTheDocument();
+ // Status and tool count are now separate table columns rather than one
+ // combined string.
+ const statusBadges = screen.getAllByTestId('mcp-row-status');
+ expect(statusBadges[0]).toHaveTextContent('Connected');
+ expect(rows[0]).toHaveTextContent('3');
expect(screen.getByTestId('mcp-disabled-badge')).toBeInTheDocument();
// Nothing from the directory sits among the user's own rows.
expect(mockRegistrySearch).not.toHaveBeenCalled();