diff options
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/tui/internal/components/chat/message.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/packages/tui/internal/components/chat/message.go b/packages/tui/internal/components/chat/message.go index a6e976323..ff361e76e 100644 --- a/packages/tui/internal/components/chat/message.go +++ b/packages/tui/internal/components/chat/message.go @@ -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": |
