diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx
index 10de013ef1..112a2be809 100644
--- a/webview-ui/src/components/chat/ChatRow.tsx
+++ b/webview-ui/src/components/chat/ChatRow.tsx
@@ -1164,9 +1164,11 @@ export const ChatRowContent = ({
className="flex-grow px-2 py-1 wrap-anywhere rounded-lg transition-colors"
onClick={(e) => {
e.stopPropagation()
- if (!isStreaming) {
- handleEditClick()
+ // Allow editing historical messages even while streaming; only block when this is the last message and streaming
+ if (isStreaming && isLast) {
+ return
}
+ handleEditClick()
}}
title={t("chat:queuedMessages.clickToEdit")}>