p9: stop truncating tool result output in chat

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Levi Neely 2026-04-12 20:43:02 +02:00
parent 00dfbaeb83
commit 173ab613f5
1 changed files with 1 additions and 5 deletions

View File

@ -845,11 +845,7 @@ func formatEvent(ev agent.Event) []byte {
}
return []byte("-> " + ev.Name + "(" + args + ")\n")
case "tool":
s := strings.TrimRight(ev.Content, "\n")
if len(s) > 500 {
s = s[:500] + "..."
}
return []byte(s + "\n")
return []byte(strings.TrimRight(ev.Content, "\n") + "\n")
case "retry":
return []byte("retrying in " + ev.Content + "s...\n")
case "error":