Render initial chat prompt and submitted messages

This commit is contained in:
Brandon McGinty (chatgpt)
2026-08-09 22:17:24 -04:00
committed by Brandon McGinty
parent 21e0627509
commit dc9dedb523
2 changed files with 14 additions and 3 deletions
+7 -1
View File
@@ -147,7 +147,13 @@ func (t *Textbox) uiKeyEvent(key Key) {
// }
}
if redraw {
t.uiDraw()
// Input callbacks may update another view (for example, append a chat
// message). Redraw every view after submission, not just this textbox.
if key == KeyEnter && t.ui != nil {
t.ui.Refresh()
} else {
t.uiDraw()
}
}
}