mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:41:09 +02:00
The Home-seeder in workbench-scenes.svelte.ts writes new scenes without spaceId, so the creating-hook stamps them with the _personal:<userId> sentinel. The per-space dedup check filters by the real space UUID and never finds them — every login adds another Home row, and every visit to a non-personal Space (Brand/Family/Team) drops yet another seed into the personal Space. This is Schicht D-soft of the broader cleanup plan (docs/plans/workbench-seeding-cleanup.md): a one-shot dedup pass that collapses duplicate "Home" rows per spaceId, merging openApps from the losers into the survivor (most apps wins, ties by most-recent updatedAt) and soft-deleting the rest so mana-sync propagates the cleanup to other devices. Touches only rows that look like fresh default seeds — anything customized (description, wallpaper, agent binding, scope tags, non-Home name) is left alone. Wired in two places: a Dexie v48 upgrade so it runs once per device on schema bump, and a belt-and-suspenders pass in (app)/+layout.svelte right after reconcileSentinels() to catch the edge case where sentinel-stamped rows just collapsed into the same UUID group as already-reconciled rows. The structural fix that prevents new duplicates from ever forming (per-space-seeds registry + deterministic seed ids + creating-hook hardening) ships in follow-up commits per the plan. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| calc/packages/shared | ||
| calendar | ||
| cards | ||
| chat | ||
| citycorners | ||
| contacts | ||
| context | ||
| docs | ||
| food | ||
| guides | ||
| inventory | ||
| mana | ||
| manavoxel | ||
| memoro | ||
| moodlit | ||
| mukke | ||
| news | ||
| photos | ||
| picture | ||
| plants | ||
| presi | ||
| questions | ||
| quotes/packages/content | ||
| skilltree | ||
| storage | ||
| times | ||
| todo | ||
| traces | ||
| uload | ||