Skip to content

Commit

Permalink
Fix setting title on new conversations, add the action menu
Browse files Browse the repository at this point in the history
  • Loading branch information
sabaimran committed Sep 29, 2024
1 parent 65d5e03 commit 676ff5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/interface/web/app/chat/chat.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ div.agentIndicator {
}

div.chatTitleWrapper {
grid-template-columns: auto 1fr;
grid-template-columns: 1fr auto;
}

@media screen and (max-width: 768px) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 676ff5f

Please sign in to comment.