Álvaro Tejero Cantero 939eb1a9d7
🐛 Copy the inherited images into a branch made an ordinary file
A branch reads the images it inherited through main's media rows. When
materialize turned it into an ordinary file, the file kept pointing at
those rows and released the base that kept main's file-gc away from
them, so an image main later dropped, or main's deletion, broke the
materialized file.

Materialize now copies every media row the document uses that another
file owns into the branch file under a fresh id, and re-points the
document at the copies before it persists it.

AI-assisted-by: claude-opus-5-5
2026-10-28 12:31:16 +01:00
..