Gallery block: captions entered during upload process are lost
Description
When using the gallery block, if you enter an image caption while the image is still uploading, the caption is lost.
Step-by-step reproduction instructions
- Create a new gallery block
- Select several larger images to upload to the block (my demo images are 8Mb each)
- Before the first image has finished uploading, edit the caption for it
- Wait for the image to finish upload - notice that the image caption is now gone
Screenshots, screen recording, code snippet

Environment info
- WordPress 5.9-alpha-52154
- Firefox v94.0.1
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
@glendaviesnz I believe this would be interesting for you to take a closer look at.
WordPress Version 6.4.3
https://github.com/WordPress/gutenberg/assets/5989338/67ef7610-a2e5-47f1-be01-0018fac239b0
The caption could no longer be added during upload, so the problem no longer occurred
The defect did not occur in the following versions WordPress : 6.6 Gutenberg : 18.8.0
https://github.com/user-attachments/assets/e13eab5a-06ac-4143-ab5c-be3c522e13f3
I attempted to reproduce this issue following the exact steps provided but was unable to replicate the caption loss behavior.
Environment:
- WordPress Version: 6.9-alpha-60272
- Gutenberg Version: Latest trunk branch
https://github.com/user-attachments/assets/70c4bbe3-ac33-4efe-8557-873c375676d7
There are already a good amount of failed reproduction reports. I also tested by myself and can't reproduce.
It's time to close this ticket as worksforme
Thanks @Adi-ty @AtsushiA for testing and @bluefuton for reporting, but it seems it might be solved when the caption system was moved into the editable bar (instead of directly adding the captions in the uploading images as it happened when you added the report)