Skip to content

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

refactor(conversations): remove parallel agents tool spec and usage

Steven Enamakel21d244e2462f
diff --git a/app/src/features/conversations/aui/SubagentActivityCard.test.tsx b/app/src/features/conversations/aui/SubagentActivityCard.test.tsx
index c85bff63ec..23b84545d4 100644
--- a/app/src/features/conversations/aui/SubagentActivityCard.test.tsx
+++ b/app/src/features/conversations/aui/SubagentActivityCard.test.tsx
@@ -1,6 +1,7 @@
import { fireEvent, render, screen, within } from '@testing-library/react';
import { describe, expect, it } from 'vitest';
+import type { SubagentActivity } from '../../../store/chatRuntimeSlice';
import { SubagentActivityCard } from './SubagentActivityCard';
function openDisclosure() {
@@ -65,7 +66,7 @@ describe('SubagentActivityCard', () => {
status: 'awaiting_user',
awaitingQuestion: 'Which repo should I use?',
toolCalls: [],
- }}
+ } as unknown as SubagentActivity}
/>
);
expect(screen.getByTestId('assistant-ui-subagent-call')).toHaveAttribute(
diff --git a/app/src/features/conversations/aui/toolkit.tsx b/app/src/features/conversations/aui/toolkit.tsx
index b332bd9a79..a8e1d9ca89 100644
--- a/app/src/features/conversations/aui/toolkit.tsx
+++ b/app/src/features/conversations/aui/toolkit.tsx
@@ -14,7 +14,6 @@ import {
import { CronAddOrUpdateCall, CronListCall, CronRunsCall } from './ChatScheduleCard';
import { GoalToolLine } from './GoalToolLine';
import { DocumentArtifactCall, MediaGenerationCall } from './MediaAndDocumentCalls';
-import { ParallelAgentsCard } from './ParallelAgentsCard';
import { PlanReviewPart } from './PlanReviewPart';
import { SubagentTaskCard } from './SubagentTaskCard';
import { TodoListPart } from './TodoListPart';
@@ -81,7 +80,6 @@ export function openHumanToolEntries(): Record<string, OpenHumanToolEntry> {
* above each worker's own `TaskCard` row (`ParallelAgentsCard.tsx`),
* grouped by `subagent.parentCallId === toolCallId`.
*/
- spawn_parallel_agents: { type: 'backend', display: 'inline', render: ParallelAgentsCard },
/**
* Image / video generation: the `elements-image-generation` placeholder
diff --git a/app/src/features/conversations/tools/toolSpecs.ts b/app/src/features/conversations/tools/toolSpecs.ts
index 320e724755..52780bcd42 100644
--- a/app/src/features/conversations/tools/toolSpecs.ts
+++ b/app/src/features/conversations/tools/toolSpecs.ts
@@ -303,7 +303,6 @@ export const EXACT_TOOL_SPECS: Record<string, ToolSpec> = {
delegate_graph: spec('delegateTask', BotIcon, 'agent', { chip: chip.text('agent_id') }),
delegate: spec('delegateTask', BotIcon, 'agent', { chip: chip.text('agent') }),
delegate_to: spec('delegateTask', BotIcon, 'agent', { chip: chip.text('agent', 'agent_id') }),
- spawn_parallel_agents: spec('runAgentsInParallel', UsersIcon, 'agent'),
continue_subagent: spec('messageAgent', MessageSquareReplyIcon, 'agent', {
chip: chip.text('agent_id'),
}),