Gracefully handle when user exits command early

This commit is contained in:
Saoud Rizwan
2024-07-29 17:44:49 -04:00
parent cf2ab16538
commit d324afdf14
4 changed files with 39 additions and 24 deletions

View File

@@ -138,6 +138,8 @@ const ChatView = ({ messages, isHidden, vscodeThemeName, showAnnouncement, hideA
break
case "text":
break
case "command_output":
break
case "completion_result":
break
}
@@ -324,7 +326,7 @@ const ChatView = ({ messages, isHidden, vscodeThemeName, showAnnouncement, hideA
const placeholderText = useMemo(() => {
if (messages.at(-1)?.ask === "command_output") {
return "Type input for command stdin..."
return "Type input to command stdin..."
}
return task ? "Type a message..." : "Type your task here..."
}, [task, messages])