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
@@ -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} />}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user