Fix setting title on new conversations, add the action menu

This commit is contained in:
sabaimran
2024-09-28 23:14:11 -07:00
parent 65d5e03f7f
commit 676ff5fa69
2 changed files with 2 additions and 1 deletions

View File

@@ -146,6 +146,7 @@ export default function ChatHistory(props: ChatHistoryProps) {
const lastMessage = props.incomingMessages[props.incomingMessages.length - 1];
if (lastMessage && !lastMessage.completed) {
setIncompleteIncomingMessageIndex(props.incomingMessages.length - 1);
props.setTitle(lastMessage.rawQuery);
}
}
}, [props.incomingMessages]);