session: format exec events with code fences
This commit is contained in:
parent
afb531c936
commit
e101db2079
|
|
@ -757,6 +757,8 @@ func FormatEvent(ev agent.Event) []byte {
|
||||||
return []byte("agent stalled\n")
|
return []byte("agent stalled\n")
|
||||||
case "reasoning":
|
case "reasoning":
|
||||||
return []byte(ev.Content)
|
return []byte(ev.Content)
|
||||||
|
case "exec":
|
||||||
|
return []byte("```\n" + ev.Content + "\n```\n")
|
||||||
case "info":
|
case "info":
|
||||||
return []byte(":: " + ev.Content)
|
return []byte(":: " + ev.Content)
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Reference in New Issue