fix(navigation): show Assistant sessions in the sidebar and repo switcher (#368)

This commit is contained in:
Chris Scott authored and GitHub committed 2026-09-28 23:52:45 -04:00
1 parent a1b7f58aae
commit e80016cc22
11 files changed
+69 -26

No files matched your search

+2
View File
@@ -135,11 +135,13 @@ function getPathBaseName(filePath: string): string {
}
export function getRepoDisplayName(repo: {
id?: number
name?: string | null
repoUrl?: string | null
localPath?: string | null
sourcePath?: string | null
}): string {
if (repo.id === ASSISTANT_REPO_ID) return ASSISTANT_REPO_NAME
if (repo.name && repo.name.trim()) return repo.name.trim()
const fromLocalPath = repo.localPath ? getPathBaseName(repo.localPath) : ''
if (repo.repoUrl) return getRepoNameFromUrl(repo.repoUrl) || fromLocalPath || 'Repository'