From 31bcf67f3003cff3b5e48ddaa6aadd89b5d548c4 Mon Sep 17 00:00:00 2001 From: PratikDhanave Date: Tue, 22 Sep 2026 08:43:19 +0530 Subject: [PATCH] Fix ResponseUpdate.String godoc: it has no messages ResponseUpdate.String iterates the update's own Contents; a ResponseUpdate has no messages. The "response messages" wording was copied from Response.String (which does iterate resp.Messages). --- agent/response.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/response.go b/agent/response.go index 0a74bedd..52511fc9 100644 --- a/agent/response.go +++ b/agent/response.go @@ -319,7 +319,7 @@ type ResponseUpdate struct { Contents message.Contents `json:",omitzero"` } -// String returns the concatenated text contents of the response messages. +// String returns the concatenated text contents of this update. func (r *ResponseUpdate) String() string { if r == nil { return ""