From c4e50f01fd514c0795b93e883a1301862609c8f7 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Thu, 4 Dec 2025 12:48:09 -0800 Subject: [PATCH] Create task task-026 --- ...6 - Fix-text-shape-sync-between-clients.md | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 backlog/tasks/task-026 - Fix-text-shape-sync-between-clients.md diff --git a/backlog/tasks/task-026 - Fix-text-shape-sync-between-clients.md b/backlog/tasks/task-026 - Fix-text-shape-sync-between-clients.md new file mode 100644 index 0000000..78971ab --- /dev/null +++ b/backlog/tasks/task-026 - Fix-text-shape-sync-between-clients.md @@ -0,0 +1,37 @@ +--- +id: task-026 +title: Fix text shape sync between clients +status: To Do +assignee: [] +created_date: '2025-12-04 20:48' +labels: + - bug + - sync + - automerge +dependencies: [] +priority: high +--- + +## Description + + +Text shapes created with the "T" text tool show up on the creating client but not on other clients viewing the same board. + +Root cause investigation: +- Text shapes ARE being persisted to R2 (confirmed in server logs) +- Issue is on receiving client side in AutomergeToTLStore.ts +- Line 1142: 'text' is in invalidTextProps list and gets deleted +- If richText isn't properly populated before text is deleted, content is lost + +Files to investigate: +- src/automerge/AutomergeToTLStore.ts (sanitization logic) +- src/automerge/TLStoreToAutomerge.ts (serialization logic) +- src/automerge/useAutomergeStoreV2.ts (store updates) + + +## Acceptance Criteria + +- [ ] #1 Text shapes sync correctly between multiple clients +- [ ] #2 Text content preserved during automerge serialization/deserialization +- [ ] #3 Both new and existing text shapes display correctly on all clients +