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(conversations): recognise spawn_async_subagent as a delegation tool
Steven Enamakeldc0468deb9d8
diff --git a/app/src/features/conversations/derived/mapDisplayItems.ts b/app/src/features/conversations/derived/mapDisplayItems.tsindex 0c3d9c4a2f..bd43050f72 100644--- a/app/src/features/conversations/derived/mapDisplayItems.ts+++ b/app/src/features/conversations/derived/mapDisplayItems.ts@@ -405,7 +405,9 @@ export function mapDisplayItems(/** Tool names that open a delegation — mirrors `findPendingDelegationContext`. */function isDelegationToolName(name: string): boolean {return (- name === 'spawn_subagent' || name === 'spawn_subagent' || name.startsWith('delegate_')+ name === 'spawn_subagent' ||+ name === 'spawn_async_subagent' ||+ name.startsWith('delegate_'));}diff --git a/app/src/features/conversations/tools/toolPresentation.ts b/app/src/features/conversations/tools/toolPresentation.tsindex 55a11da772..a44d3d1f78 100644--- a/app/src/features/conversations/tools/toolPresentation.ts+++ b/app/src/features/conversations/tools/toolPresentation.ts@@ -240,7 +240,7 @@ export function describeToolCall(input: DescribeToolCallInput): ToolCallPresentaif (agent) return agent;}if (- (baseName === 'spawn_subagent' || baseName === 'spawn_subagent') &&+ (baseName === 'spawn_subagent' || baseName === 'spawn_async_subagent') &&typeof args.agent_id === 'string') {const agent = agentPresentation(args.agent_id, baseName, args, tense, serverDetail);diff --git a/app/src/store/chatRuntimeSlice.ts b/app/src/store/chatRuntimeSlice.tsindex 783febc790..1af09b8801 100644--- a/app/src/store/chatRuntimeSlice.ts+++ b/app/src/store/chatRuntimeSlice.ts@@ -1975,7 +1975,7 @@ const chatRuntimeSlice = createSlice({// event-seen map, so guard here.const existing = entries.find(e => e.id === rowId);if (existing) {- // ...with one exception. `continue_subagent` republishes+ // ...with one exception. Resuming a paused task republishes// `subagent_spawned` for the SAME task/agent when it resumes a paused// child (continue_subagent.rs:330), and that is the only signal the// frontend gets that the pause is over. Swallowing it left the row@@ -2005,6 +2005,10 @@ const chatRuntimeSlice = createSlice({existing.subagent.status = 'running';existing.subagent.awaitingQuestion = undefined;existing.subagent.spawnEventId = spawnEventId;+ // A resumed task belongs to the latest spawn call in the parent+ // transcript. Keep its live card attached to that call so the+ // previous call's card does not claim the resumed work.+ if (parentCallId) existing.subagent.parentCallId = parentCallId;}}return;