Chat input clearing during running task (#4084)

Fixes bug
This commit is contained in:
xyOz 2025-05-28 19:59:02 +01:00 committed by GitHub
parent 145ce6e7b5
commit 2c58caeb59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)