From e0eadd25b88b40f70dfc57043606bb43a2c18534 Mon Sep 17 00:00:00 2001 From: phact Date: Fri, 24 Oct 2025 04:40:07 -0400 Subject: [PATCH] fix: onboarding upload file bug --- frontend/lib/upload-utils.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/lib/upload-utils.ts b/frontend/lib/upload-utils.ts index d2c255da..48d7ddfd 100644 --- a/frontend/lib/upload-utils.ts +++ b/frontend/lib/upload-utils.ts @@ -68,6 +68,9 @@ export async function uploadFileForContext( (uploadJson as { response_id?: string }).response_id || "uploaded"; const filePath = (uploadJson as { filename?: string }).filename || file.name; + const pages = (uploadJson as { pages?: number }).pages; + const contentLength = (uploadJson as { content_length?: number }).content_length; + const confirmation = (uploadJson as { confirmation?: string }).confirmation; const result: UploadFileResult = { fileId, @@ -85,6 +88,11 @@ export async function uploadFileForContext( result: { file_id: fileId, file_path: filePath, + filename: filePath, + pages: pages, + content_length: contentLength, + confirmation: confirmation, + response_id: fileId, run: null, deletion: null, unified: false,