File tree Expand file tree Collapse file tree
apps/sim/app/workspace/[workspaceId]/home/components/message-content Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -295,6 +295,10 @@ function parseBlocks(blocks: ContentBlock[]): MessageSegment[] {
295295 }
296296 }
297297 }
298+ // Subagent lanes break the mothership lane: any mothership tool that
299+ // arrives after this subagent finishes should render below the lane,
300+ // not get back-filled into the mothership group sitting above it.
301+ groupsByKey . delete ( groupKey ( 'mothership' , undefined ) )
298302 const g = ensureGroup ( key , block . parentToolCallId )
299303 if ( inheritedDelegation ) g . isDelegating = true
300304 g . isOpen = block . endedAt === undefined
@@ -310,6 +314,7 @@ function parseBlocks(blocks: ContentBlock[]): MessageSegment[] {
310314 const isDispatch = SUBAGENT_KEYS . has ( tc . name ) && ! tc . calledBy
311315
312316 if ( isDispatch ) {
317+ groupsByKey . delete ( groupKey ( 'mothership' , undefined ) )
313318 const g = ensureGroup ( tc . name , tc . id )
314319 g . isDelegating = isDelegatingTool ( tc )
315320 g . isOpen = g . isDelegating
You can’t perform that action at this time.
0 commit comments