Skip to content

Commit 5b96a46

Browse files
authored
feat(chat): handle follow-up answering in resume task (#582)
1 parent a0cbe7f commit 5b96a46

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,9 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
709709
case "use_mcp_server":
710710
case "resume_task":
711711
case "mistake_limit_reached":
712+
if (clineAsk === "resume_task") {
713+
markFollowUpAsAnswered()
714+
}
712715
// Only send text/images if they exist
713716
if (trimmedInput || (images && images.length > 0)) {
714717
vscode.postMessage({
@@ -738,7 +741,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
738741
setClineAsk(undefined)
739742
setEnableButtons(false)
740743
},
741-
[clineAsk, startNewTask],
744+
[clineAsk, markFollowUpAsAnswered, startNewTask],
742745
)
743746

744747
const handleSecondaryButtonClick = useCallback(

0 commit comments

Comments
 (0)