Fix: Wrongfully clearing input on autoApprove (#3956)

This commit is contained in:
Ruakij 2025-05-25 15:59:58 +02:00 committed by GitHub
parent ad2ff932fa
commit 503c7585de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1195,8 +1195,6 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
// This is copied from `handlePrimaryButtonClick`, which we used
// to call from `autoApprove`. I'm not sure how many of these
// things are actually needed.
setInputValue("")
setSelectedImages([])
setSendingDisabled(true)
setClineAsk(undefined)
setEnableButtons(false)