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
fix(ui): correct follow-up suggestion rendering in SubagentTaskCard
Steven Enamakel6a6e2741b9de
diff --git a/app/src/features/conversations/aui/SubagentTaskCard.tsx b/app/src/features/conversations/aui/SubagentTaskCard.tsxindex 023556d497..96dbfb2aba 100644--- a/app/src/features/conversations/aui/SubagentTaskCard.tsx+++ b/app/src/features/conversations/aui/SubagentTaskCard.tsx@@ -207,7 +207,14 @@ export const SubagentTaskCard: ToolCallMessagePartComponent = ({ args, result, mresult={resultNode}>{nestedMessages.length > 0 ? (<div data-testid="subagent-activity">- <TaskTranscript messages={nestedMessages} />+ <TaskTranscript+ messages={nestedMessages}+ roleLabels={{+ user: t('conversations.subagent.transcript.instruction'),+ assistant: t('conversations.subagent.transcript.agent'),+ system: t('conversations.subagent.transcript.system'),+ }}+ /></div>) : undefined}</TaskCard>diff --git a/app/src/pages/dev/assistant-ui-demo/FollowupSuggestionsDemo.test.tsx b/app/src/pages/dev/assistant-ui-demo/FollowupSuggestionsDemo.test.tsxnew file mode 100644index 0000000000..07a9709f50--- /dev/null+++ b/app/src/pages/dev/assistant-ui-demo/FollowupSuggestionsDemo.test.tsx@@ -0,0 +1,18 @@+import { render, screen } from '@testing-library/react';+import { describe, expect, it } from 'vitest';++import { MOCK_CHAT_SUGGESTIONS_EVENT } from './assistantUiMock/mockScript';+import { FollowupSuggestionsDemo } from './FollowupSuggestionsDemo';++describe('FollowupSuggestionsDemo', () => {+ it('renders one follow-up chip per suggestion in the fixture chat_suggestions event', () => {+ render(<FollowupSuggestionsDemo />);++ const chips = screen.getAllByRole('button');+ expect(chips).toHaveLength(MOCK_CHAT_SUGGESTIONS_EVENT.suggestions.length);+ // Labelled suggestions show their label; the unlabelled one shows its prompt.+ for (const { prompt, label } of MOCK_CHAT_SUGGESTIONS_EVENT.suggestions) {+ expect(screen.getByRole('button', { name: label ?? prompt })).toBeTruthy();+ }+ });+});