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

@@ -13,6 +13,7 @@ import {
SessionNavStatus,
} from '@/components/navigation/RepoSessionNav'
import { getActiveRepoId, isCurrentSessionItem, isRepoReady } from '@/components/navigation/sidebar-session-tree'
import { getRepoPath } from '@/lib/navigation'
function SessionSearchInput({
hasActiveSearch,
@@ -78,7 +79,7 @@ function SessionSearchResults({ repos, search }: { repos: Repo[]; search: string
isWorktree={group.repo.isWorktree}
isOpen
isCurrent={group.repo.id === getActiveRepoId(location.pathname)}
onOpenRepo={() => navigate(`/repos/${group.repo.id}`)}
onOpenRepo={() => navigate(getRepoPath(group.repo.id))}
actions={<NewSessionButton repo={group.repo} onOpenSession={navigate} />}
>
{group.items.map((item) => (
@@ -121,7 +122,7 @@ export function DesktopSessionTree() {
repos={repos}
activeRepoId={getActiveRepoId(location.pathname)}
isVisible
onOpenRepo={(repoId) => navigate(`/repos/${repoId}`)}
onOpenRepo={(repoId) => navigate(getRepoPath(repoId))}
onSelectSession={navigate}
renderActions={(repo) => <NewSessionButton repo={repo} onOpenSession={navigate} />}
/>