X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/6b21fcf78372995c6d8130c63f2f8aa2609bf7fe..a85d214071706753f358f0af23cfd525c28dbfe0:/terminal_test.go diff --git a/terminal_test.go b/terminal_test.go index 91e43d2..62ffb04 100644 --- a/terminal_test.go +++ b/terminal_test.go @@ -58,6 +58,16 @@ func TestEventText(t *testing.T) { event: Event{Kind: "user", Text: "from the phone", Source: "telegram"}, text: "[telegram] from the phone", }, + { + name: "start of a subagent", + event: Event{Kind: "subagent", Text: "GreenOtter"}, + text: "[GreenOtter] started", + }, + { + name: "report of a subagent whole", + event: Event{Kind: "work", Text: "[GreenOtter]\nThere are 3 files.\n\nFull chat: zoom(\"GreenOtter\")", Source: "GreenOtter", Status: subagentFinished}, + text: "[GreenOtter]\nThere are 3 files.\n\nFull chat: zoom(\"GreenOtter\")", + }, { name: "long result cut", event: Event{Kind: "echo", Text: strings.Repeat("line\n", 12)},