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

@@ -6,7 +6,7 @@ import { useForms, usePermissions } from '@/contexts/EventContext'
import { useCreateSession } from '@/hooks/useOpenCode'
import { useSidebarRepoGroups } from '@/hooks/useSidebarRepoGroups'
import { cn, formatShortRelativeTime, getRepoBranchLabel, getRepoDisplayName } from '@/lib/utils'
import { getSessionPath } from '@/lib/navigation'
import { getRepoPath, getSessionPath } from '@/lib/navigation'
import {
isCurrentSessionItem,
isRepoReady,
@@ -200,7 +200,7 @@ function RepoSessionList({ repo, onSelectSession }: RepoSessionListProps) {
/>
))}
{hasMore && (
<SessionNavLink onClick={() => onSelectSession(`/repos/${repo.id}`)}>All sessions</SessionNavLink>
<SessionNavLink onClick={() => onSelectSession(getRepoPath(repo.id))}>All sessions</SessionNavLink>
)}
</>
)