summaryrefslogtreecommitdiffhomepage
path: root/packages/tui
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-07-24 23:08:03 -0400
committerDax Raad <[email protected]>2025-07-24 23:08:03 -0400
commitfc13d057f8eb296ec8b08cbe11b37ef65a320a39 (patch)
tree094047cdf3f33745b916d5cc4b2d80938e9c489a /packages/tui
parentfc73d3c523330062960e69cbf1b1f8548f6ad46b (diff)
downloadopencode-fc13d057f8eb296ec8b08cbe11b37ef65a320a39.tar.gz
opencode-fc13d057f8eb296ec8b08cbe11b37ef65a320a39.zip
agents better display when spawning
Diffstat (limited to 'packages/tui')
-rw-r--r--packages/tui/internal/components/chat/message.go12
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":