Files
Andrey Antukh 5103969de0 🐛 Repair text shapes with empty content to prevent workspace update failures
A text shape whose `:content` is `{:type "root" :vertical-align "top"
:children []}` (root with empty :children) passes the frontend editor but
fails the backend `validate-shape` schema. When `process-operations` calls
`validate-shape` on every `mod-obj`, a single broken text shape anywhere in
the file can roll back an entire `update-file` batch — including unrelated
geometry edits to other shapes on other pages.

Six changes (A–F) address the issue:

A. Frontend root cause – `update-root-attrs` now seeds new text content with
the canonical root/paragraph-set/paragraph/span tree instead of a bare
`{:type "root"}`.

B. Frontend defensive – `ensure-valid-text-content` normalizes any root with
empty/missing :children at the entry of `v2-update-text-shape-content`.

C. Frontend optimization – with a well-formed baseline, the new-shape path
no longer churns redundant `:content` set operations.

D. Common schema – `:children` is no longer optional or `[:maybe ...]`; a root
must contain at least one paragraph-set.

E. Common migration – `0025-repair-empty-text-content` repairs existing files
with broken content in pages and components.

F. Common validation – `process-operations` skips `validate-shape` for
geometry-only mod-objs, so a broken shape cannot sabotage unrelated edits.

Fixes #10725

AI-assisted-by: opencode-go/minimax-m3
2026-07-20 09:44:00 +02:00
..
2026-06-22 14:35:10 +02:00
…
2026-07-01 14:45:41 +02:00
2026-06-30 16:15:30 +02:00
2026-06-11 11:06:12 +02:00