Browse Source

fix(tui): input latency optimization

adamdottv 8 months ago
parent
commit
b1a3599017
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/tui/internal/components/chat/editor.go

+ 3 - 0
packages/tui/internal/components/chat/editor.go

@@ -54,6 +54,9 @@ func (m *editorComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
 	var cmd tea.Cmd
 
 	switch msg := msg.(type) {
+	case spinner.TickMsg:
+		m.spinner, cmd = m.spinner.Update(msg)
+		return m, cmd
 	case tea.KeyPressMsg:
 		// Maximize editor responsiveness for printable characters
 		if msg.Text != "" {