mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
fix(navigation): show Assistant sessions in the sidebar and repo switcher (#368)
This commit is contained in:
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>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user