minor fixes

Kujtim Hoxha created

Change summary

internal/llm/provider/anthropic.go       | 3 ++-
internal/tui/components/core/status.go   | 2 +-
internal/tui/components/repl/sessions.go | 1 -
3 files changed, 3 insertions(+), 3 deletions(-)

Detailed changes

internal/llm/provider/anthropic.go 🔗

@@ -5,6 +5,7 @@ import (
 	"encoding/json"
 	"errors"
 	"fmt"
+	"io"
 	"strings"
 	"time"
 
@@ -236,7 +237,7 @@ func (a *anthropicProvider) StreamResponse(ctx context.Context, messages []messa
 			}
 
 			err := stream.Err()
-			if err == nil {
+			if err == nil || errors.Is(err, io.EOF) {
 				return
 			}
 

internal/tui/components/core/status.go 🔗

@@ -68,7 +68,7 @@ func (m statusCmp) View() string {
 		}
 		// Truncate message if it's longer than available width
 		msg := m.info.Msg
-		availWidth := m.availableFooterMsgWidth() - 3 // Account for ellipsis
+		availWidth := m.availableFooterMsgWidth() - 10
 		if len(msg) > availWidth && availWidth > 0 {
 			msg = msg[:availWidth] + "..."
 		}

internal/tui/components/repl/sessions.go 🔗

@@ -123,7 +123,6 @@ func (i *sessionsCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
 	case tea.KeyMsg:
 		switch {
 		case key.Matches(msg, sessionKeyMapValue.Select):
-			i.app.Logger.PersistInfo("Session selected")
 			selected := i.list.SelectedItem()
 			if selected == nil {
 				return i, nil