Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(desktop): preserve GFS error state after dev sync

Alfredo Lopez5b5a792ceef8
diff --git a/desktop-app/ui/src/pages/FilesPage.tsx b/desktop-app/ui/src/pages/FilesPage.tsx
index 5c8dbc81b..c67d804b0 100644
--- a/desktop-app/ui/src/pages/FilesPage.tsx
+++ b/desktop-app/ui/src/pages/FilesPage.tsx
@@ -938,7 +938,7 @@ export function FilesPage({ pushToast, pendingGfsUri, onPendingGfsUriHandled }:
</p>
</div>
</div>
- ) : visibleResources.length === 0 ? (
+ ) : !visibleFailure && visibleResources.length === 0 ? (
<div data-testid={isOperatorRoot ? 'gfs-empty-operator' : 'gfs-empty-shared'}>
<EmptyState
title={
diff --git a/desktop-app/ui/src/pages/__tests__/FilesPage.test.tsx b/desktop-app/ui/src/pages/__tests__/FilesPage.test.tsx
index 171fc7f4d..b3acd26b4 100644
--- a/desktop-app/ui/src/pages/__tests__/FilesPage.test.tsx
+++ b/desktop-app/ui/src/pages/__tests__/FilesPage.test.tsx
@@ -119,6 +119,12 @@ describe('FilesPage', () => {
gfs: {
getPathForFile: vi.fn((file: File) => file.name),
},
+ team: {
+ directory: vi.fn(async () => ({ items: [] })),
+ },
+ agents: {
+ listMine: vi.fn(async () => []),
+ },
},
})
})
@@ -248,7 +254,7 @@ describe('FilesPage', () => {
target: { files: [new File(['root upload'], 'root.md', { type: 'text/markdown' })] },
})
await waitFor(() =>
- expect(createFile).toHaveBeenCalledWith(rootResourceId, 'root.md', 'cm9vdCB1cGxvYWQ=')
+ expect(createFile).toHaveBeenCalledWith(rootResourceId, 'root.md', 'root.md')
)
})