mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Fix effect dep array issue by using latest messages value instead of previous claudeAsk value
This commit is contained in:
parent
91eedd7097
commit
84f89c569a
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ const ChatView = ({ messages, isHidden, vscodeThemeName, showAnnouncement, hideA
|
|||
case "error":
|
||||
break
|
||||
case "api_req_started":
|
||||
if (claudeAsk === "command_output") {
|
||||
if (messages.at(-2)?.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("")
|
||||
setTextAreaDisabled(true)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue