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
test(conversations): cover incomplete subagent states
Steven Enamakel6242f2618892
diff --git a/app/src/features/conversations/aui/ParallelAgentsCard.test.tsx b/app/src/features/conversations/aui/ParallelAgentsCard.test.tsxindex ec51c647cd..de0bfef9d1 100644--- a/app/src/features/conversations/aui/ParallelAgentsCard.test.tsx+++ b/app/src/features/conversations/aui/ParallelAgentsCard.test.tsx@@ -56,6 +56,14 @@ describe('ParallelAgentsCard', () => {expect(screen.queryByTestId('parallel-agents-aggregating')).toBeNull();});+ it('reports an incomplete worker as partial rather than silently complete', () => {+ timeline.entries = [child('a', 1, 'completed'), child('b', 2, 'incomplete')];+ renderCard('complete');+ const header = screen.getByTestId('parallel-agents-header');+ expect(header).toHaveTextContent('chat.subagents.incompleteCount');+ expect(header).not.toHaveTextContent('chat.subagents.failedCount');+ });+it('says the parent is processing once every worker is back but the call is still open', () => {timeline.entries = [child('a', 1, 'completed'), child('b', 2, 'completed')];renderCard('running');diff --git a/app/src/features/conversations/aui/SubagentActivityCard.test.tsx b/app/src/features/conversations/aui/SubagentActivityCard.test.tsxindex 1f813fc119..634e85ab29 100644--- a/app/src/features/conversations/aui/SubagentActivityCard.test.tsx+++ b/app/src/features/conversations/aui/SubagentActivityCard.test.tsx@@ -30,6 +30,17 @@ describe('SubagentActivityCard', () => {expect(card).toHaveAttribute('data-status', 'failed');});+ it('shows an incomplete delegation as a partial state with a status announcement', () => {+ render(+ <SubagentActivityCard+ activity={{ taskId: 't', agentId: 'researcher', status: 'incomplete', toolCalls: [] }}+ />+ );+ const card = screen.getByTestId('assistant-ui-subagent-call');+ expect(card).toHaveAttribute('data-state', 'incomplete');+ expect(screen.getByTestId('subagent-incomplete')).toHaveAttribute('role', 'status');+ });+it('marks a cancelled delegation as cancelled', () => {render(<SubagentActivityCard