Просмотр исходного кода

Chat input clearing during running task (#4084)

Fixes bug
xyOz 7 месяцев назад
Родитель
Сommit
2c58caeb59
1 измененных файлов с 0 добавлено и 8 удалено
  1. 0 8
      webview-ui/src/components/chat/ChatView.tsx

+ 0 - 8
webview-ui/src/components/chat/ChatView.tsx

@@ -345,14 +345,6 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
 							break
 						case "api_req_started":
 							if (secondLastMessage?.ask === "command_output") {
-								// If the last ask is a command_output, and we
-								// receive an api_req_started, then that means
-								// the command has finished and we don't need
-								// input from the user anymore (in every other
-								// case, the user has to interact with input
-								// field or buttons to continue, which does the
-								// following automatically).
-								setInputValue("")
 								setSendingDisabled(true)
 								setSelectedImages([])
 								setClineAsk(undefined)