tui: Fix response handling
This commit is contained in:
parent
3185b2d7d6
commit
1456442d4e
@ -244,7 +244,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||||||
if last < 0 {
|
if last < 0 {
|
||||||
panic("Unexpected empty messages handling msgResponseEnd")
|
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.updateContent()
|
||||||
m.status = "Press ctrl+s to send"
|
m.status = "Press ctrl+s to send"
|
||||||
case msgResponseError:
|
case msgResponseError:
|
||||||
|
Loading…
Reference in New Issue
Block a user