mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 22:10:23 +00:00
agents better display when spawning
This commit is contained in:
parent
fc73d3c523
commit
fc13d057f8
2 changed files with 54 additions and 2 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue