mirror of
https://github.com/temetro/temetro.git
synced 2026-07-26 11:58:14 +00:00
705d4b5719
The file pickers read event.target.files but reset event.target.value = "" before the file was actually used: in the AI composer the value reset ran before React's deferred setState updater read the (now-empty) live FileList, so no chip appeared; in Messages the reset ran before the length check, so it returned early. Snapshot the files into a plain array synchronously, before the reset. This is why attaching seemed to fail (no badge) — especially while typing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>