diff --git a/src/components/chat/tools/components/SubagentContainer.tsx b/src/components/chat/tools/components/SubagentContainer.tsx index 891b5a9d..5ff8b764 100644 --- a/src/components/chat/tools/components/SubagentContainer.tsx +++ b/src/components/chat/tools/components/SubagentContainer.tsx @@ -54,7 +54,7 @@ export const SubagentContainer: React.FC = ({ const { childTools, currentToolIndex, isComplete } = subagentState; const currentTool = currentToolIndex >= 0 ? childTools[currentToolIndex] : null; - const title = `${subagentType}: ${description}`; + const title = `Subagent / ${subagentType}: ${description}`; return (
diff --git a/src/components/chat/tools/configs/toolConfigs.ts b/src/components/chat/tools/configs/toolConfigs.ts index 33fccf48..556334a3 100644 --- a/src/components/chat/tools/configs/toolConfigs.ts +++ b/src/components/chat/tools/configs/toolConfigs.ts @@ -424,13 +424,7 @@ export const TOOL_CONFIGS: Record = { }, result: { type: 'collapsible', - title: (result) => { - // Check if result has content with type array (agent results often have this structure) - if (result && result.content && Array.isArray(result.content)) { - return 'Subagent Response'; - } - return 'Subagent Result'; - }, + title: 'Subagent result', defaultOpen: false, contentType: 'markdown', getContentProps: (result) => {