Skip to content

Commit 2c58cae

Browse files
authored
Chat input clearing during running task (#4084)
Fixes bug
1 parent 145ce6e commit 2c58cae

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,6 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
345345
break
346346
case "api_req_started":
347347
if (secondLastMessage?.ask === "command_output") {
348-
// If the last ask is a command_output, and we
349-
// receive an api_req_started, then that means
350-
// the command has finished and we don't need
351-
// input from the user anymore (in every other
352-
// case, the user has to interact with input
353-
// field or buttons to continue, which does the
354-
// following automatically).
355-
setInputValue("")
356348
setSendingDisabled(true)
357349
setSelectedImages([])
358350
setClineAsk(undefined)

0 commit comments

Comments
 (0)