on main help sign in
minor fixes
65055c7Kujtim Hoxha
internal/llm/provider/anthropic.go+2−1
@@ -5,6 +5,7 @@ import (
5 "encoding/json"
5 "encoding/json"
6 "errors"
6 "errors"
7 "fmt"
7 "fmt"
8+ "io"
8 "strings"
9 "strings"
9 "time"
10 "time"
10
11
@@ -236,7 +237,7 @@ func (a *anthropicProvider) StreamResponse(ctx context.Context, messages []messa
236 }
237 }
237
238
238 err := stream.Err()
239 err := stream.Err()
239− if err == nil {
240+ if err == nil || errors.Is(err, io.EOF) {
240 return
241 return
241 }
242 }
242
243
internal/tui/components/core/status.go+1−1
@@ -68,7 +68,7 @@ func (m statusCmp) View() string {
68 }
68 }
69 // Truncate message if it's longer than available width
69 // Truncate message if it's longer than available width
70 msg := m.info.Msg
70 msg := m.info.Msg
71− availWidth := m.availableFooterMsgWidth() - 3 // Account for ellipsis
71+ availWidth := m.availableFooterMsgWidth() - 10
72 if len(msg) > availWidth && availWidth > 0 {
72 if len(msg) > availWidth && availWidth > 0 {
73 msg = msg[:availWidth] + "..."
73 msg = msg[:availWidth] + "..."
74 }
74 }
internal/tui/components/repl/sessions.go−1
@@ -123,7 +123,6 @@ func (i *sessionsCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
123 case tea.KeyMsg:
123 case tea.KeyMsg:
124 switch {
124 switch {
125 case key.Matches(msg, sessionKeyMapValue.Select):
125 case key.Matches(msg, sessionKeyMapValue.Select):
126− i.app.Logger.PersistInfo("Session selected")
127 selected := i.list.SelectedItem()
126 selected := i.list.SelectedItem()
128 if selected == nil {
127 if selected == nil {
129 return i, nil
128 return i, nil