Skip to content

Commit 6db30b5

Browse files
committed
fix lint error
1 parent 8391111 commit 6db30b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
580580
}
581581
// Update previous value
582582
setWasStreaming(isStreaming)
583-
}, [isStreaming, lastMessage, wasStreaming])
583+
}, [isStreaming, lastMessage, wasStreaming, isAutoApproved])
584584

585585
const isBrowserSessionMessage = (message: ClineMessage): boolean => {
586586
// which of visible messages are browser session messages, see above
@@ -822,7 +822,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
822822
if (isAutoApproved(lastMessage)) {
823823
handlePrimaryButtonClick()
824824
}
825-
}, [clineAsk, enableButtons, handlePrimaryButtonClick, alwaysAllowBrowser, alwaysAllowReadOnly, alwaysAllowWrite, alwaysAllowExecute, alwaysAllowMcp, messages, allowedCommands, mcpServers])
825+
}, [clineAsk, enableButtons, handlePrimaryButtonClick, alwaysAllowBrowser, alwaysAllowReadOnly, alwaysAllowWrite, alwaysAllowExecute, alwaysAllowMcp, messages, allowedCommands, mcpServers, isAutoApproved, lastMessage])
826826

827827
return (
828828
<div

0 commit comments

Comments
 (0)