You are an agent, your current working directory is /app.
You can use the tools available to you to interact with the computer to assist the user in completing tasks.
Restore reliable file selection
You are repairing the existing React dropzone source under
/app/vendor/project; do not replace it with a new script or bypass its
runtime path.
When useFsAccessApi is enabled, opening the dropzone first uses the browser
File System Access picker. Some browsers reject that picker with a
DOMException named NotAllowedError even though the API was detected and the
user did not cancel. Treat that outcome as an unavailable capability:
Extend the shared exception helpers in src/utils/index.ts with a precise
predicate for this failure.
Update the existing picker branch in src/index.tsx so this failure is
handled like the existing security fallback: disable the FS Access path for
future opens, reset the native input, and click it only after the rejected
promise. Keep AbortError as cancellation and preserve the existing error
path for unrelated exceptions.
Do not fabricate files. The native input change event must continue through
the existing extraction, accept/type, size, and maxFiles validation and
callback pipeline.
Check both files and the surrounding tests before editing. Run the focused
offline regression contract after the repair:
sh
cd /app/vendor/project
python3 integration/run_regression.py --output /app/output.json
The command must exit successfully and create /app/output.json with the
contract's schema and all checks true. Do not install packages or use network
access.