X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/47f69638bc96100f2e446f63c7c3689023156e64..eeb821ff17ad79c87ca9b64cd9be26f8612f4a03:/terminal.go?ds=inline diff --git a/terminal.go b/terminal.go index 9e2b650..96a8cc5 100644 --- a/terminal.go +++ b/terminal.go @@ -149,7 +149,8 @@ func terminalCmpError(err, fallback error) error { // terminalEventText returns the text that the client shows for event, or "" for // none. The client shows a user message only from another source, such as // telegram, because the user typed the others. A tool result shows its first -// terminalResultLines lines. +// terminalResultLines lines. The report of a subagent shows whole, and it +// starts with the name of the subagent. func terminalEventText(event Event) string { switch event.Kind { case "ready": @@ -166,6 +167,10 @@ func terminalEventText(event Event) string { return "[tool] " + event.Text case "echo": return "[result] " + terminalFirstLines(event.Text, terminalResultLines) + case "subagent": + return "[" + event.Text + "] started" + case "work": + return event.Text case "busy": return "[working]" case "idle":