fix: only stop spinner once we see text

Kujtim Hoxha created

Change summary

internal/app/app.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Detailed changes

internal/app/app.go 🔗

@@ -226,9 +226,11 @@ func (app *App) RunNonInteractive(ctx context.Context, output io.Writer, prompt
 		if msg.SessionID != sess.ID || msg.Role != message.Assistant || len(msg.Parts) == 0 {
 			return
 		}
-		stopSpinner()
 
 		content := msg.Content().String()
+		if content != "" {
+			stopSpinner()
+		}
 
 		messageReadBytesMu.Lock()
 		readBytes := messageReadBytes[msg.ID]