mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-04 11:45:38 +08:00
fix: subagent task name
This commit is contained in:
@@ -54,7 +54,7 @@ export const SubagentContainer: React.FC<SubagentContainerProps> = ({
|
|||||||
const { childTools, currentToolIndex, isComplete } = subagentState;
|
const { childTools, currentToolIndex, isComplete } = subagentState;
|
||||||
const currentTool = currentToolIndex >= 0 ? childTools[currentToolIndex] : null;
|
const currentTool = currentToolIndex >= 0 ? childTools[currentToolIndex] : null;
|
||||||
|
|
||||||
const title = `${subagentType}: ${description}`;
|
const title = `Subagent / ${subagentType}: ${description}`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="border-l-2 border-l-purple-500 dark:border-l-purple-400 pl-3 py-0.5 my-1">
|
<div className="border-l-2 border-l-purple-500 dark:border-l-purple-400 pl-3 py-0.5 my-1">
|
||||||
|
|||||||
@@ -424,13 +424,7 @@ export const TOOL_CONFIGS: Record<string, ToolDisplayConfig> = {
|
|||||||
},
|
},
|
||||||
result: {
|
result: {
|
||||||
type: 'collapsible',
|
type: 'collapsible',
|
||||||
title: (result) => {
|
title: 'Subagent 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';
|
|
||||||
},
|
|
||||||
defaultOpen: false,
|
defaultOpen: false,
|
||||||
contentType: 'markdown',
|
contentType: 'markdown',
|
||||||
getContentProps: (result) => {
|
getContentProps: (result) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user