Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion webview-ui/src/components/chat/ChatView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,11 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
// Clear button state when a new API request starts
// This fixes buttons persisting when the task continues
setSendingDisabled(true)
setSelectedImages([])
// Note: Do NOT clear selectedImages here. This handler fires
// every time the backend starts an API call, which would wipe
// images the user has pasted while the chat is in progress.
// Images are already cleared in the appropriate user-action
// handlers (handleSendMessage, handlePrimaryButtonClick, etc.).
setClineAsk(undefined)
setEnableButtons(false)
setPrimaryButtonText(undefined)
Expand Down
Loading
Loading