Fix beta build: image check accepts Blob attachments #131

Merged
westfarn merged 1 commits from fix/130-beta-vision-blob-type into master 2026-10-20 08:07:39 -07:00
Owner

Summary

  • Closes #130.
  • Deploy Beta run 929 failed npm run build:beta with TS2345: isImageFile took a File, but the composer file is a Blob.
  • The helper now accepts Blob. URL.createObjectURL already does. The as File casts are gone.
  • Jest stayed green on that run because it does not typecheck this call. tsc --noEmit is clean on this branch.

Test plan

  • npx tsc --noEmit in llm-fe
  • npm run build:beta (or the next Deploy Beta) compiles
  • Image attach still shows a thumbnail and sends
  • Document attach still shows the filename
## Summary - Closes #130. - [Deploy Beta run 929](https://git.aimloperations.com/ai_ml_operations/chat_web_app/actions/runs/929) failed `npm run build:beta` with `TS2345`: `isImageFile` took a `File`, but the composer file is a `Blob`. - The helper now accepts `Blob`. `URL.createObjectURL` already does. The `as File` casts are gone. - Jest stayed green on that run because it does not typecheck this call. `tsc --noEmit` is clean on this branch. ## Test plan - [ ] `npx tsc --noEmit` in `llm-fe` - [ ] `npm run build:beta` (or the next Deploy Beta) compiles - [ ] Image attach still shows a thumbnail and sends - [ ] Document attach still shows the filename
westfarn added 1 commit 2026-10-20 08:05:25 -07:00
Accept a Blob when checking whether a chat attachment is an image.
Unit Tests / test (pull_request) Successful in 14s
107acc68a2
Beta deploy typechecks the composer file as Blob, so the File-only helper failed the production build after the vision merge. Closes #130.

Co-authored-by: Cursor <cursoragent@cursor.com>
westfarn merged commit ac165a2db4 into master 2026-10-20 08:07:39 -07:00
westfarn deleted branch fix/130-beta-vision-blob-type 2026-10-20 08:07:39 -07:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/chat_web_app#131