mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +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
@@ -425,6 +425,14 @@ describe('DesktopSessionTree', () => {
|
||||
expect(await screen.findByText('Failed to load sessions')).toBeTruthy()
|
||||
})
|
||||
|
||||
it('shows the error state when the worktree siblings lookup fails', async () => {
|
||||
getRepoSiblingsMock.mockRejectedValue(new Error('siblings failed'))
|
||||
|
||||
render(<DesktopSessionTree />, { wrapper: createWrapper(['/repos/1']) })
|
||||
|
||||
expect(await screen.findByText('Failed to load sessions')).toBeTruthy()
|
||||
})
|
||||
|
||||
it('creates a session in the repo full path', async () => {
|
||||
const user = userEvent.setup()
|
||||
render(<DesktopSessionTree />, { wrapper: createWrapper(['/']) })
|
||||
|
||||
Reference in new issue
Block a user