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
@@ -259,7 +259,11 @@ export function useActiveWork(windowMs: number): {
|
||||
[now, windowMs, repos, mergedSessions, resolvedParents, resolvedRoots],
|
||||
)
|
||||
|
||||
const { worktrees, isLoading: isWorktreesLoading } = useRepoWorktrees(repos, needsLookup)
|
||||
const {
|
||||
worktrees,
|
||||
isLoading: isWorktreesLoading,
|
||||
isError: isWorktreesError,
|
||||
} = useRepoWorktrees(repos, needsLookup)
|
||||
|
||||
const groups = useMemo(
|
||||
() =>
|
||||
@@ -279,6 +283,6 @@ export function useActiveWork(windowMs: number): {
|
||||
return {
|
||||
groups,
|
||||
isLoading: isReposLoading || isSessionsLoading || isWorktreesLoading,
|
||||
isError: isSessionsError,
|
||||
isError: isSessionsError || isWorktreesError,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user