Private
Public Access
1
0

tui: Error handling tweak

Moved errors to bottom of screen, fix infinite loop by typing errors
properly
This commit is contained in:
2024-09-23 03:37:01 +00:00
parent 172bfc57e1
commit 3ec2675632
7 changed files with 29 additions and 23 deletions

View File

@@ -170,7 +170,7 @@ func (m *Model) Update(msg tea.Msg) (shared.ViewModel, tea.Cmd) {
case msgChatResponseError:
m.state = idle
m.updateContent()
return m, shared.WrapError(msg)
return m, shared.WrapError(msg.Err)
case msgToolResults:
last := len(m.App.Messages) - 1
if last < 0 {