Format exec events with $ prefix instead of code blocks

This commit is contained in:
Levi Neely 2026-05-20 17:24:12 +02:00
parent e101db2079
commit e77c5a09f4
1 changed files with 5 additions and 1 deletions

View File

@ -758,7 +758,11 @@ func FormatEvent(ev agent.Event) []byte {
case "reasoning":
return []byte(ev.Content)
case "exec":
return []byte("```\n" + ev.Content + "\n```\n")
lines := strings.Split(ev.Content, "\n")
for i := range lines {
lines[i] = "$ " + lines[i]
}
return []byte(strings.Join(lines, "\n") + "\n")
case "info":
return []byte(":: " + ev.Content)
default: