From 0498e2ff0b7f0fe7e4f968ee63a224ef9b4ae82a Mon Sep 17 00:00:00 2001 From: vikingowl Date: Fri, 3 Apr 2026 18:14:01 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20strings.Builder=20panic=20=E2=80=94=20us?= =?UTF-8?q?e=20pointer=20to=20avoid=20copy-by-value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/tui/app.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/tui/app.go b/internal/tui/app.go index 6ff1353..a7c0d81 100644 --- a/internal/tui/app.go +++ b/internal/tui/app.go @@ -49,7 +49,7 @@ type Model struct { messages []chatMessage streaming bool - streamBuf strings.Builder + streamBuf *strings.Builder currentRole string input textarea.Model @@ -87,6 +87,7 @@ func New(sess session.Session, cfg Config) Model { input: ti, cwd: cwd, gitBranch: gitBranch, + streamBuf: &strings.Builder{}, } }