adamdottv 9 месяцев назад
Родитель
Сommit
17c5b9c12c
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      internal/tui/page/chat.go

+ 3 - 2
internal/tui/page/chat.go

@@ -68,10 +68,11 @@ func (p *chatPage) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
 	case dialog.CommandRunCustomMsg:
 	case dialog.CommandRunCustomMsg:
 		// Check if the agent is busy before executing custom commands
 		// Check if the agent is busy before executing custom commands
 		if p.app.CoderAgent.IsBusy() {
 		if p.app.CoderAgent.IsBusy() {
-			return p, util.ReportWarn("Agent is busy, please wait before executing a command...")
+			status.Warn("Agent is busy, please wait before executing a command...")
+			return p, nil
 		}
 		}
 		// Handle custom command execution
 		// Handle custom command execution
-		cmd := p.sendMessage(msg.Content)
+		cmd := p.sendMessage(msg.Content, nil)
 		if cmd != nil {
 		if cmd != nil {
 			return p, cmd
 			return p, cmd
 		}
 		}