Browse Source

fix "working" spinner animation (#1054) (#1259)

Tobias Walle 7 months ago
parent
commit
12bf5f641d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/tui/internal/components/chat/editor.go

+ 1 - 1
packages/tui/internal/components/chat/editor.go

@@ -176,7 +176,7 @@ func (m *editorComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
 	case dialog.ThemeSelectedMsg:
 		m.textarea = updateTextareaStyles(m.textarea)
 		m.spinner = createSpinner()
-		return m, m.textarea.Focus()
+		return m, tea.Batch(m.textarea.Focus(), m.spinner.Tick)
 	case dialog.CompletionSelectedMsg:
 		switch msg.Item.ProviderID {
 		case "commands":