}
// eventText returns the text that the client shows for event, or "" for none.
-// The client shows no user message, because the user typed it. A tool result
-// shows its first resultLines lines.
+// 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 resultLines
+// lines.
func eventText(event Event) string {
switch event.Kind {
case "ready":
return "[connected to " + event.Text + "]"
+ case "user":
+ if event.Source == terminalSource {
+ return ""
+ }
+
+ return "[" + event.Source + "] " + event.Text
case "reply":
return event.Text
case "tool":