Skip to content

fix(prompt-input): report files dropped by a partial rejection - #512

Open
HardMax71 wants to merge 1 commit into
vercel:mainfrom
HardMax71:fix/prompt-input-report-partial-rejections
Open

HardMax71 wants to merge 1 commit into
vercel:mainfrom
HardMax71:fix/prompt-input-report-partial-rejections

Conversation

@HardMax71

Copy link
Copy Markdown

When some, but not all, of the added files fail accept or maxFileSize, add now calls onError with that code and a message saying some files were not added, then adds the rest, as maxFiles already does. Both the local and the provider paths change. When every file fails, the behavior and messages stay the same. I updated the onError docs and added a changeset.

Three new tests in __tests__/prompt-input.test.tsx under "partially rejected files": a mixed selection with accept, a mixed selection with maxFileSize, and the accept case inside PromptInputProvider. Each fails on main and passes here. The full @repo/elements suite passes (961 tests).

Closes #511

@vercel

vercel Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

@HardMax71 is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PromptInput: files rejected from a mixed selection disappear without onError

1 participant