tui: Fix response handling

This commit is contained in:
Matt Low 2024-03-17 22:51:55 +00:00
parent 3185b2d7d6
commit 1456442d4e

View File

@ -244,7 +244,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
if last < 0 {
panic("Unexpected empty messages handling msgResponseEnd")
}
m.setMessageContents(last, strings.TrimSpace(m.messages[last].Content))
m.setMessageContents(last, strings.TrimSpace(string(msg)))
m.updateContent()
m.status = "Press ctrl+s to send"
case msgResponseError: