|
@@ -345,14 +345,6 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
|
|
|
break
|
|
break
|
|
|
case "api_req_started":
|
|
case "api_req_started":
|
|
|
if (secondLastMessage?.ask === "command_output") {
|
|
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)
|
|
setSendingDisabled(true)
|
|
|
setSelectedImages([])
|
|
setSelectedImages([])
|
|
|
setClineAsk(undefined)
|
|
setClineAsk(undefined)
|