Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
feat(gfs): raise desktop upload cap 10->16MB for web parity (#284)
Alfredo Lopeza456c970d600
diff --git a/desktop-app/ui/src/constants/gfsFileUpload.ts b/desktop-app/ui/src/constants/gfsFileUpload.tsindex 19453e368..c1880202d 100644--- a/desktop-app/ui/src/constants/gfsFileUpload.ts+++ b/desktop-app/ui/src/constants/gfsFileUpload.ts@@ -1,2 +1,4 @@-export const GFS_FILE_UPLOAD_MAX_BYTES = 10 * 1024 * 1024-export const GFS_FILE_UPLOAD_MAX_MEGABYTES = 10+// Kept in parity with the web control-ui cap (control-ui/app/constants/gfsFileUpload.ts).+// base64 inflates ×1.34 → 16MiB raw ≈ 22.4MB body, under gfsc's 24MiB write cap.+export const GFS_FILE_UPLOAD_MAX_BYTES = 16 * 1024 * 1024+export const GFS_FILE_UPLOAD_MAX_MEGABYTES = 16diff --git a/desktop-app/ui/src/lib/__tests__/gfsFileUpload.test.ts b/desktop-app/ui/src/lib/__tests__/gfsFileUpload.test.tsindex fae2bf9ec..8e47455e2 100644--- a/desktop-app/ui/src/lib/__tests__/gfsFileUpload.test.ts+++ b/desktop-app/ui/src/lib/__tests__/gfsFileUpload.test.ts@@ -1,5 +1,5 @@import { describe, expect, it } from 'vitest'-import { GFS_FILE_UPLOAD_MAX_BYTES } from '@constants/gfsFileUpload'+import { GFS_FILE_UPLOAD_MAX_BYTES, GFS_FILE_UPLOAD_MAX_MEGABYTES } from '@constants/gfsFileUpload'import { assertGfsFileUploadSize } from '@lib/gfsFileUpload'describe('assertGfsFileUploadSize', () => {@@ -9,7 +9,7 @@ describe('assertGfsFileUploadSize', () => {it('rejects files above the upload limit', () => {expect(() => assertGfsFileUploadSize(GFS_FILE_UPLOAD_MAX_BYTES + 1)).toThrow(- 'GFS uploads are limited to 10 MB per file.'+ `GFS uploads are limited to ${GFS_FILE_UPLOAD_MAX_MEGABYTES} MB per file.`)})})diff --git a/desktop-app/ui/src/pages/__tests__/FilesPage.test.tsx b/desktop-app/ui/src/pages/__tests__/FilesPage.test.tsxindex 587080184..0571f43b0 100644--- a/desktop-app/ui/src/pages/__tests__/FilesPage.test.tsx+++ b/desktop-app/ui/src/pages/__tests__/FilesPage.test.tsx@@ -490,7 +490,7 @@ describe('FilesPage', () => {})await waitFor(() =>- expect(pushToast).toHaveBeenCalledWith('GFS uploads are limited to 10 MB per file.', 'error')+ expect(pushToast).toHaveBeenCalledWith('GFS uploads are limited to 16 MB per file.', 'error'))expect(arrayBuffer).not.toHaveBeenCalled()expect(createFile).not.toHaveBeenCalled()