agents better display when spawning

This commit is contained in:
Dax Raad
2025-07-24 23:08:03 -04:00
parent fc73d3c523
commit fc13d057f8
2 changed files with 54 additions and 2 deletions

View File

@@ -553,10 +553,18 @@ func renderToolTitle(
if filename, ok := toolArgsMap["filePath"].(string); ok {
title = fmt.Sprintf("%s %s", title, util.Relative(filename))
}
case "bash", "task":
case "bash":
if description, ok := toolArgsMap["description"].(string); ok {
title = fmt.Sprintf("%s %s", title, description)
}
case "task":
description := toolArgsMap["description"]
subagent := toolArgsMap["subagent_type"]
if description != nil && subagent != nil {
title = fmt.Sprintf("%s[%s] %s", title, subagent, description)
} else if description != nil {
title = fmt.Sprintf("%s %s", title, description)
}
case "webfetch":
toolArgs = renderArgs(&toolArgsMap, "url")
title = fmt.Sprintf("%s %s", title, toolArgs)
@@ -576,7 +584,7 @@ func renderToolTitle(
func renderToolAction(name string) string {
switch name {
case "task":
return "Planning..."
return "Delegating..."
case "bash":
return "Writing command..."
case "edit":