1.0 KiB
1.0 KiB
| id | title | status | assignee | created_date | updated_date | labels | dependencies | parent_task_id |
|---|---|---|---|---|---|---|---|---|
| TASK-HIGH.4 | Fix Automerge proxy re-assignment error on canvas load | Done | 2026-03-03 19:17 | 2026-03-03 19:18 | TASK-HIGH |
Description
Fix 'Cannot create a reference to an existing document object' RangeError that fires twice on canvas load (initFromCache + WS sync). Root cause: Automerge proxy objects from doc.shapes passed through DOM elements back into Automerge.change(). Fixed by deep-cloning in #shapeToData() and #updateShapeInDoc().
Acceptance Criteria
- #1 No RangeError in console on canvas hard-refresh
- #2 Shapes persist correctly after move/resize
- #3 Cross-tab sync works without errors
Implementation Notes
Fixed in commit 023a883. Deep-cloned shape data in #shapeToData() and #updateShapeInDoc() to break Automerge proxy chain. Deployed to production.