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

@ -95,7 +95,7 @@ div.agentIndicator {
}
div.chatTitleWrapper {
grid-template-columns: auto 1fr;
grid-template-columns: 1fr auto;
}
@media screen and (max-width: 768px) {

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]);