fix: strings.Builder panic — use pointer to avoid copy-by-value

This commit is contained in:
2026-04-03 18:14:01 +02:00
parent fdf23ed4b7
commit 0498e2ff0b

View File

@@ -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{},
}
}