mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
fix(activity): report failed worktree lookups instead of showing partial session lists
This commit is contained in:
1 parent
bfbbbf08ef
commit
62c2eb8aed
5 files changed
+35
-4
No files matched your search
@@ -206,6 +206,8 @@ function RepoSessionList({ repo, onSelectSession }: RepoSessionListProps) {
|
||||
)
|
||||
|
||||
if (siblings.isLoading) return <SessionNavStatus>Loading sessions...</SessionNavStatus>
|
||||
if (siblings.isError && siblings.data === undefined)
|
||||
return <SessionNavStatus>Failed to load sessions</SessionNavStatus>
|
||||
|
||||
return <RepoSessionListItems repo={repo} worktrees={worktrees} onSelectSession={onSelectSession} />
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user