Standardize Session Name Attribute (#5085)

This commit is contained in:
Will Pfleger
2025-10-17 17:05:41 -04:00
committed by GitHub
parent 2df2f783c9
commit b8c3508178
29 changed files with 1193 additions and 237 deletions
@@ -116,16 +116,16 @@ const AppSidebar: React.FC<SidebarProps> = ({ currentPath }) => {
if (
currentPath === '/pair' &&
chatContext?.chat?.title &&
chatContext.chat.title !== DEFAULT_CHAT_TITLE
chatContext?.chat?.name &&
chatContext.chat.name !== DEFAULT_CHAT_TITLE
) {
titleBits.push(chatContext.chat.title);
titleBits.push(chatContext.chat.name);
} else if (currentPath !== '/' && currentItem) {
titleBits.push(currentItem.label);
}
document.title = titleBits.join(' - ');
}, [currentPath, chatContext?.chat?.title]);
}, [currentPath, chatContext?.chat?.name]);
const isActivePath = (path: string) => {
return currentPath === path;